-
Notifications
You must be signed in to change notification settings - Fork 8
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
refactor: improve announcements pages #530
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lack of padding on every page. Make sure the padding obeys the one imposed by the page
component. In the future, we should make page's body be padded automatically 💡
I think it would be cool if the show page followed the same design as the edit/new announcement page when there’s an image to display. What do you think? |
We can have 2 approaches for this scenario: We either limit the characters at index page and if the user wants the full information should open it and see the whole announcement context, or we can keep the whole text and remove the show page since won't be necessary anymore. Which one do you like more @JoaoCoelho2003 ? I would also like your input for this case @joaodiaslobo @ruilopesm . 🙌 |
I personally prefer limiting the number of lines shown per announcement on the respective pages @MarioRodrigues10. |
Keeping the whole text in the feed is definitely not the way to go but I also don't think we should limit what the organizations can write way too much (there still needs to exist a limit, but a bigger one). |
@joaodiaslobo There's already a lot of text being truncated at the application in different ways, in order to achieve that I think @JoaoCoelho2003 can create a general function at In the future, other people should reuse that function and truncate their text aswell if they need. |
In my opinion, we should truncate the text in the feed and, as Mario said, for the user to see the full post he would have to press it and check the announcement. About the text size limit, probably put a limit of around 500 characters or something like that. The text size limit varies a lot depending on the platform, but since this is an announcement, and announcements typically don’t require much text as they are meant to be brief, we could consider setting the limit lower. |
I think 500 characters could be too much, check Instagram UI/UX for posts in either desktop or mobile I really like what they did, they truncate based on the text size. |
We already have a function for truncating text, if I'm not mistaken. |
New Announcement Page
The design of the New Announcement page has been improved, and in the process, the previously malfunctioning image uploader was fixed.
Announcements Page Access
Previously, the announcements page was a general feed available to all users. This functionality has been updated:
/organizations/{organization_id}/announcements
Screencast.from.2024-11-21.00-52-13.webm
Announcements Feed Page Changes
The tabs at the top of the announcements feed page were removed since the page is no longer used as a public feed but as a monitoring tool.
#435