8000 feat(home): collapse the prompt box instead of hiding it forever by akimovdigital · Pull Request #600 · doop-design/doop · GitHub
[go: up one dir, main page]

Skip to content

feat(home): collapse the prompt box instead of hiding it forever - #600

Open
akimovdigital wants to merge 2 commits into
doop-design:mainfrom
akimovdigital:upstream/home-prompt-collapse
Open

akimovdigital wants to merge 2 commits into
doop-design:mainfrom
akimovdigital:upstream/home-prompt-collapse

Conversation

@akimovdigital
@akimovdigital akimovdigital commented Nov 22, 2026 •
Copy link
Copy Markdown

Problem

On Home, the prompt box's close control (×) asks for confirmation and then hides the whole prompt area. The only way to bring it back is Settings → General → Show Prompt Box, which is easy to miss.

Change

  • The control is now a minus in the top-right of the Home hero, so it reads as collapse rather than dismiss, and it lines up with Import / New canvas.
  • Clicking it collapses the prompt immediately — no confirmation dialog.
  • While collapsed, a labeled Show Prompt Box button appears in the dash header to the left of Import and restores the prompt in one click.
  • The existing doop.home.prompt-box-hidden preference is unchanged, so people who already hid the box land on the collapsed state and can restore it from Home. Settings → General → Show Prompt Box still works, and the preference still updates other open tabs.

Why

The prompt stays discoverable and is quicker to bring back when you need it.

Testing

  • bun run typecheck, bun run lint — pass
  • bun run test tests/homePromptVisibility.test.tsx tests/i18n.test.ts — pass (11)
  • bun run test — 3940 passed (413 files)
  • Chromium: collapse from the keyboard, reload keeps the collapsed state, one click restores; checked at 1280, 390, and 320 px

Screenshots

  • Expanded: the minus sits in the top-right of the Home hero, aligned with Import / New canvas.
  • Collapsed: Show Prompt Box appears in the header, left of Import.

@greptile-apps
greptile-apps Bot commented Nov 22, 2026 •
Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The change is limited to prompt visibility on the Home dashboard.

The PR appears safe to merge, with a non-blocking gap in the restore test.

Findings

  1. P2 Restore test checks a copy ▶

Summary

Home now collapses the prompt box immediately and offers a labeled restore button in the header.

  • Home collapses the prompt and keeps a one-click way to reopen it.

Reviews (1) · Last reviewed commit: "feat(home): collapse the prompt box inst..." · Reviewed by Greptile

Comment on lines +29 to +37
function HeaderExpand() {
const hidden = usePromptBoxHidden()
if (!hidden) return null
return (
<Button variant="default" size="bar" aria-label="Show Prompt Box" => setPromptBoxHidden(false)}>
<SparkIcon width={15} height={15} className="text-ink-soft" /> Show Prompt Box
</Button>
)
8000 }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Restore test checks a copy

The restore test checks HeaderExpand, a copy defined inside the test, rather than the button in Home. Removing or breaking the real button would leave this test passing. Render Home with mocked dependencies, or extract a shared production component and test that instead.

kgoedecke added a commit that referenced this pull request Nov 25, 2026
…g them (#600)

* refactor(frames): compose shared styles into frames instead of storing them

A frame's stored HTML carried its own copy of every component stylesheet it
used, the head tags those components brought and the token block, so a token
or component CSS change rewrote every frame using it. Frames now store their
source; the shared blocks are composed in wherever a document is rendered or
handed on, by the same function in the browser and on the server.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(components): mark instances by the revision their markup last changed

A rules-only revision left instances on an old revision mark, which fell out
of the kept history after 20 such changes and lost the next edit made inside
the instance. Definitions now carry renderRev, instances are stamped with it,
and a base is found by span. Also: edits match the composed document, legacy
connections recompose only affected frames, render caches retire per frame,
and asset refs are read from the composed document.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(psd): read the written PSD by its view, not the buffer pool

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
(cherry picked from commit 71e2f560756955f5deba8b501b1c7eeed64deef0)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0