You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* created some initial file and add some changes
* Add Badge functionality to UserNode and integrate Badges component
- Introduced BadgeNode for GraphQL representation of badges.
- Enhanced UserNode with badges and badge count fields.
- Updated UserCard to display badge count and integrated Badges component in UserDetailsPage.
- Added tests for badge display and functionality across components.
- Updated GraphQL queries to include badge data and counts.
* updated the backend file for sorting badges
* Refactor tests and mock data for badges functionality
- Improved formatting and readability in user_test.py by adjusting line breaks.
- Updated mockBadgeData.ts to enhance consistency in object formatting.
- Simplified Tooltip mock in Badges.test.tsx for better clarity.
- Minor adjustments in Badges.tsx for consistent className formatting.
* Update frontend/__tests__/unit/components/Badges.test.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update frontend/src/components/Badges.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update frontend/__tests__/unit/pages/UserDetails.test.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Add Font Awesome icons to custom dictionary
* Make Badge properties readonly
* Sort badges by weight before rendering
* Use nullish coalescing for user badges
* Add aria-label to FontAwesomeIcon for accessibility
* Update user.py
* Refactor badge count resolver for improved readability and performance; update badge component imports and cleanup
* Update backend/apps/github/api/internal/nodes/user.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update frontend/src/components/Badges.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update frontend/src/components/Badges.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Add badgeCount field to UserNode and update related queries; refactor badge count test for clarity
* frontend: fix Badges non-prefixed and invalid cssClass handling; adjust UserDetails avatar/layout classes to satisfy tests
* fix: correct badge relationship reference in UserNode and update tests
- Fixed self.badges to self.user_badges in badges() method
- Fixed self.badges to self.user_badges in badge_count() method
- Updated all test mocks to use user_badges instead of badges
- This resolves the incorrect relationship reference for badge filtering
* refactor: streamline badge display in UserDetailsPage component
* fix: update useParams to use memberKey in UserDetailsPage and adjust test mocks
* fix: adjust class names for better layout consistency in UserDetailsPage
* Revert "fix: adjust class names for better layout consistency in UserDetailsPage"
This reverts commit 5c69863.
* Refactor UserNode badge logic and improve Badge component rendering
- Updated UserNode to remove unnecessary filters for badge retrieval and count.
- Modified BadgeNode to inherit from Node and adjusted fields accordingly.
- Enhanced unit tests for UserNode to reflect changes in badge logic.
- Simplified Badges component by removing FontAwesome dependencies and using a wrapper for icon rendering.
- Improved UserDetailsPage to utilize badgeCount directly from user data.
- Adjusted UsersPage to reference badgeCount instead of calculating length.
- Updated GraphQL types to ensure BadgeNode extends Node for consistency.
* done with changes suggested by kate .
* Update frontend/src/components/Badges.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* CodeRabbit: For Font Awesome icons, the CSS classes are backend-driven (e.g., fa-crown for fa-solid). The frontend dynamically extracts the correct prefix for lookup and rendering. This is a critical design for backend compatibility,they are only fa-solid icons so badges.tsx only checks for fa-solid not anyother families.
fix the coderabbit issue with syntax.
also run make check-test
* migration
* Update migration timestamp, enhance badge component, and import icon type definition
* Refactor badge class key from 'bug_slash' to 'bugSlash' for consistency
* Fix issues with badges
* Fix make check
* Guard against null/undefined cssClass in normalizeCssClass
* Add test to verify badge rendering order per backend contract
* Fix backend test for getting users
* Update code
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: root <[email protected]>
Co-authored-by: Kate Golovanova <[email protected]>
Co-authored-by: Arkadii Yakovets <[email protected]>
0 commit comments