Rocket.Chat.Electron icon indicating copy to clipboard operation
Rocket.Chat.Electron copied to clipboard

3124 - Settings menu section's icon's color fixes

Open sonu-ind-dev opened this issue 2 months ago β€’ 3 comments

πŸ“Œ Ticket ID: https://github.com/RocketChat/Rocket.Chat.Electron/issues/3124

βœ… fix: making menu's ^ icon's color visible

⌚ Before

image

πŸ•› After Fix

image

Summary by CodeRabbit

  • Style
    • Updated visual styling of filter containers to use a muted hint color for more consistent UI appearance and layout balance.
    • Wrapped the browser selector in a hint-colored container with adjusted spacing for improved presentation without changing behavior.

sonu-ind-dev avatar Oct 26 '25 04:10 sonu-ind-dev

@jeanfbrito Please review #3124 bug fixes in this PR. Let me know if there is anything I have to take care. New Here

sonu-ind-dev avatar Oct 26 '25 04:10 sonu-ind-dev

Walkthrough

Minor UI styling changes: three filter containers in the DownloadsManagerView and a SelectLegacy wrapper in AvailableBrowsers were wrapped with Box components using color='hint' (mime/type/status containers also set flexBasis='0'), with no logic or behavior changes.

Changes

Cohort / File(s) Summary
Downloads manager filter boxes
src/ui/components/DownloadsManagerView/index.tsx
Wrapped server, mime type, and status filter containers with Box components adding color='hint'; mime type and status containers also set flexBasis='0' while preserving existing display, flexGrow, flexShrink, and paddingInline props.
Available browsers select styling
src/ui/components/SettingsView/features/AvailableBrowsers.tsx
Wrapped SelectLegacy in a Box with color='hint' and paddingBlockStart={4} (replacing the prior paddingTop placement); no changes to select props or logic.

Sequence Diagram(s)

(Not applicable β€” changes are presentation-only and do not alter control flow.)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

  • Cosmetic/styling-only edits, consistent pattern across two files.
  • Areas to glance at:
    • Ensure color='hint' conforms to design token usage.
    • Verify flexBasis='0' does not unintentionally affect layout in narrow containers.

Poem

🐰 A hint of color on boxes tight and small,

Filters dressed lightly, standing proud and tall,
Padding tucked in, flex set just right,
A rabbit's soft cheer for UI delight! πŸ₯•βœ¨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
βœ… Passed checks (2 passed)
Check name Status Explanation
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check βœ… Passed The PR title "3124 - Settings menu section's icon's color fixes" is related to the main objective of the changeset, which is to fix the visibility of the caret icon in the settings menu. The changes involve adding color='hint' styling to Box containers, which directly aligns with the color fix objective. However, the title only references the settings menu section when the changeset includes styling adjustments to both AvailableBrowsers.tsx (in SettingsView) and DownloadsManagerView/index.tsx (in Downloads Manager), suggesting a scope broader than the title implies. Despite this partial incompleteness, the title accurately captures the primary objective and the nature of the change (color-related fixes).
✨ Finishing touches
  • [ ] πŸ“ Generate docstrings
πŸ§ͺ Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

πŸ“œ Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 8dbd32330ec5bd908a0320695c6a45163becd795 and a376a6611f69b3ff98fb1a0db25bbe7d9b438d14.

πŸ“’ Files selected for processing (2)
  • src/ui/components/DownloadsManagerView/index.tsx (2 hunks)
  • src/ui/components/SettingsView/features/AvailableBrowsers.tsx (1 hunks)
🧰 Additional context used
πŸ““ Path-based instructions (2)
**/*.{ts,tsx}

πŸ“„ CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Follow existing TypeScript patterns with strict mode enabled All new code must pass ESLint and TypeScript checks Avoid unnecessary comments; only add comments for complex logic or non-obvious decisions

Files:

  • src/ui/components/DownloadsManagerView/index.tsx
  • src/ui/components/SettingsView/features/AvailableBrowsers.tsx
src/ui/**/*.tsx

πŸ“„ CodeRabbit inference engine (CLAUDE.md)

src/ui/**/*.tsx: Implement React UI with functional components and hooks Use Fuselage components (Box, Button, TextInput, Modal, etc.) and import from @rocket.chat/fuselage instead of raw HTML elements For Fuselage theming, validate tokens against Theme.d.ts and only use documented values Name React component files in PascalCase; non-component files should follow camelCase naming

Files:

  • src/ui/components/DownloadsManagerView/index.tsx
  • src/ui/components/SettingsView/features/AvailableBrowsers.tsx
🧠 Learnings (1)
πŸ“š Learning: 2025-09-26T19:24:21.364Z
Learnt from: CR
PR: RocketChat/Rocket.Chat.Electron#0
File: CLAUDE.md:0-0
Timestamp: 2025-09-26T19:24:21.364Z
Learning: Applies to src/ui/**/*.tsx : Use Fuselage components (Box, Button, TextInput, Modal, etc.) and import from `rocket.chat/fuselage` instead of raw HTML elements

Applied to files:

  • src/ui/components/SettingsView/features/AvailableBrowsers.tsx
πŸ”‡ Additional comments (4)
src/ui/components/SettingsView/features/AvailableBrowsers.tsx (1)

85-90: Past review feedback addressed - LGTM!

The inline style has been correctly replaced with Fuselage's paddingBlockStart={4} spacing prop, and the color='hint' attribute improves the visibility of the select control per the PR objectives.

src/ui/components/DownloadsManagerView/index.tsx (3)

226-233: LGTM - Consistent styling applied.

Adding color='hint' to the server filter container improves visibility and maintains consistency with the other filter boxes.


241-248: Past review feedback addressed - LGTM!

The flexBasis='0' property has been added to match the server filter box, ensuring consistent flex layout. The color='hint' attribute improves visibility per the PR objectives.


256-263: Layout consistency maintained - LGTM!

The addition of both color='hint' and flexBasis='0' ensures this status filter box has consistent styling and layout behavior with the other filter containers.


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.

coderabbitai[bot] avatar Oct 26 '25 05:10 coderabbitai[bot]

Hello @sonu-ind-dev , nice catch, you can update it to use fuselage's select component to it will match the design system. https://rocketchat.github.io/fuselage/fuselage/main/?path=/docs/inputs-select--docs

When I made this I didnt searched for the correct name, tell me if you get it, its an easy fix and a good clean up.

jeanfbrito avatar Oct 29 '25 13:10 jeanfbrito