Skip to content

Fix long workspace titles on creation error page#3718

Merged
saddlepaddle merged 1 commit into
mainfrom
fix-long-titles-cleanup
Apr 25, 2026
Merged

Fix long workspace titles on creation error page#3718
saddlepaddle merged 1 commit into
mainfrom
fix-long-titles-cleanup

Conversation

@saddlepaddle
Copy link
Copy Markdown
Collaborator

@saddlepaddle saddlepaddle commented Apr 25, 2026

Summary

  • Clamp long workspace names on the setup incomplete and setup failed states
  • Preserve the full title in the native tooltip

Fixes SUPER-440

Verification

  • bunx biome check --write apps/desktop/src/renderer/screens/main/components/WorkspaceView/WorkspaceInitializingView/WorkspaceInitializingView.tsx
  • bun --cwd apps/desktop typecheck

Summary by cubic

Fixes overflow from long workspace names on the "Setup incomplete" and "Workspace setup failed" views by clamping to 3 lines and breaking long words. The full name is still shown on hover via the title tooltip. Addresses SUPER-440.

Written for commit e7ee21a. Summary will update on new commits.

Summary by CodeRabbit

  • Bug Fixes

    • Improved workspace name display during initialization errors and interruptions with enhanced text wrapping and truncation handling.
    • Added hover tooltip support to reveal full workspace name when truncated in error states.
  • Style

    • Refined visual presentation of workspace name rendering for edge cases.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 25, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3582a9e7-709c-4fe3-9cdf-e641a7562502

📥 Commits

Reviewing files that changed from the base of the PR and between 186078a and e7ee21a.

📒 Files selected for processing (1)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/WorkspaceInitializingView/WorkspaceInitializingView.tsx

📝 Walkthrough

Walkthrough

Updated the WorkspaceInitializingView component to improve display of workspace names in error and interrupt states by adding line clamping, text wrapping, and a hover tooltip attribute for better usability when names exceed available space.

Changes

Cohort / File(s) Summary
Workspace Initialization UI Enhancement
apps/desktop/src/renderer/screens/main/components/WorkspaceView/WorkspaceInitializingView/WorkspaceInitializingView.tsx
Modified workspaceName rendering in error and interrupt states: replaced plain paragraph with styled paragraph featuring line clamping, full-width layout, word breaking, and overflow wrapping. Added title attribute to both states for full-text hover display while maintaining visual truncation.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A workspace name gets dressed up fine,
With wrapping tricks and clamps so divine,
When errors strike or states interrupt,
Hover reveals what once was corrupt,
Full text awaits at the edge of sight! ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-long-titles-cleanup

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@saddlepaddle saddlepaddle merged commit 47893c2 into main Apr 25, 2026
6 of 7 checks passed
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 25, 2026

Greptile Summary

This PR fixes long workspace names overflowing the error UI by applying line-clamp-3, break-words, and [overflow-wrap:anywhere] to the workspace name paragraph in both the "Setup incomplete" and "Setup failed" states, and preserves the full name via a native title tooltip. The approach is correct and consistent between the two affected states.

Confidence Score: 5/5

Safe to merge — changes are purely presentational with no logic or data-flow impact.

All findings are P2 style suggestions (redundant CSS class, and the same fix not applied to the initializing state). No correctness or data-integrity issues exist.

No files require special attention.

Important Files Changed

Filename Overview
apps/desktop/src/renderer/screens/main/components/WorkspaceView/WorkspaceInitializingView/WorkspaceInitializingView.tsx Adds line-clamp-3, break-words, and [overflow-wrap:anywhere] with a native title tooltip to the workspace name paragraph in both the "Setup incomplete" and "Setup failed" error states, preventing long names from overflowing the layout.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[WorkspaceInitializingView] --> B{isInterrupted && !progress && showInterruptedUI?}
    B -- Yes --> C["Setup incomplete state\n(now: line-clamp-3 + title tooltip)"]
    B -- No --> D{hasFailed?}
    D -- Yes --> E["Setup failed state\n(now: line-clamp-3 + title tooltip)"]
    D -- No --> F["Initializing state\n(workspaceName — no clamp applied)"]
    C --> G["Delete / Retry buttons"]
    E --> H["Delete / Retry buttons"]
Loading

Comments Outside Diff (1)

  1. apps/desktop/src/renderer/screens/main/components/WorkspaceView/WorkspaceInitializingView/WorkspaceInitializingView.tsx, line 326 (link)

    P2 Long workspace name can still overflow in the initializing state

    The "Setting up workspace" paragraph at this line doesn't apply the same line-clamp / [overflow-wrap:anywhere] treatment added to the two error states. A workspace with a very long name would still overflow the max-w-md container here. Consider making the fix consistent across all three states.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: apps/desktop/src/renderer/screens/main/components/WorkspaceView/WorkspaceInitializingView/WorkspaceInitializingView.tsx
    Line: 326
    
    Comment:
    **Long workspace name can still overflow in the initializing state**
    
    The "Setting up workspace" paragraph at this line doesn't apply the same `line-clamp` / `[overflow-wrap:anywhere]` treatment added to the two error states. A workspace with a very long name would still overflow the `max-w-md` container here. Consider making the fix consistent across all three states.
    
    
    
    How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: apps/desktop/src/renderer/screens/main/components/WorkspaceView/WorkspaceInitializingView/WorkspaceInitializingView.tsx
