Repository navigation
chore(desktop): keep the sample prompt rows, drop the prompt-cards experiment - #8855
Conversation
…periment Experiment 419092 (rows vs two cards vs four cards) never launched: its flag stayed off, so everyone saw the three rows, and only an override showed the two-card layout to one account. The rows stay; the cards, the variant hook, the card-only prompt descriptions and both flags go. Without a flag to wait for, the rows also no longer hold for up to two seconds while PostHog loads. Co-authored-by: Claude <[email protected]>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Prompt selection and experiment removal apps/desktop/.../NewWorkspaceScreen/*, apps/desktop/.../hooks/useNewWorkspacePromptCardsVariant/*, packages/shared/src/constants.ts |
The screen selects and renders three sample prompts without a variant check. The prompt-card component, variant hook, feature flags, and prompt descriptions are removed. Dismissal analytics no longer include a layout value. |
Remove obsolete prompt translations packages/i18n/locales/*/messages.po |
Locale catalogs remove the entries for six suggested prompts. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Other
Possibly related PRs
- superset-sh/superset#8845: This PR removes unused feature flags but retains the prompt-card flags that this change removes.
Suggested reviewers: kitenite
Merge Risk: 
Minimal · up to 4f517
-
The experiment removal preserves the three-row prompt flow and leaves no identified merge-blocking risk.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title "chore(desktop): keep the sample prompt rows, drop the prompt-cards experiment" follows conventional commit format and names the main change: removing the unlaunched prompt-cards experiment while keeping the three-row sample prompt layout. The changeset removes SamplePromptCards, the useNewWorkspacePromptCardsVariant hook, the related feature flags, and the card-only descriptions and locale strings, so the title matches the objectives. The title is 77 characters, which is slightly long but still readable.
Full details: Description check
-
Explanation
The description follows the template well. The 'What & why' section explains the change and the problem: an experiment that never launched, its flags, and the removed components, hooks, flags, descriptions, and locale strings. It also notes a behavior change (no 2 s wait for PostHog flags) and states that the flags were deleted in PostHog. The 'How I tested it' section lists concrete verification steps: a CDP check of the three rows, 20 passing modal tests, a clean tsc run on touched files, clean Biome, and a passing check:i18n. Gaps: the template's issue link is absent, and no screenshots are attached even though the change is user-visible. The checklist items are not ticked, and the description does not confirm lint and typecheck across the repo (
bun run lintandbun run typecheck).
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
[Medium impact] The PR appears safe to merge. SummaryRemoves the prompt-cards experiment and keeps the existing three sample-prompt rows.
No actionable issues found. Review was static; no tests or UI checks were run. Reviews (1) · Last reviewed commit: "chore(desktop): keep the sample prompt r..." · Reviewed by Greptile |
|
Preview update published for development build |
What & why
Experiment 419092 compared the new-workspace sample prompts as three rows, two cards, or four cards, but it never launched (no start date). Its flag stayed off, so everyone has been seeing the three rows. Only
new-workspace-prompt-cards-overrideshowed the two-card layout, to one account.The rows stay. This removes:
SamplePromptCardscomponent and its agent-logo cluster;useNewWorkspacePromptCardsVariant;NEW_WORKSPACE_PROMPT_CARDSandNEW_WORKSPACE_PROMPT_CARDS_OVERRIDEentries inFEATURE_FLAGS;descriptionon each sample prompt, plus its 7 strings in every locale catalog (deletions only);One behavior change: the rows no longer wait up to 2 s for PostHog flags before showing.
Both flags are deleted in PostHog. The draft experiment stays: PostHog can only archive an experiment that has run.
How I tested it
DashboardNewWorkspaceModaltests pass (20).tscfor desktop shows no errors in the touched files. Biome is clean.check:i18npasses, and its catalog changes are deletions only.🤖 Generated with Claude Code
Summary by CodeRabbit