Skip to content

fix: export/import icons and styles#6462

Merged
bijin-bruno merged 1 commit intousebruno:mainfrom
naman-bruno:bugfix/styles-icons
Dec 18, 2025
Merged

fix: export/import icons and styles#6462
bijin-bruno merged 1 commit intousebruno:mainfrom
naman-bruno:bugfix/styles-icons

Conversation

@naman-bruno
Copy link
Collaborator

@naman-bruno naman-bruno commented Dec 18, 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

  • UI/UX Improvements
    • Standardized import and export icons across the application for improved visual consistency
    • Enhanced styling for active dropdown menu selections
    • Reorganized menu item ordering in collection and workspace dropdowns

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 18, 2025

Walkthrough

This PR updates icon usage across import/export UI elements (download for imports, upload for exports), adds active dropdown item styling, reorders menu items in Collections, and removes the WorkspaceSelector component entirely.

Changes

Cohort / File(s) Change Summary
Icon Corrections
packages/bruno-app/src/components/AppTitleBar/index.js, packages/bruno-app/src/components/ShareCollection/index.js, packages/bruno-app/src/components/WorkspaceHome/index.js, packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/index.js
Standardized import/export icons: download icons for import actions, upload icons for export actions.
Dropdown Styling
packages/bruno-app/src/components/AppTitleBar/StyledWrapper.js
Added .dropdown-item-active CSS class with explicit font-weight, background, and text color styling for active dropdown items.
Menu Reordering
packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js
Repositioned Import collection menu item to appear after Open collection within the dropdown.
Component Removal
packages/bruno-app/src/components/Sidebar/WorkspaceSelector/index.js
Deleted entire WorkspaceSelector component including workspace switching UI, pin/unpin logic, create/open workspace actions, and associated state management.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • WorkspaceSelector deletion: Verify no orphaned references or broken imports elsewhere; check if workspace navigation logic migrated to alternative components.
  • Icon consistency: Confirm icon usage aligns with UX conventions across all affected UI surfaces.
  • Dropdown styling: Ensure .dropdown-item-active theme properties exist and render correctly in both light/dark modes.

Possibly related PRs

Suggested reviewers

  • lohit-bruno
  • helloanoop
  • bijin-bruno

Poem

📥 Icons dance with purpose true,
Download in, upload flew,
WorkspaceSelector bids adieu,
Menus shuffle, styles shine new! ✨

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: correcting export/import icon usage and applying styling fixes across multiple components.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 336496a and d04645b.

📒 Files selected for processing (7)
  • packages/bruno-app/src/components/AppTitleBar/StyledWrapper.js (1 hunks)
  • packages/bruno-app/src/components/AppTitleBar/index.js (2 hunks)
  • packages/bruno-app/src/components/ShareCollection/index.js (2 hunks)
  • packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js (1 hunks)
  • packages/bruno-app/src/components/Sidebar/WorkspaceSelector/index.js (0 hunks)
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/index.js (2 hunks)
  • packages/bruno-app/src/components/WorkspaceHome/index.js (2 hunks)
💤 Files with no reviewable changes (1)
  • packages/bruno-app/src/components/Sidebar/WorkspaceSelector/index.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/WorkspaceOverview/index.js
  • packages/bruno-app/src/components/AppTitleBar/StyledWrapper.js
  • packages/bruno-app/src/components/WorkspaceHome/index.js
  • packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js
  • packages/bruno-app/src/components/AppTitleBar/index.js
  • packages/bruno-app/src/components/ShareCollection/index.js
🧠 Learnings (4)
📚 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/WorkspaceOverview/index.js
  • packages/bruno-app/src/components/AppTitleBar/StyledWrapper.js
  • packages/bruno-app/src/components/WorkspaceHome/index.js
  • packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js
  • packages/bruno-app/src/components/AppTitleBar/index.js
  • packages/bruno-app/src/components/ShareCollection/index.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 Component CSS might also change layout but Tailwind classes shouldn't define colors

Applied to files:

  • packages/bruno-app/src/components/AppTitleBar/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/AppTitleBar/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/AppTitleBar/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 - Windows
  • GitHub Check: SSL Tests - macOS
  • GitHub Check: SSL Tests - Linux
  • GitHub Check: CLI Tests
  • GitHub Check: Playwright E2E Tests
  • GitHub Check: Unit Tests
🔇 Additional comments (5)
packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/index.js (1)

3-3: LGTM! Icon change is semantically consistent.

The switch from IconFileImport to IconDownload for the Import Collection action aligns with the intuitive metaphor of importing as downloading content into the application.

Also applies to: 119-119

packages/bruno-app/src/components/AppTitleBar/index.js (1)

2-2: LGTM! Consistent icon usage for import actions.

Replacing IconUpload with IconDownload for the Import workspace menu item maintains semantic consistency with the PR's iconography updates.

Also applies to: 224-224

packages/bruno-app/src/components/ShareCollection/index.js (1)

3-3: LGTM! Correct icon for export functionality.

Switching to IconUpload for the Postman Collection export aligns with the semantic pattern of exports as uploading/sending data out of the application.

Also applies to: 103-103

packages/bruno-app/src/components/Sidebar/Sections/CollectionsSection/index.js (1)

152-160: LGTM! Logical menu item ordering.

Repositioning the Import collection menu item after Open collection creates a more intuitive menu flow.

packages/bruno-app/src/components/WorkspaceHome/index.js (1)

3-3: LGTM! Consistent export icon usage.

The change from IconDownload to IconUpload for the Export workspace action completes the consistent iconography pattern across the PR where exports use upload icons and imports use download icons.

Also applies to: 231-231

Comment on lines +240 to +245

.dropdown-item-active {
font-weight: 400 !important;
background-color: ${(props) => props.theme.dropdown.selectedBg} !important;
color: ${(props) => props.theme.dropdown.selectedColor} !important;
}
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 | 🟡 Minor

Review the necessity of !important flags.

The new .dropdown-item-active class uses !important on all three properties, which can make styles harder to maintain and override. Consider whether these flags are truly necessary or if the specificity issue can be resolved through more specific selectors.

🤖 Prompt for AI Agents
In packages/bruno-app/src/components/AppTitleBar/StyledWrapper.js around lines
240 to 245, the .dropdown-item-active rule applies !important to font-weight,
background-color and color; remove the !important flags and instead resolve
specificity by using a more specific selector or nesting (for example target the
element via its parent class or chain the class e.g. .dropdown
.dropdown-item-active or nest inside the styled wrapper) so the theme values win
without forcing overrides; update the rule to use the theme values directly (no
!important), increase selector specificity as needed, and verify in the
browser/devtools that the styles apply and no other rule is unintentionally
overriding them.

@bijin-bruno bijin-bruno merged commit 397ccbb into usebruno:main Dec 18, 2025
8 checks passed
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