mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7923] Proposal: In-app notices for owners, published from GitHub #4355
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4355
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Gunterlie on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7923
Originally assigned to: @Gunterlie on GitHub.
What problem does this solve?
Marinara has no way to tell owners of existing installations about something important after they installed it. A security fix, a required manual step for Docker users, or a breaking change only reaches people who read GitHub, Discord or release notes.
The 2.5.0 proxy/tunnel problem showed this gap: launcher installs update themselves, but Docker and Android installs do not, and the in-app update card only appears when the owner clicks "Check for updates". Owners who are affected right now have no reason to look.
A notice channel only helps installations that already have it. Building it now means the next important message reaches everyone on that version or later, Docker included.
Proposed solution
A small, maintainer-edited notice file in this repository that the app fetches and shows to the owner.
The file (for example
notices.json):level:warningorcriticalonly. There is noinfolevel on purpose.action(required): what the owner must do, in one sentence.expires(required): a date after which the app ignores the notice.versions: a semver range; the notice shows only when the running version matches.Where it lives: its own protected branch (for example
notices), so maintainers can publish a warning within minutes through a normal PR, without a release or amainpromotion. Fetched fromraw.githubusercontent.com, so it works for every install type and has no tight API rate limit.In the app:
packages/server/src/routes/updates.routes.ts(fetch, cache, timeout) instead of new machinery. Fetch at start and every few hours; a failed fetch shows nothing and never blocks startup.packages/client/src/components/diagnostics/CsrfOriginWarningBanner.tsx(mounted inApp.tsx) already is a fixed top alert bar withrole="alert", an action button and a dismiss button. Extract its frame into one shared banner and render the CSRF warning, owner notices and the unsafe-access warning from #7911 through it, so they never stack on top of each other and the one-banner rule covers all of them (most severe wins).components/ui/and*-hostpatterns):components/ui/AppBanner.tsx: the shared, improved banner (look, title, text, action, dismiss, severity).components/layout/AppBannerHost.tsx: the single banner mounted inApp.tsx; collects candidates and shows the most severe one.components/diagnostics/use-csrf-origin-banner.ts: replacesCsrfOriginWarningBanner.tsx; only the CSRF probe, returning banner data or nothing. Notices and the #7911 access warning get matching small hooks.ui.diagnostics.csrforiginwarningbanner.*translation keys so community locales keep working.position: fixed/zIndex: 9999bar that covers the app header (worst on phones), session-only dismissal,aria-live="assertive"for every case, and dense technical text. The shared banner should:warningandcritical;.envlines) fold out on demand;idand persist it (session-only stays possible for diagnostics like CSRF);criticalassertively;warninguses a polite live region;marinara-designand be proven with screenshots at 390/768/1440 px in light and dark themes.warningnotices can be dismissed perid.criticalcomes back until the app runs a version outside the range.No notice fatigue. If owners learn to close the banner without reading, the one notice that matters is lost. So:
actionorexpires, or with an unknownlevel, are ignored. It shows at most one banner at a time (the most severe); others wait.Trust rules (this is remote content inside the app):
github.com/Pasta-Devs/*and the project's own pages; drop anything else.Acceptance
versionsrange matches the running version appears as a banner for the owner; a non-matching one does not.warningnotices stay dismissed perid;criticalnotices return until the version leaves the range.action/expires, with an unknownlevel, or pastexpiresare ignored; at most one banner shows at a time.CONTRIBUTING.mddocuments when a notice is allowed and when it is not.Alternatives considered
Additional context
Came out of the public-exposure planning in #7909. This does not help installations that are already out of date (they do not have the code yet); it prevents the same gap next time.
Template check
@Gunterlie commented on GitHub (Oct 21, 2026):
@Gunterlie is taking this, with agents. Plan: first the shared, improved
AppBanner+AppBannerHost(replacingCsrfOriginWarningBanner), then the notice fetch and display.