-
Notifications
You must be signed in to change notification settings - Fork 7
feat: implement admin tags dashboard #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add Category Management to AdminTreeNavigation - Create comprehensive category dashboard at /admin/category - Display node categories with counts in organized layout - Add breadcrumb navigation and proper admin layout - Integrate with existing admin dashboard structure 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🎨 Chromatic Visual Testing Results
Check the visual changes and approve or request changes as needed. |
… pagination - Renamed admin category page from category.tsx to categories.tsx for consistency - Implemented server-side pagination using useListAllNodes with page/limit parameters - Updated navigation links in AdminTreeNavigation and admin index page - Added CustomPagination component with URL state management - Removed client-side pagination in favor of API-level pagination 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🎨 Chromatic Visual Testing Results
Check the visual changes and approve or request changes as needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements an admin category dashboard that allows administrators to view and manage node categories. The feature adds a new admin page at /admin/categories
that displays all node categories with their respective node counts in a sortable format.
Key Changes
- Added Category Management navigation link and quick action button in the admin interface
- Created a comprehensive category dashboard displaying node categories with counts
- Added internationalization support for the new feature across multiple languages
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
pages/admin/index.tsx | Added Category Management quick action button to admin dashboard |
pages/admin/categories.tsx | Created new category management page with node category overview |
components/admin/AdminTreeNavigation.tsx | Added Category Management link to admin navigation tree |
locales/*/common.json | Added translations for category management features across all supported languages |
.sort((a, b) => b.count - a.count) | ||
}, [nodesData?.nodes]) | ||
|
||
const totalPages = Math.ceil((nodesData?.total || 0) / limit) |
Copilot
AI
Aug 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pagination logic is incorrect. The totalPages calculation is based on total nodes, but the displayed data is categories. This will show incorrect pagination when the number of categories differs from the number of nodes.
Copilot uses AI. Check for mistakes.
Replace manual URL query handling with reusable usePage hook for cleaner pagination management. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🎨 Chromatic Visual Testing Results
Check the visual changes and approve or request changes as needed. |
- Updated orval-generated API client with latest tag system - Renamed categories.tsx to tags.tsx to reflect new tag-based approach - Modified admin dashboard to display and manage tags instead of categories - Updated navigation links and labels throughout admin panel - Maintained backwards compatibility by falling back to category field when tags are unavailable The tag system provides more flexible classification with multiple tags per node compared to single category assignment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Add useCallback to wrap verifyRepoPermissions function - Include all missing dependencies in useEffect dependency array - Applied Prettier formatting for consistency 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Resolved merge conflicts in: - Locale files (en, es, fr, ja, ko, ru, zh) - claim-my-node.tsx (removed duplicate imports) - generated.ts (regenerated using orval) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Previously, the /admin/tags page was showing a summary of tag counts including "Uncategorized" entries. This was confusing and not helpful. Now the page displays a proper table showing all nodes with their associated tags. Nodes without tags display "No tags" text instead of an "Uncategorized" badge. Changes: - Replaced tag summary cards with a proper table layout - Added Table component from flowbite-react - Show node names with their tags in separate columns - Display "No tags" text for nodes without tags - Removed aggregation logic that was creating "Uncategorized" entries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Added comprehensive tag management features to /admin/tags page: - Node ID search filter (consistent with other admin pages) - Edit modal with separate fields for tags and admin_tags - Pencil button for each node to open edit modal - Display of both tags and admin_tags in separate columns - Toast notifications for success/error states - Keyboard shortcut (Ctrl+Enter) for quick saving 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Summary
Implements the admin tags dashboard as requested in issue #57. The system has been migrated from categories to tags, allowing nodes to have multiple tags instead of a single category.
Changes Made
/admin/tags
Features
Test plan
/admin/tags
🤖 Generated with Claude Code