Skip to content

Bug Solved#73

Merged
kris70lesgo merged 4 commits intokris70lesgo:mainfrom
kshitigambhir:main
Oct 20, 2025
Merged

Bug Solved#73
kris70lesgo merged 4 commits intokris70lesgo:mainfrom
kshitigambhir:main

Conversation

@kshitigambhir
Copy link
Contributor

@kshitigambhir kshitigambhir commented Oct 19, 2025

User description

image

PR Type

Bug fix, Enhancement


Description

  • Fixed incorrect import path from motion/react to framer-motion

  • Simplified visibility toggle logic in scroll event handler

  • Removed absolute positioning from NavItems to prevent layout overlap

  • Improved NavBody layout with flex wrapper for proper children alignment

  • Added flex-shrink-0 to button styles and removed duplicate class

  • Cleaned up unnecessary comments and formatting


Diagram Walkthrough

flowchart LR
  A["motion/react import"] -->|corrected to| B["framer-motion"]
  C["Absolute positioned NavItems"] -->|removed| D["Flex layout"]
  E["NavBody children"] -->|wrapped in| F["Flex container"]
  G["Button styles"] -->|added| H["flex-shrink-0"]
Loading

File Walkthrough

Relevant files
Bug fix
resizable-navbar.tsx
Fix imports and refactor navbar layout structure                 

src/components/ui/resizable-navbar.tsx

  • Fixed import statement from motion/react to framer-motion
  • Simplified useMotionValueEvent callback using ternary operator
  • Removed absolute positioning and inset-0 from NavItems className
  • Wrapped NavBody children in flex container for proper alignment
  • Added flex-shrink-0 utility class to button base styles
  • Removed duplicate button class and unnecessary ESLint comment
  • Improved code formatting and removed extra whitespace
+13/-17 

@vercel
Copy link

vercel bot commented Oct 19, 2025

@kshitigambhir is attempting to deploy a commit to the agastya's projects Team on Vercel.

A member of the Team first needs to authorize it.

@qodo-free-for-open-source-projects
Copy link

qodo-free-for-open-source-projects bot commented Oct 19, 2025

PR Compliance Guide 🔍

Below is a summary of compliance checks for this PR:

Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
🎫 No ticket provided
- [ ] Create ticket/issue <!-- /create_ticket --create_ticket=true -->

</details></td></tr>
Codebase Duplication Compliance
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
No custom compliance provided

Follow the guide to enable custom compliance check.

  • Update
Compliance status legend 🟢 - Fully Compliant
🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label

@kshitigambhir
Copy link
Contributor Author

@kris70lesgo done

@qodo-free-for-open-source-projects
Copy link

qodo-free-for-open-source-projects bot commented Oct 19, 2025

PR Code Suggestions ✨

Latest suggestions up to 8e4019c

CategorySuggestion                                                                                                                                    Impact
Possible issue
Standardize motion library import

Standardize the framer-motion import path across the codebase to framer-motion
to prevent potential runtime errors caused by using mixed import sources.

src/components/ui/resizable-navbar.tsx [9]

-} from "framer-motion"; // ✅ corrected import path
+} from "framer-motion";
  • Apply / Chat
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly identifies a potential project-wide inconsistency by changing the import from motion/react to framer-motion, and rightly advises ensuring consistency to prevent potential runtime errors.

Low
Prevent overflow on small screens

Replace the fixed minWidth: "800px" with a responsive value like minWidth:
"min(800px, 100%)" to prevent horizontal overflow on narrower viewports.

src/components/ui/resizable-navbar.tsx [94-96]

 style={{
-  minWidth: "800px",
+  minWidth: "min(800px, 100%)",
 }}

[To ensure code accuracy, apply this suggestion manually]

Suggestion importance[1-10]: 5

__

Why: The suggestion correctly identifies that a fixed minWidth can cause overflow issues, but it may overlook that this component is designed for large screens (lg:flex), where this behavior might be intended. The proposed fix is a valid responsive improvement.

Low
  • Update

Previous suggestions

Suggestions up to commit 8f29d1f
CategorySuggestion                                                                                                                                    Impact
Possible issue
Pass item data to click handler

Modify the onClick handler to pass the item and idx to the onItemClick function,
providing more context to the event handler.

src/components/ui/resizable-navbar.tsx [124]

-onClick={onItemClick}
+onClick={() => onItemClick?.(item, idx)}
Suggestion importance[1-10]: 7

__

Why: This is a valid suggestion that improves the component's API by passing useful context (item, idx) to the onItemClick handler, making it more flexible for the parent component.

Medium
General
Use a stable unique key for list items

Replace the array index idx with the more stable and unique item.link for the
key prop in the list of tags to follow React best practices.

src/components/ui/resizable-navbar.tsx [126]

-key={`link-${idx}`}
+key={item.link}
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly points out a React best practice to use a stable, unique identifier for keys instead of array indices. Using item.link is a good improvement for list rendering performance and stability.

Low

@kris70lesgo
Copy link
Owner

@kshitigambhir rebase the pr , ur branch is 15 commits behind and nice work

@kshitigambhir
Copy link
Contributor Author

@kris70lesgo done

@kris70lesgo
Copy link
Owner

image still the branch is 15 commits behind

@kshitigambhir
Copy link
Contributor Author

@kris70lesgo now ?

@kris70lesgo
Copy link
Owner

@kshitigambhir now its 3 commits behind

@kshitigambhir
Copy link
Contributor Author

@kris70lesgo
image

@kshitigambhir
Copy link
Contributor Author

@kris70lesgo
image

@kris70lesgo kris70lesgo merged commit 40186d3 into kris70lesgo:main Oct 20, 2025
1 check failed
@kris70lesgo
Copy link
Owner

@kshitigambhir great work

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants