Skip to content

UI fix search bar#529

Merged
rahulharpal1603 merged 4 commits intoAOSSIE-Org:mainfrom
DecodeX15:fix/search_bar
Oct 2, 2025
Merged

UI fix search bar#529
rahulharpal1603 merged 4 commits intoAOSSIE-Org:mainfrom
DecodeX15:fix/search_bar

Conversation

@DecodeX15
Copy link
Contributor

@DecodeX15 DecodeX15 commented Sep 24, 2025

This pr mainly resolves issue Fix Search Bar UI #527

what this pr does ;
add margin and gap between search and facecam button and correct the hover issue in light mode
after fix
image
in light mode
image

Summary by CodeRabbit

  • Style
    • Improved spacing in the navigation search area for clearer separation of elements.
    • Refined input field margins and background for better visual alignment and contrast.
    • Enhanced search button hover state with clearer feedback, added padding, and subtle rounded corners.
    • Adjusted whitespace around the Face Search dialog to match the updated layout.
    • Minor spacing tweaks across the navigation bar for consistency; no functional changes.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 24, 2025

Warning

Rate limit exceeded

@rahulharpal1603 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 7 minutes and 20 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 39be387 and b0a7fd6.

📒 Files selected for processing (1)
  • frontend/src/components/Navigation/Navbar/Navbar.tsx (2 hunks)

Walkthrough

Navbar.tsx updates only UI classes: adjusted search wrapper spacing and background, changed input background and margin, updated search button padding/rounding/hover colors, added dark/bg neutral classes, and a blank-line/spacing tweak around the FaceSearchDialog. No behavioral or export changes. (≈38 words)

Changes

Cohort / File(s) Summary of Changes
Navbar UI spacing and styles
frontend/src/components/Navigation/Navbar/Navbar.tsx
Replaced pr-2 with gap-1, added dark:bg-muted/50 and bg-neutral-100 plus px-1 py-1 to the search wrapper; changed input classes to include mr-2 and bg-neutral-200 (kept flex-1 border-0); updated search button classes to mx-1 rounded-sm p-2 hover:bg-accent hover:text-foreground; minor blank-line/spacing adjustment around FaceSearchDialog. No functional/API/export changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

I nibble classnames, soft and light,
A margin here, a background bright.
Buttons rounded, hover sings,
Spacing settled on gentle wings.
A rabbit's tweak — small 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 title clearly summarizes the main change by indicating a UI fix for the search bar, directly matching the PR’s adjustments to search bar styling and behavior.

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

🧹 Nitpick comments (2)
frontend/src/components/Navigation/Navbar/Navbar.tsx (2)

32-32: Prefer container gap; remove per‑child margins to avoid uneven spacing

You already added gap-2 on the flex container (Line 32). The extra mr-2 on the Input (Line 56) and mx-1 on the Search button (Line 63) compound spacing and can look inconsistent across breakpoints. Rely on the container gap for predictable rhythm.

Apply this diff:

-            className="flex-1 border-0 bg-transparent focus:ring-0 mr-2"
+            className="flex-1 border-0 bg-transparent focus:ring-0"
-          <button className="text-muted-foreground mx-1 hover:bg-accent p-2 rounded-sm hover:text-foreground">
+          <button className="text-muted-foreground hover:bg-accent p-2 rounded-sm hover:text-foreground">

Also applies to: 56-56, 63-63


61-61: Trim extra spaces in the self‑closing tag

Minor cleanup for consistency.

Apply this diff:

-          <FaceSearchDialog    />
+          <FaceSearchDialog />
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 73fa275 and 9a36af5.

📒 Files selected for processing (1)
  • frontend/src/components/Navigation/Navbar/Navbar.tsx (2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
frontend/src/components/Navigation/Navbar/Navbar.tsx (1)
frontend/src/components/Dialog/FaceSearchDialog.tsx (1)
  • FaceSearchDialog (22-127)

Comment on lines 63 to 65
<button className="text-muted-foreground mx-1 hover:bg-accent p-2 rounded-sm hover:text-foreground">
<Search className="h-4 w-4 " />
</button>
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

Add an accessible name to the Search icon button (screen reader fix)

The icon-only button has no accessible name, so assistive tech will announce just “button”. Add an aria-label (and hide the decorative icon).

Apply this diff:

-          <button className="text-muted-foreground mx-1 hover:bg-accent p-2 rounded-sm hover:text-foreground">
-            <Search className="h-4 w-4 " />
-          </button>
+          <button
+            type="button"
+            aria-label="Search"
+            className="text-muted-foreground hover:bg-accent p-2 rounded-sm hover:text-foreground"
+          >
+            <Search className="h-4 w-4" aria-hidden="true" />
+          </button>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<button className="text-muted-foreground mx-1 hover:bg-accent p-2 rounded-sm hover:text-foreground">
<Search className="h-4 w-4 " />
</button>
<button
type="button"
aria-label="Search"
className="text-muted-foreground hover:bg-accent p-2 rounded-sm hover:text-foreground"
>
<Search className="h-4 w-4" aria-hidden="true" />
</button>
🤖 Prompt for AI Agents
In frontend/src/components/Navigation/Navbar/Navbar.tsx around lines 63 to 65,
the icon-only search button lacks an accessible name; add an aria-label (e.g.,
aria-label="Search") to the button and mark the decorative SVG icon as
aria-hidden="true" (or visually hide a text label with a screen-reader-only
span) so screen readers announce the button purpose while the visual icon
remains; ensure no duplicate visible text is shown.

@github-actions github-actions bot added UI good first issue Good for newcomers labels Oct 2, 2025
@rahulharpal1603 rahulharpal1603 added the bug Something isn't working label Oct 2, 2025
@rahulharpal1603
Copy link
Contributor

@Vaibhaviitian

Please see the linting logs and fix the lint errors

@DecodeX15
Copy link
Contributor Author

@rahulharpal1603 done sir

Copy link
Contributor

@rahulharpal1603 rahulharpal1603 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @Vaibhaviitian

I have made some changes from my end.

@rahulharpal1603 rahulharpal1603 merged commit 434daa5 into AOSSIE-Org:main Oct 2, 2025
2 checks passed
@DecodeX15
Copy link
Contributor Author

Thanks sir @rahulharpal1603 , for my first open source contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working good first issue Good for newcomers hacktoberfest-accepted UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants