Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improved activity in news article experience #1897

Conversation

tomudding
Copy link
Member

Description

Randomly sort the activities that are put in if there are too few NewsItems. This cannot be done with the old code and a simple shuffle as the usort automatically produced the same result.

Also makes the header an actual link

Related issues/external references

Closes GH-1894 and closes GH-1895.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation improvement (no changes to code)
  • Other (please specify)

If there are fewer news article than `news_count` we now add the `$activities`
in random order.
Now you no longer have to search for the activity or clear somewhere else on the
same page.
@tomudding tomudding merged commit 20647c8 into GEWIS:main Sep 2, 2024
4 checks passed
github-actions bot added a commit that referenced this pull request Sep 2, 2024
Tom Udding: Merge pull request #1897 from tomudding/feature/improved-activity-in-news-article-experience

feat: improved activity in news article experience

Co-authored-by: tomudding <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add link to activity for activities in news overview Rotate activity if there are not enough news articles
1 participant