Skip to content

fix: error style for env & workspace rename#6553

Merged
bijin-bruno merged 1 commit intousebruno:mainfrom
naman-bruno:bugfix/error-style
Dec 30, 2025
Merged

fix: error style for env & workspace rename#6553
bijin-bruno merged 1 commit intousebruno:mainfrom
naman-bruno:bugfix/error-style

Conversation

@naman-bruno
Copy link
Collaborator

@naman-bruno naman-bruno commented Dec 30, 2025

Description

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

Summary by CodeRabbit

  • Style
    • Adjusted workspace component spacing, sizing, and typography for improved visual layout
    • Repositioned and enhanced error message styling with improved visibility and appearance
    • Updated error indicator styling in environment components with refined visual treatment

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 30, 2025

Walkthrough

Two styled wrapper components receive CSS refinements: workspace title/input sizing reductions, error tooltip repositioning and styling enhancements, and environment error background/border updates.

Changes

Cohort / File(s) Change Summary
Workspace styling refinements
packages/bruno-app/src/components/WorkspaceHome/StyledWrapper.js
.workspace-title height set to 24px; .workspace-rename-container height reduced to 24px; .workspace-name-input font-size reduced to 14px; .workspace-error repositioned (top: 80%, left: 40px) with added padding (4px 8px), background, border, border-radius, and z-index: 10; white-space set to nowrap
Environment error styling
packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/StyledWrapper.js
.title-error background switched from translucent danger color to theme background; danger-colored border added

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • helloanoop
  • lohit-bruno
  • bijin-bruno

Poem

Pixels dance and spacing flows, ✨
Error hints find new repose,
Borders crisp and colors blend,
The workspace polish meets its end! 🎨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes—styling fixes for error messages in both environment and workspace rename components.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings

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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2b28d37 and ff4cf1c.

📒 Files selected for processing (2)
  • packages/bruno-app/src/components/WorkspaceHome/StyledWrapper.js
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/StyledWrapper.js
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (CODING_STANDARDS.md)

**/*.{js,jsx,ts,tsx}: Use 2 spaces for indentation. No tabs, just spaces
Stick to single quotes for strings. For JSX/TSX attributes, use double quotes (e.g., )
Always add semicolons at the end of statements
No trailing commas
Always use parentheses around parameters in arrow functions, even for single params
For multiline constructs, put opening braces on the same line, and ensure consistency. Minimum 2 elements for multiline
No newlines inside function parentheses
Space before and after the arrow in arrow functions. () => {} is good
No space between function name and parentheses. func() not func ()
Semicolons go at the end of the line, not on a new line
Names for functions need to be concise and descriptive
Add in JSDoc comments to add more details to the abstractions if needed
Add in meaningful comments instead of obvious ones where complex code flow is explained properly

Files:

  • packages/bruno-app/src/components/WorkspaceHome/StyledWrapper.js
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/StyledWrapper.js
🧠 Learnings (5)
📓 Common learnings
Learnt from: CR
Repo: usebruno/bruno PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-05T20:31:33.005Z
Learning: Applies to **/*.{jsx,tsx} : Styled Components are used as wrappers to define both self and children components style; Tailwind classes are used specifically for layout based styles
Learnt from: CR
Repo: usebruno/bruno PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-05T20:31:33.005Z
Learning: Applies to **/*.{jsx,tsx} : Styled Component CSS might also change layout but Tailwind classes shouldn't define colors
📚 Learning: 2025-12-05T20:31:33.005Z
Learnt from: CR
Repo: usebruno/bruno PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-05T20:31:33.005Z
Learning: Applies to **/*.{jsx,tsx} : Styled Component CSS might also change layout but Tailwind classes shouldn't define colors