Line: 124

Comment:
**`break-words` is redundant alongside `[overflow-wrap:anywhere]`**

Tailwind's `break-words` sets `overflow-wrap: break-word`, which is immediately overridden by the `[overflow-wrap:anywhere]` arbitrary value. The `anywhere` keyword is strictly more aggressive and already handles all the cases `break-word` covers, so `break-words` has no additional effect. The same redundancy exists on line 220.

```suggestion
className="line-clamp-3 max-w-full text-sm text-muted-foreground [overflow-wrap:anywhere]"
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: apps/desktop/src/renderer/screens/main/components/WorkspaceView/WorkspaceInitializingView/WorkspaceInitializingView.tsx
Line: 326

Comment:
**Long workspace name can still overflow in the initializing state**

The "Setting up workspace" paragraph at this line doesn't apply the same `line-clamp` / `[overflow-wrap:anywhere]` treatment added to the two error states. A workspace with a very long name would still overflow the `max-w-md` container here. Consider making the fix consistent across all three states.

```suggestion
<p className="line-clamp-3 max-w-full text-sm text-muted-foreground [overflow-wrap:anywhere]" title={workspaceName}>{workspaceName}</p>
```

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "fix desktop workspace creation title cla..." | Re-trigger Greptile

</h2>
<p className="text-sm text-muted-foreground">{workspaceName}</p>
<p
className="line-clamp-3 max-w-full break-words text-sm text-muted-foreground [overflow-wrap:anywhere]"
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 break-words is redundant alongside [overflow-wrap:anywhere]

Tailwind's break-words sets overflow-wrap: break-word, which is immediately overridden by the [overflow-wrap:anywhere] arbitrary value. The anywhere keyword is strictly more aggressive and already handles all the cases break-word covers, so break-words has no additional effect. The same redundancy exists on line 220.

Suggested change
className="line-clamp-3 max-w-full break-words text-sm text-muted-foreground [overflow-wrap:anywhere]"
className="line-clamp-3 max-w-full text-sm text-muted-foreground [overflow-wrap:anywhere]"
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/desktop/src/renderer/screens/main/components/WorkspaceView/WorkspaceInitializingView/WorkspaceInitializingView.tsx
Line: 124

Comment:
**`break-words` is redundant alongside `[overflow-wrap:anywhere]`**

Tailwind's `break-words` sets `overflow-wrap: break-word`, which is immediately overridden by the `[overflow-wrap:anywhere]` arbitrary value. The `anywhere` keyword is strictly more aggressive and already handles all the cases `break-word` covers, so `break-words` has no additional effect. The same redundancy exists on line 220.

```suggestion
className="line-clamp-3 max-w-full text-sm text-muted-foreground [overflow-wrap:anywhere]"
```

How can I resolve this? If you propose a fix, please make it concise.

@github-actions
Copy link
Copy Markdown
Contributor

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ⚠️ Neon database branch

Thank you for your contribution! 🎉

MocA-Love pushed a commit to MocA-Love/superset that referenced this pull request Apr 25, 2026
MocA-Love added a commit to MocA-Love/superset that referenced this pull request Apr 25, 2026
upstream の 10 commits は #426#427 で fork 固有の差分を保ちながら個別に
cherry-pick 取り込み済み。本 merge は ours strategy で **記録だけ** マージ済みに
することで behind=0 を達成し、git 履歴上の追跡を正しくする。

Cherry-pick 取り込み済 (PR #426):
- 5aab22a fix closed picker filters (superset-sh#3702) → cdb52f9
- 99db5be [codex] simplify workspace controls (superset-sh#3714) → f079606
- 186078a fix(chat): prevent ask_user question from shadowing sandbox access prompt (superset-sh#3662) → 09d6b57
- 47893c2 fix desktop workspace creation title clamp (superset-sh#3718) → 6a8c4ae
- 09323ff Add diff pane file viewer action (superset-sh#3715) → 817ed8d
- a5891c6 remove pending launch log (superset-sh#3721) → 0764d03
- c83de0c Add Tiptap table support (superset-sh#3719) → e67a885
- 486b621 [codex] Fix v2 terminal lifecycle after sleep (superset-sh#3711) → b71fbbb (+ #426 内 review fixups)

Cherry-pick 取り込み済 (PR #427):
- e07aef6 feat(desktop): play v2 notification hooks client-side (superset-sh#3675) → 27ac18a
- eae6008 [codex] Port v2 terminal hotkeys to v1 (superset-sh#3724) → 05a77b8 (+ #427 内 Windows .ps1 v2 化)

Fork 固有領域は変更ゼロで保持: 19 tRPC procedures (workspaces.githubExtended)、
AudioScheduler / Aivis TTS / notification-manager、terminal suggestion handler
(新 terminalKeyboardHandler.ts に移植)、TERMINAL_OPTIONS、SUPERSET_WORKSPACE_NAME、
MainWindowEffects、INCEPTION_AUTH_PROVIDER_ID、v1MigrationState、TiptapPromptEditor、
electron-builder.ts (dmg.size="4g", fileAssociations)、Service Status Dashboard、
Linux daemon systemd、Worktree auto-sync、Windows support、DnD scratch route 他。
@Kitenite Kitenite deleted the fix-long-titles-cleanup branch May 6, 2026 04:52
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