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: Add announcements system #703

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

feat: Add announcements system #703

wants to merge 10 commits into from

Conversation

beebls
Copy link
Contributor

@beebls beebls commented Sep 13, 2024

Please tick as appropriate:

  • I have tested this code on a steam deck or on a PC
  • My changes generate no new errors/warnings
  • This is a bugfix/hotfix
  • This is a new feature

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

@TrainDoctor TrainDoctor added the javascript Pull requests that update Javascript code label Sep 13, 2024
@TrainDoctor TrainDoctor added the enhancement New feature or request label Sep 14, 2024
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.',
Copy link
Contributor

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)

Copy link
Contributor

@RodoMa92 RodoMa92 Sep 15, 2024

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.

Copy link
Member

@TrainDoctor TrainDoctor left a 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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

4 participants