Repository navigation
Fix long filenames in Add Project dialog - #1145
Conversation
|
🚨 SLOP COP 🚨 · ELI5: This change helps the Add Project dialog show long folder names without breaking its layout. I’m SlopCop. I’m reviewing this pull request for security, code quality, architecture, performance, and end-to-end behavior. |
| <span className="font-medium text-foreground"> | ||
| <p className="flex min-w-0 gap-1 text-sm text-muted-foreground"> | ||
| <span className="shrink-0">Project name:</span> | ||
| <span className="min-w-0 truncate font-medium text-foreground"> |
There was a problem hiding this comment.
🚨 slopcop/review — The clipped project name has no full-value fallback.
This span now truncates the generated name. Add title={derivedProjectName} to match the file and folder labels above.
This change lets desktop users read the full value before they submit the form.
SawyerHood
left a comment
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
ELI5: The dialog now keeps very long names inside its box. One clipped project name still needs a full-value tooltip.
I found one small user experience issue. The project-name preview clips correctly, but users cannot reveal its full value. See the inline comment.
The security review found no issue. The change does not alter path handling, permissions, contracts, or host communication.
The performance review found no issue. The fixed grid track avoids content-based growth without new scripts, observers, or render work.
The codebase scan found one related duplicate. AlertDialogContent has a similar grid shell without the fixed track.
That duplicate does not block this focused fix. A later shared surface class could keep both dialog shells consistent.
Validation completed at the reviewed SHA:
- Turbo ran 320 app test files and 2,390 tests. All tests passed.
- Turbo type-checked
@bb/appand@bb/shared-ui. Both checks passed. - Ladle rendered the long-name story in Chromium.
- Browser measurements showed no page overflow. The long labels remained inside the 512-pixel dialog.
The pull request added commit 3458d63 during this review. That commit only regenerated the plugin dialog registry and kept the reviewed source unchanged.
## Summary - constrain shared dialog grid tracks so long intrinsic content cannot widen desktop dialogs or mobile drawers - truncate long folder, file, and derived project names while preserving full entry names as hover titles - add regression coverage and a long-names row to the Project Path story ## Testing - pnpm exec turbo run test --filter=@bb/app --force -- src/components/dialogs/ProjectPathDialog.test.tsx src/components/dialogs/RemotePathBrowser.createFolder.test.tsx - pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/shared-ui - pnpm exec turbo run lint --filter=@bb/app - pnpm exec turbo run build --filter=@bb/app Closes get-bb#1112
Summary
Testing
Closes #1112