Repository navigation
feat(prompts): collapse the suggestions card to a one-line strip by default - #470
Merged
Merged
Conversation
…efault At the top of All Prompts the expanded suggestions card (~400px) pushed the prompt table below the fold on every visit. Collapse it to a single header row by default — chevron + title + count badge — so the table is back above the fold while the suggestions stay discoverable at the top. - Expanding/collapsing persists per browser via localStorage. - The #prompt-opportunities deep link auto-expands (without touching the stored preference) before scrolling into view. - Refresh button and card content render only when expanded; collapsed header shows a small spinner while loading and a count badge after. Related to #461/#466 (placement feedback follow-up).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
After #466 moved the Prompt Suggestions card to the top of All Prompts, its expanded height (~400px with 5 suggestions) pushed the prompt table below the fold on every visit — users had to scroll to reach the page's main content.
The card now collapses to a single header strip by default: chevron + title + a count badge (small spinner while loading, a "no new ideas — expand" hint when empty). The table is back above the fold while the suggestions stay discoverable at the very top.
localStorage— users who prefer it open are welcomed that way next visit.#prompt-opportunitiesdeep link (the Insights: Topic & Prompt Opportunities teaser cards in place of the removed results tree #459 "See all" flow) auto-expands the card before scrolling into view, without overwriting the stored preference.onAccepted, dismiss) are unchanged.Related issue
Follow-up to #461/#466 (internal layout feedback: the expanded card at the top forces scrolling to the table).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
/dashboard/prompts?tab=all#prompt-opportunitiescold → the card auto-expands and scrolls into view.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)