Skip to content

Sidebar details#2198

Merged
MuhammadKhalilzadeh merged 2 commits intodevelopfrom
mo-224-sept-23-dropdown-spacing
Sep 23, 2025
Merged

Sidebar details#2198
MuhammadKhalilzadeh merged 2 commits intodevelopfrom
mo-224-sept-23-dropdown-spacing

Conversation

@MuhammadKhalilzadeh
Copy link
Copy Markdown
Collaborator

Sidebar details

Fixing a few details in the sidebar

Please ensure all items are checked off before requesting a review:

  • I deployed the code locally.
  • I have performed a self-review of my code.
  • I have included the issue # in the PR.
  • I have labelled the PR correctly.
  • The issue I am working on is assigned to me.
  • I have avoided using hardcoded values to ensure scalability and maintain consistency across the application.
  • I have ensured that font sizes, color choices, and other UI elements are referenced from the theme.
  • My pull request is focused and addresses a single, specific feature.
  • If there are UI changes, I have attached a screenshot or video to this PR.
image

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Sep 23, 2025

Walkthrough

Reduced Sidebar vertical spacing (Stack gap changed from theme.spacing(6) to theme.spacing(2)) and updated the Feedback menu item's destination URL (from the GitHub discussions URL to https://verifywise.ai/contact). No public API or control-flow logic changes beyond the link target.

Changes

Cohort / File(s) Summary
Sidebar spacing & feedback link
Clients/src/presentation/components/Sidebar/index.tsx
Reduced Stack gap from theme.spacing(6) to theme.spacing(2) and changed Feedback menu item's click target from https://github.com/bluewave-labs/verifywise/discussions to https://verifywise.ai/contact. Visual and link update only; no API or behavioral changes otherwise.

Sequence Diagram(s)

sequenceDiagram
    participant User as User
    participant Sidebar as Sidebar Component
    participant Browser as Browser / External Link

    User->>Sidebar: Click "Feedback"
    Sidebar->>Browser: openURL("https://verifywise.ai/contact")
    Note right of Browser#lightgreen: External navigation (unchanged flow,<br/>only URL updated)
Loading

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

I hop through stacks with careful sight,
Shrinking gaps to fit just right—
From six to two, a tidy view,
A feedback hop to someplace new.
Thump-thump! my paws approve the scene. 🐇✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description includes a brief summary, a completed checklist, and a screenshot, but it does not follow the repository template requirement to include the issue reference line ("Fixes #...") and it does not enumerate the exact changes (spacing reduction and Feedback URL update), so the template is not fully satisfied. Add the required "Fixes #" line and expand the "Describe your changes" section to list the concrete modifications (e.g., reduced Sidebar stack spacing from theme.spacing(6) to theme.spacing(2) and changed Feedback menu URL to https://verifywise.ai/contact), then keep the checklist and screenshot as provided.
Title Check ❓ Inconclusive The title "Sidebar details" identifies the affected area but is too generic and does not summarize the primary changes (reduced sidebar spacing and updated Feedback link), so it does not clearly communicate the main change to a reviewer or future reader. Please update the title to be specific and concise, for example "Sidebar: reduce dropdown spacing and update Feedback link", so the primary change is clear from the PR list and history.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch mo-224-sept-23-dropdown-spacing

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d3726b1 and f33819f.

📒 Files selected for processing (1)
  • Clients/src/presentation/components/Sidebar/index.tsx (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • Clients/src/presentation/components/Sidebar/index.tsx

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.

@MuhammadKhalilzadeh MuhammadKhalilzadeh self-assigned this Sep 23, 2025
@MuhammadKhalilzadeh MuhammadKhalilzadeh added enhancement New feature or request frontend Frontend related tasks/issues labels Sep 23, 2025
@MuhammadKhalilzadeh MuhammadKhalilzadeh added this to the 1.4 milestone Sep 23, 2025
Copy link
Copy Markdown
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: 0

🧹 Nitpick comments (3)
Clients/src/presentation/components/Sidebar/index.tsx (3)

279-286: Fix broken nested selectors in sx (typos/missing dots)

These selectors currently don’t match anything due to typos and missing dots; they’re effectively no-ops.

Apply this diff:

-        "& ,selected-path, & >MuiListItemButton-root:hover": {
+        "& .selected-path, & > .MuiListItemButton-root:hover": {
           backgroundColor: theme.palette.background.main,
         },
-        "& .Muilist-root svg path": {
+        "& .MuiList-root svg path": {
           stroke: theme.palette.text.tertiary,
         },

190-193: Type cleanup: avoid any for anchorEl/popup and handler event

Improves type safety and IntelliSense with no behavior change.

Apply this diff:

-  const [anchorEl, setAnchorEl] = useState(null);
-  const [popup, setPopup] = useState();
+  const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null);
+  const [popup, setPopup] = useState<string | null>(null);
@@
-  const openPopup = (event: any, id: any) => {
+  const openPopup = (
+    event: React.MouseEvent<HTMLElement>,
+    id: string
+  ) => {
     setAnchorEl(event.currentTarget);
     setPopup(id);
   };
@@
   const closePopup = () => {
     setAnchorEl(null);
+    setPopup(null);
   };

Also applies to: 223-231


328-358: Add ARIA props to the toggle button for accessibility

Small a11y win for screen readers.

Apply this diff:

       <IconButton
         disableRipple={
           theme.components?.MuiListItemButton?.defaultProps?.disableRipple
         }
+        aria-label={collapsed ? "Expand sidebar" : "Collapse sidebar"}
+        aria-expanded={!collapsed}
         sx={{
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ccb653a and d3726b1.

📒 Files selected for processing (1)
  • Clients/src/presentation/components/Sidebar/index.tsx (1 hunks)
🔇 Additional comments (1)
Clients/src/presentation/components/Sidebar/index.tsx (1)

268-274: LGTM: tighter vertical spacing on the container

The reduced gap aligns with the PR intent and looks good to me.

@MuhammadKhalilzadeh MuhammadKhalilzadeh merged commit 9b7827e into develop Sep 23, 2025
2 checks passed
@MuhammadKhalilzadeh MuhammadKhalilzadeh deleted the mo-224-sept-23-dropdown-spacing branch September 26, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend Frontend related tasks/issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant