gamevault-app icon indicating copy to clipboard operation
gamevault-app copied to clipboard

Markdown News, Message of the Day, Notes and Descriptions

Open Alfagun74 opened this issue 7 months ago • 1 comments

The client should support Markdown for two main use cases:

  1. Displaying emphasized descriptions.
  2. Rendering a "Message of the Day" (MOTD) and "Phalcode News" page on startup.

Tasks:

Server-side:

  • [ ] Implement a GET and PUT API for motd.md, a Markdown file that admins can edit.
  • [ ] Implement a page for news.md at phalco.de/gamevault/news.md.
  • [X] Support Markdown in Descriptions
  • [X] Implement a "Notes" field in GameMetadata for Admin notes, that also supports markdown.

Client-side:

  • [ ] Integrate a Markdown library capable of editing and visualizing Markdown files.
  • [ ] Render Markdown Description in GameView
  • [ ] Render Markdown Notes in GameView
  • [ ] Create a new News/MOTD popup with two tabs: one for server news and one for GameVault news, displaying Markdown content from specified URLs.
  • [ ] Add a button to re-open the News/MOTD popup.
  • [ ] Calculate a checksum based on the contents of motd.md and news.md. If the user has already seen this checksum, the popup should not auto-open; otherwise, it should open on startup (similar to Steam).
  • [ ] Add a configuration option to never show this popup automatically.

Alfagun74 avatar Jul 26 '24 08:07 Alfagun74