Skip to content

Version edit modal minor UI fixes - #8549

Merged
bijin-bruno merged 1 commit into
usebruno:mainfrom
sachin-bruno:sachin-bruno/version-edit-changes
Jul 10, 2026
Merged

bijin-bruno merged 1 commit into
usebruno:mainfrom
sachin-bruno:sachin-bruno/version-edit-changes

Conversation

@sachin-bruno

@sachin-bruno sachin-bruno commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Issues Resolved
When collection version is not set and when I click on change in Overview, in the modal preview, it is displayed as “(none)-> “ instead of “Not Set->”

Collection version is truncated in Overview page when it has more characters.

https://usebruno.atlassian.net/browse/BRU-2545

image image

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

  • New Features

    • Improved version display behavior to keep long text on one line and neatly truncated when needed.
    • Added hover tooltips for version values when the text overflows its container.
    • Updated empty version states to show a clearer “Not Set” label in both settings and version-change views.
  • Style

    • Refined spacing and emphasis for version-related preview text to improve readability.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Updates version text display in Collection Overview Info to detect text overflow and show a tooltip with truncation styling, and revises "Not Set" rendering and styling in ChangeCollectionVersion's current version and preview sections.

Changes

Collection version UI updates

Layer / File(s) Summary
Overview Info version overflow tooltip
packages/bruno-app/src/components/CollectionSettings/Overview/Info/index.js, packages/bruno-app/src/components/CollectionSettings/Overview/Info/StyledWrapper.js
Adds useRef, overflow state, and a hover handler that detects text overflow via scrollWidth/clientWidth, wrapping the version value in ToolHint when overflowing; adds flex wrapper and truncation CSS with ellipsis.
ChangeCollectionVersion Not Set styling
packages/bruno-app/src/components/Sidebar/Collections/Collection/ChangeCollectionVersion/index.js, packages/bruno-app/src/components/Sidebar/Collections/Collection/ChangeCollectionVersion/StyledWrapper.js
Replaces prior placeholder rendering with a muted/italic "Not Set" span for both current version and preview "from" values, and adds a .not-set CSS rule with font-weight 500.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • usebruno/bruno#8424: Directly related — updates the same collection version UI (Overview Info overflow/tooltip and ChangeCollectionVersion "Not Set" rendering) introduced there.

Suggested reviewers: helloanoop, lohit-bruno, naman-bruno, sid-bruno, bijin-bruno

Poem

A version too long for its box,
now hides behind tooltip locks. 🐇
"Not Set" once plain, now italic and bold,
a tidier tale for versions untold.
Hop along, reviewer, the diff's not long! 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main theme of the PR: minor UI fixes in the version edit flow and related overview display.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@packages/bruno-app/src/components/Sidebar/Collections/Collection/ChangeCollectionVersion/index.js`:
- Line 132: The no-version case in ChangeCollectionVersion is only covered for
the current version label, so extend the existing `shows "Not Set" for a yml
collection that has no version yet` test to also assert the
`change-version-preview` content. Use the `ChangeCollectionVersion` component
and its preview selector so the `(Not Set)` state is verified alongside
`change-version-current`.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a4bfde51-e808-416d-a9a8-8792e2bfe1a5

📥 Commits

Reviewing files that changed from the base of the PR and between d4b8860 and 014c4ce.

📒 Files selected for processing (4)
  • packages/bruno-app/src/components/CollectionSettings/Overview/Info/StyledWrapper.js
  • packages/bruno-app/src/components/CollectionSettings/Overview/Info/index.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/ChangeCollectionVersion/StyledWrapper.js
  • packages/bruno-app/src/components/Sidebar/Collections/Collection/ChangeCollectionVersion/index.js

@bijin-bruno
bijin-bruno merged commit 8ceaf72 into usebruno:main Jul 10, 2026
12 of 18 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.

3 participants