[PR #7810] [MERGED] feat(home): reopen the What's New window from the Home widget #7937

Closed
opened 2026-10-24 04:08:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7810
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/whats-new-reopen


📝 Commits (1)

  • 0132bc5 feat(home): reopen the What's New window from the Home widget

📊 Changes

5 files changed (+83 additions, -0 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+57 -0)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+10 -0)
📝 packages/client/src/components/modals/WhatsNewModal.tsx (+8 -0)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/client/src/stores/ui.store.ts (+7 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No issue: this is the maintainer's own request from today (2026-10-19), asking for a way to reopen the What's New window for the current version from the Home widget.

Why this change

  • The What's New window shows only once per version. Anyone who closes it, or skims past it, has no way to see it again. The only option was the external release notes link.

What changed

  • The What's New widget on Home has a new See what's new button next to Read release notes. It opens the same What's New window for the current version: the tailored announcement, or the general update notice when there isn't one.
  • It works after the window has already been seen. Reopening it doesn't reset the "already seen" marker, so the window still shows only once per version on its own.
  • On phones, both actions now sit on one line across the full width of the card, so they fit at 320px. The Read release notes link and all existing text are unchanged.

Implementation notes:

  • ui.store.ts: a transient whatsNewRequested flag with requestWhatsNew() and consumeWhatsNewRequest(). It follows the existing homeRequest request/consume pattern and isn't saved.
  • WhatsNewModal.tsx: consumes the request and opens itself. It doesn't touch WHATS_NEW_SEEN_VERSION_KEY, the automatic once-per-version effect, or onResolved. Startup notices that wait on whatsNewOpen still wait while it is open, through the existing onOpenChange.
  • HomeBrowserHub.tsx: the button uses the link's accent, focus ring, text size and min-h-8. It is a native <button>, so it works with the keyboard.
  • en.json: new key home.whatsNew.open = "See what's new". Community locales fall back to English.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Commands run by the agent, with results:

  • pnpm check: exit 0. There is one lint warning, which was already there and is in an untouched file (HomeProfessorMariChat.tsx line 380, react-hooks/exhaustive-deps).
  • pnpm localization:check: passed (it also runs inside pnpm check).
  • npx playwright test e2e/core-flows.e2e.ts --project=desktop-chromium --project=mobile-chromium --grep "What's New": 4 passed. These are the existing "What's New opens once for each Marinara Engine version" test and the new "the Home What's New widget reopens the window without resetting the seen version" test, on both projects.
  • The new e2e test marks the current version as seen, then opens Home. It checks that both widget actions stay inside the card at 1440/900px (desktop) and 390/320px (phone). It clicks See what's new, checks the window shows the current version, closes it with Got it, and checks the seen marker is still the current version. It then reloads, checks the window doesn't open by itself, and opens it again with the keyboard (Enter).
  • The agent also measured the widget with a temporary Playwright script (deleted) at 1920/1440/1100/900px and 390/360/320px. Both actions sit on one line inside the card at every width.

Manual verification notes

  • Manually verify in a desktop browser that See what's new in the Home What's New widget opens the What's New window, and that Got it, the close button and Escape all close it.
  • Manually verify in a browser that after closing it, a reload doesn't show the window on its own.
  • Manually verify on a phone-width viewport (390px and 320px) that See what's new and Read release notes both fit inside the widget and are easy to tap.
  • Manually verify in light and dark mode, and with a custom theme accent, that the button matches the widget's existing link color and focus ring. Tab to it and check the focus ring shows.
  • Manually verify on a fresh profile (no seen marker) that the automatic What's New still shows once after onboarding, and that the storage-migration and agent-update notices still wait until it closes.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

No docs were changed. No user guide under docs/ mentions the What's New window or the What's New Home widget, so there was nowhere to add the sentence. docs/home/welcome.md's "Home screen at a glance" section doesn't describe the widget grid at all.

UI evidence (if applicable)

Not attached. The agent took local screenshots of the widget at 1440px and 320px: both actions sit on one line under the description, in the widget's orange accent, with the release-notes link icon unchanged.

Summary by CodeRabbit

  • New Features
    • Added a “See what’s new” action to reopen the announcement from the Home widget, including after a reload.
  • Improvements
    • Updated the widget’s action links to use a full-width, wrapping row across screen sizes.
    • Reopening the announcement preserves the existing seen-version status, so dismissing it keeps it hidden after reload.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7810 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/whats-new-reopen` --- ### 📝 Commits (1) - [`0132bc5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0132bc57b99f1545494d1c4435107c3a60954d23) feat(home): reopen the What's New window from the Home widget ### 📊 Changes **5 files changed** (+83 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+57 -0) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+10 -0) 📝 `packages/client/src/components/modals/WhatsNewModal.tsx` (+8 -0) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/client/src/stores/ui.store.ts` (+7 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue No issue: this is the maintainer's own request from today (2026-10-19), asking for a way to reopen the What's New window for the current version from the Home widget. ## Why this change - The What's New window shows only once per version. Anyone who closes it, or skims past it, has no way to see it again. The only option was the external release notes link. ## What changed - The **What's New** widget on Home has a new **See what's new** button next to **Read release notes**. It opens the same What's New window for the current version: the tailored announcement, or the general update notice when there isn't one. - It works after the window has already been seen. Reopening it doesn't reset the "already seen" marker, so the window still shows only once per version on its own. - On phones, both actions now sit on one line across the full width of the card, so they fit at 320px. The **Read release notes** link and all existing text are unchanged. Implementation notes: - `ui.store.ts`: a transient `whatsNewRequested` flag with `requestWhatsNew()` and `consumeWhatsNewRequest()`. It follows the existing `homeRequest` request/consume pattern and isn't saved. - `WhatsNewModal.tsx`: consumes the request and opens itself. It doesn't touch `WHATS_NEW_SEEN_VERSION_KEY`, the automatic once-per-version effect, or `onResolved`. Startup notices that wait on `whatsNewOpen` still wait while it is open, through the existing `onOpenChange`. - `HomeBrowserHub.tsx`: the button uses the link's accent, focus ring, text size and `min-h-8`. It is a native `<button>`, so it works with the keyboard. - `en.json`: new key `home.whatsNew.open` = "See what's new". Community locales fall back to English. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Commands run by the agent, with results: - `pnpm check`: exit 0. There is one lint warning, which was already there and is in an untouched file (`HomeProfessorMariChat.tsx` line 380, `react-hooks/exhaustive-deps`). - `pnpm localization:check`: passed (it also runs inside `pnpm check`). - `npx playwright test e2e/core-flows.e2e.ts --project=desktop-chromium --project=mobile-chromium --grep "What's New"`: 4 passed. These are the existing "What's New opens once for each Marinara Engine version" test and the new "the Home What's New widget reopens the window without resetting the seen version" test, on both projects. - The new e2e test marks the current version as seen, then opens Home. It checks that both widget actions stay inside the card at 1440/900px (desktop) and 390/320px (phone). It clicks **See what's new**, checks the window shows the current version, closes it with **Got it**, and checks the seen marker is still the current version. It then reloads, checks the window doesn't open by itself, and opens it again with the keyboard (Enter). - The agent also measured the widget with a temporary Playwright script (deleted) at 1920/1440/1100/900px and 390/360/320px. Both actions sit on one line inside the card at every width. ### Manual verification notes - Manually verify in a desktop browser that **See what's new** in the Home **What's New** widget opens the What's New window, and that **Got it**, the close button and Escape all close it. - Manually verify in a browser that after closing it, a reload doesn't show the window on its own. - Manually verify on a phone-width viewport (390px and 320px) that **See what's new** and **Read release notes** both fit inside the widget and are easy to tap. - Manually verify in light and dark mode, and with a custom theme accent, that the button matches the widget's existing link color and focus ring. Tab to it and check the focus ring shows. - Manually verify on a fresh profile (no seen marker) that the automatic What's New still shows once after onboarding, and that the storage-migration and agent-update notices still wait until it closes. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No docs were changed. No user guide under `docs/` mentions the What's New window or the What's New Home widget, so there was nowhere to add the sentence. `docs/home/welcome.md`'s "Home screen at a glance" section doesn't describe the widget grid at all. ## UI evidence (if applicable) Not attached. The agent took local screenshots of the widget at 1440px and 320px: both actions sit on one line under the description, in the widget's orange accent, with the release-notes link icon unchanged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a “See what’s new” action to reopen the announcement from the Home widget, including after a reload. * **Improvements** * Updated the widget’s action links to use a full-width, wrapping row across screen sizes. * Reopening the announcement preserves the existing seen-version status, so dismissing it keeps it hidden after reload. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:08:59 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7937
No description provided.