Applied to files:

  • packages/bruno-app/src/components/WorkspaceHome/StyledWrapper.js
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/StyledWrapper.js
📚 Learning: 2025-12-05T20:31:33.005Z
Learnt from: CR
Repo: usebruno/bruno PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-05T20:31:33.005Z
Learning: Applies to **/*.{jsx,tsx} : Styled Components are used as wrappers to define both self and children components style; Tailwind classes are used specifically for layout based styles

Applied to files:

  • packages/bruno-app/src/components/WorkspaceHome/StyledWrapper.js
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/StyledWrapper.js
📚 Learning: 2025-12-17T21:41:24.730Z
Learnt from: naman-bruno
Repo: usebruno/bruno PR: 6407
File: packages/bruno-app/src/components/Environments/ConfirmCloseEnvironment/index.js:5-41
Timestamp: 2025-12-17T21:41:24.730Z
Learning: Do not suggest PropTypes validation for React components in the Bruno codebase. The project does not use PropTypes, so reviews should avoid proposing PropTypes and rely on the existing typing/validation approach (e.g., TypeScript or alternative runtime checks) if applicable. This guideline applies broadly to all JavaScript/JSX components in the repo.

Applied to files:

  • packages/bruno-app/src/components/WorkspaceHome/StyledWrapper.js
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/StyledWrapper.js
📚 Learning: 2025-12-05T20:31:33.005Z
Learnt from: CR
Repo: usebruno/bruno PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-05T20:31:33.005Z
Learning: Applies to **/*.{jsx,tsx} : Use styled component's theme prop to manage CSS colors and not CSS variables when in the context of a styled component or any React component using the styled component

Applied to files:

  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/StyledWrapper.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: SSL Tests - Linux
  • GitHub Check: CLI Tests
  • GitHub Check: Unit Tests
  • GitHub Check: SSL Tests - macOS
  • GitHub Check: Playwright E2E Tests
  • GitHub Check: SSL Tests - Windows
🔇 Additional comments (3)
packages/bruno-app/src/components/WorkspaceHome/WorkspaceEnvironments/EnvironmentList/EnvironmentDetails/StyledWrapper.js (1)

89-90: Consistent error styling applied.

The switch from a translucent danger background to a solid background with danger-colored border improves visibility and consistency with the workspace error styling.

packages/bruno-app/src/components/WorkspaceHome/StyledWrapper.js (2)

24-24: Height and font-size adjustments look good.

The reduced sizing creates better visual consistency across the workspace title, rename container, and input field.

Also applies to: 31-31, 41-41


89-97: Error styling enhancements applied correctly.

The additions of z-index, padding, border, background, and whitespace handling improve the error tooltip's visibility and presentation. The styling now matches the pattern used in the environment error tooltip.

Comment on lines +87 to +88
top: 80%;
left: 40px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cat -n packages/bruno-app/src/components/WorkspaceHome/StyledWrapper.js | head -100

Repository: usebruno/bruno

Length of output: 2809


🏁 Script executed:

rg -n "top:\s*(80%|100%)" packages/bruno-app/src/components/WorkspaceHome/ -A2 -B2

Repository: usebruno/bruno

Length of output: 1220


🏁 Script executed:

rg -n "environment-error|workspace-error|error.*tooltip" packages/bruno-app/src/components/ -t js --max-count=20

Repository: usebruno/bruno

Length of output: 579


Align error tooltip positioning with environment error tooltip.

The .workspace-error uses top: 80%, while the similar .title-error in environment details uses top: 100%. The 80% positioning places the tooltip partway down the parent container, risking overlap with the input field. Consider changing to top: 100% for consistency and correct placement below the parent element.

🤖 Prompt for AI Agents
In packages/bruno-app/src/components/WorkspaceHome/StyledWrapper.js around lines
87 to 88, the .workspace-error tooltip is positioned with top: 80% which can
overlap the parent content and is inconsistent with .title-error; change the
positioning to top: 100% so the tooltip appears directly below the parent
element, matching the environment details behavior and preventing overlap.

@bijin-bruno bijin-bruno merged commit 6f71717 into usebruno:main Dec 30, 2025
8 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Jan 5, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants