fix(desktop): make NewProjectModal error text selectable#4036
Conversation
The renderer applies user-select: none globally on body, which prevented copying error messages out of the New Project modal — exactly the text users want to share when reporting issues.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA single line in an error message component was updated to include the ChangesError Message Selectability
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Review rate limit: 4/8 reviews remaining, refill in 26 minutes and 25 seconds.Comment |
Greptile SummaryThis PR adds the Confidence Score: 5/5Safe to merge — single-class CSS fix with no logic changes or side effects. The change is a one-line Tailwind class addition that correctly overrides the global user-select policy on a specific UI element. No logic, state, or API surface is affected. No files require special attention.
|
| Filename | Overview |
|---|---|
| apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/AddRepositoryModals/components/NewProjectModal/NewProjectModal.tsx | Added select-text Tailwind class to error span to allow text selection — straightforward one-class fix with no logic changes. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User triggers error in NewProjectModal] --> B{error state set?}
B -- Yes --> C[Render error div]
C --> D["<span class='select-text'>error message</span>"]
D --> E[User can select & copy text]
B -- No --> F[No error UI rendered]
Reviews (1): Last reviewed commit: "fix(desktop): make NewProjectModal error..." | Re-trigger Greptile
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
…#4036) The renderer applies user-select: none globally on body, which prevented copying error messages out of the New Project modal — exactly the text users want to share when reporting issues.
Summary
user-select: noneonbodyprevented copying error messages from the New Project modal — the text users most need to share when reporting issues.select-textto the error span so the message can be selected and copied.Test plan
Summary by cubic
Make error text in the New Project modal selectable so users can copy it. This overrides the global user-select: none that prevented copying error messages for bug reports.
Written for commit 4a451b7. Summary will update on new commits.
Summary by CodeRabbit