-
Notifications
You must be signed in to change notification settings - Fork 166
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: Add announcements system #703
base: main
Are you sure you want to change the base?
Conversation
const welcomeAnnouncement: Announcement = { | ||
id: 'welcomeAnnouncement', | ||
title: 'Welcome to Decky!', | ||
text: 'We hope you enjoy using Decky! If you have any questions or feedback, please let us know.', |
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.
Where should people direct feedback?
(Also i assume this shows the first time you use decky? Might want to add something like start with looking at the store)
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.
That's a good point, but there is another blocking issue. The text need to be moved in en-US.json and not hardcoded here.
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.
Remaining items before merge:
- Announcements must be checked for regularly similar to checks for updates to decky and for plugins.
- Markdown support for URLs etc.
- Announcements should not be active by default decky-plugin-store#73
- Store needs to expose modifiable expiration timeframe that is applied to all announcements by default.
- Announcements panel exposes active/inactive status Plugin-Store-Admin#1
- Also needs to provide edit field for default announcement expiration timeframe.
- Announcement telling you which store you're on (optional but helpful)
- Should be able to be disabled for frequent testers etc.
@beebls, @gbdlin and @AAGaming00: please make sure to coordinate with me so we can get this out asap.
- Should be able to be disabled for frequent testers etc.
Please tick as appropriate:
If you're wanting to update a translation or add a new one, please use the weblate page: https://weblate.werwolv.net/projects/decky/
Description
This fixes issue: #672
Adds an Announcements (formerly MOTD) display to the root QAM view,
The [plugins/testing].deckbrew.xyz/v1/-/announcements/current endpoint is used, and the latest announcement from this endpoint is display in the QAM.
Upon clicking the X button, that announcement's id is added to a hidden announcements list so that it isn't displayed again