[PR #1876] [MERGED] Fix compact Discover home bar #5330

Closed
opened 2026-10-22 04:15:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1876
Author: @cha1latte
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-1868-discover-bar


📝 Commits (2)

  • ff8d181 Fix compact Discover home bar
  • 8b42741 Cover Discover collapse behavior

📊 Changes

2 files changed (+61 additions, -4 deletions)

View changed files

📝 src/features/shell/discovery/components/DiscoverPanel.test.tsx (+36 -1)
📝 src/features/shell/discovery/components/DiscoverPanel.tsx (+25 -3)

📄 Description

Linked issue

Closes #1868

Why this change

  • The Discover surface on the home screen rendered the full seeded feature list by default, making launch look like an overlong scrolling guide instead of a compact discovery bar.

What changed

  • Keeps the default Discover home surface compact by hiding entry cards until the user searches, filters, or chooses Browse all 36.
  • Preserves full browsing with a Show fewer collapse action after expansion.
  • Updates Discover panel tests for compact default rendering, expansion, empty search, and searched entry actions.

Refactor impact

Primary owner:

  • App shell discovery UI.

Impact areas reviewed:

  • src/features/shell/discovery/components/DiscoverPanel.tsx
  • src/features/shell/discovery/components/DiscoverPanel.test.tsx

Boundary notes:

  • Feature-only React UI change. No engine, shared API, Rust, storage, import/export, prompt, dependency, or schema boundary changes.

Pressure points touched:

  • Home Discover surface rendered through ModeHomeSurface; no mode surface/router behavior changed.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Codex local browser proof before fix: launch captured entryCount=36 for the Discover home surface.
  • Codex local browser proof after fix: launch captured entryCount=0 and hasBrowseAll=true.
  • Codex interaction proof: Browse all 36 expands to 36 entries; searching characters returns 6 entries and 2 Open Characters actions.
  • pnpm exec vitest run src/features/shell/discovery/components/DiscoverPanel.test.tsx src/features/shell/discovery/discovery-registry.test.ts passed.
  • pnpm typecheck passed.
  • pnpm check:discovery passed.
  • pnpm check passed.
  • Marinara proof gate passed with scratch/bugfix-verification.json.
  • Bunny pass completed for the current diff.
  • No manual verification blocker remains for the core claim.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • This changes the presentation of the existing Discover surface only; it does not add a new discoverable capability.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

Before:

Before: Discover renders the full list at launch

After:

After: Discover stays compact with Browse all

Summary by CodeRabbit

  • New Features

    • Discovery Panel adds a compact preview mode with a "Browse all" / "Show fewer" toggle and dynamic counts when expanded or collapsed.
  • Tests

    • Updated tests to validate preview behavior, toggle transitions, correct counts in each state, and filtered entry selection via the search input.

🔄 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/1876 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/2/2026 **Status:** ✅ Merged **Merged:** 6/2/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-1868-discover-bar` --- ### 📝 Commits (2) - [`ff8d181`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ff8d1810bf4f467e600f2a6ba4deeac7b3d79ce2) Fix compact Discover home bar - [`8b42741`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8b427419f2d4385f162f902b7e4135ecd440c0b2) Cover Discover collapse behavior ### 📊 Changes **2 files changed** (+61 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/features/shell/discovery/components/DiscoverPanel.test.tsx` (+36 -1) 📝 `src/features/shell/discovery/components/DiscoverPanel.tsx` (+25 -3) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #1868 ## Why this change - The Discover surface on the home screen rendered the full seeded feature list by default, making launch look like an overlong scrolling guide instead of a compact discovery bar. ## What changed - Keeps the default Discover home surface compact by hiding entry cards until the user searches, filters, or chooses `Browse all 36`. - Preserves full browsing with a `Show fewer` collapse action after expansion. - Updates Discover panel tests for compact default rendering, expansion, empty search, and searched entry actions. ## Refactor impact Primary owner: - App shell discovery UI. Impact areas reviewed: - `src/features/shell/discovery/components/DiscoverPanel.tsx` - `src/features/shell/discovery/components/DiscoverPanel.test.tsx` Boundary notes: - Feature-only React UI change. No engine, shared API, Rust, storage, import/export, prompt, dependency, or schema boundary changes. Pressure points touched: - Home Discover surface rendered through `ModeHomeSurface`; no mode surface/router behavior changed. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Codex local browser proof before fix: launch captured `entryCount=36` for the Discover home surface. - Codex local browser proof after fix: launch captured `entryCount=0` and `hasBrowseAll=true`. - Codex interaction proof: `Browse all 36` expands to 36 entries; searching `characters` returns 6 entries and 2 `Open Characters` actions. - `pnpm exec vitest run src/features/shell/discovery/components/DiscoverPanel.test.tsx src/features/shell/discovery/discovery-registry.test.ts` passed. - `pnpm typecheck` passed. - `pnpm check:discovery` passed. - `pnpm check` passed. - Marinara proof gate passed with `scratch/bugfix-verification.json`. - Bunny pass completed for the current diff. - No manual verification blocker remains for the core claim. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - This changes the presentation of the existing Discover surface only; it does not add a new discoverable capability. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence Before: ![Before: Discover renders the full list at launch](https://gist.githubusercontent.com/cha1latte/c7f464a59f96479d9a88244b3e600cdb/raw/3412b0cfbb32cc4b4357da3b985aea9098cf80ff/discover-before.svg) After: ![After: Discover stays compact with Browse all](https://gist.githubusercontent.com/cha1latte/c7f464a59f96479d9a88244b3e600cdb/raw/b5738346b365bc60dac0611e65a6c7b0643268ec/discover-after.svg) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Discovery Panel adds a compact preview mode with a "Browse all" / "Show fewer" toggle and dynamic counts when expanded or collapsed. * **Tests** * Updated tests to validate preview behavior, toggle transitions, correct counts in each state, and filtered entry selection via the search input. <!-- 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-22 04:15:17 +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#5330
No description provided.