-
Notifications
You must be signed in to change notification settings - Fork 9
feat(admin): add ComfyNode management interface with policy controls #155
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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 adds a comprehensive ComfyNode management interface to the admin dashboard, providing functionality to search, view, and edit ComfyNode properties including policy controls and feature flags. The implementation includes complete internationalization support across all supported languages and API updates to support the new ComfyNode management features.
- Adds dedicated ComfyNode management page with search and editing capabilities
- Implements comprehensive policy management system (Active/Banned/Local Only)
- Adds support for deprecated and experimental flags with visual badges
- Updates translation files for all supported languages (EN, ES, FR, JA, KO, ZH)
Reviewed Changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/api/generated.ts | Generated API client with new ComfyNode interfaces, policies, and update endpoints |
| pages/admin/comfy-nodes.tsx | New admin page implementing ComfyNode management interface with search and edit modal |
| pages/admin/index.tsx | Adds navigation link to ComfyNode management from admin dashboard |
| public/locales/*/common.json | Translation updates for ComfyNode management UI across all languages |
| package.json | Updates orval dependency version |
| orval.config.ts | Improves configuration for API generation |
🎨 Chromatic Visual Testing Results
Check the visual changes and approve or request changes as needed. |
🎨 Chromatic Visual Testing Results
Check the visual changes and approve or request changes as needed. |
775b584 to
caaa952
Compare
|
Working on fixing the Spanish translation issue for 'Local Only': Todo List:
✅ COMPLETED!Summary of Changes:
Files Changed:
Commit: 1813845 - Spanish translation fixes pushed to branch ✅ |
|
Starting rebase to origin/main as requested. Rebase Progress
Currently resolving additional merge conflicts in configuration files... |
…local and .env for better environment management feat(generated.ts): add ClaimMyNodeRequest interface to handle GitHub token for node ownership verification feat(generated.ts): introduce ComfyNodePolicy and ComfyNodeUpdateRequest interfaces for enhanced node management feat(generated.ts): add MoonvalleyTextToVideoInferenceParams interface for detailed video generation parameters feat(generated.ts): implement updateComfyNode and useUpdateComfyNode functions for admin node updates feat(generated.ts): create claimMyNode and useClaimMyNode functions for claiming unclaimed nodes by publishers
- Add comprehensive ComfyNode management page at /admin/comfy-nodes - Implement search functionality by node ID, version, and comfy node name - Add modal interface for editing ComfyNode properties (category, description, function, input/return types) - Support policy management (Active/Banned/Local Only) with visual badges - Include deprecated and experimental flags with appropriate badges - Add admin dashboard link to ComfyNode management - Update translations for all supported languages (EN, ES, FR, JA, KO, ZH) - Integrate with existing API endpoints for listAllComfyNodes and updateComfyNode 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
…n to simplify the search logic
Co-authored-by: Copilot <[email protected]>
- Add ComfyNodeEditModal.stories.tsx for modal component testing - Add ComfyNodePolicyBadge.stories.tsx for policy badge variants - Add ComfyNodeTable.stories.tsx for admin table component - Add ComfyNodesManage.stories.tsx for full page story - Export ComfyNodeEditModal component for reusability 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Co-authored-by: Copilot <[email protected]>
- Fix 'Local Only' translation from '仅限本地' to 'Solo Local' - Replace 4 other Chinese text strings with proper Spanish translations: * 'Failed to update node' error message * 'Node ID is required for claiming' message * 'This should only take a moment' message * 'Unable to verify repository permissions' message 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
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
Copilot reviewed 15 out of 18 changed files in this pull request and generated 4 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
- Keep all localization additions from feature branch - Resolve conflicts in all locale files (en, es, fr, ja, ko, ru, zh) - Update bun.lock with latest dependencies 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Resolve localization conflicts across all locale files - Keep all localization feature additions - Accept local version of bun.lock to avoid dependency conflicts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Co-authored-by: Copilot <[email protected]>
- Add full width container for better responsiveness - Apply dark theme classes to table component - Style table headers with dark background and light text - Enhance visual consistency in admin panel 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
- Resolved locale file conflicts by keeping our translations - Updated generated.ts from main (will regenerate with API changes) - Updated bun.lock from main
- Changed require('dotenv') to import dotenv statement
- Fixes orval generation error in ES module context
- Regenerated API client with ComfyNode management endpoints
- Fix "Bulk Update Supported Versions" translation from Chinese to Spanish Addresses Copilot review comment about Chinese characters in Spanish locale file. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Review Comments Addressed✅ Fixed IssuesCommit: 79d7861
📝 Review Comments AnalysisThe remaining Copilot review comments don't require fixes:
🔍 Build Status
The Vercel failure appears to be unrelated to the code changes, as the build succeeds locally and all code-related checks pass. |
- Checked out biome.json from origin/main - Applied formatting fixes to 166 files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Checked out biome.json from origin/main - Ran bun fmt for code formatting - Pulled latest changes from origin/main - Resolved merge conflicts in: - orval.config.ts: Use main branch version for target URL - pages/admin/index.tsx: Use main branch layout with AdminTreeNavigation - pages/admin/node-version-compatibility.tsx: Use main branch API signature - All locale files: Use main branch versions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
WIP
-- below outdated --
Summary
This PR implements a comprehensive ComfyNode management interface for administrators with policy controls and enhanced node claiming functionality.
Key Changes
Admin Interface:
pages/admin/comfy-nodes.tsx- Complete admin interface for ComfyNode management (622 lines)Node Claiming System:
pages/nodes/[nodeId]/claim.tsx- Individual node claiming interfacepages/publishers/[publisherId]/claim-my-node.tsx- Publisher-specific bulk claiming (854 lines)AdminNodeClaimModal.tsx)GitHub Integration:
app/api/auth/github/callback/route.ts- GitHub OAuth callback handlerapp/api/auth/github/route.ts- GitHub OAuth initiationAPI Enhancements:
src/api/generated.tswith new endpoints and interfaces:ClaimMyNodeRequestinterface for GitHub token verificationComfyNodePolicyandComfyNodeUpdateRequestinterfacesupdateComfyNodeandclaimMyNodefunctionslistAllComfyNodesendpoint for admin accessUI Components:
GithubUserSpan,NodeSpan,PublisherSpanNodeDetails.tsxwith claiming functionalityCreatePublisherModal.tsxfor streamlined publisher creationStorybook Integration:
ComfyNodeEditModal.stories.tsx- Modal component with multiple node typesComfyNodePolicyBadge.stories.tsx- Policy badge variants (Active, Banned, Local Only)ComfyNodeTable.stories.tsx- Admin table with various data statesComfyNodesManage.stories.tsx- Full page admin interface storyComfyNodeEditModalDocumentation:
Internationalization:
Technical Details
Environment Configuration
.envconfiguration for GitHub OAuth.gitignorefor better securityComponent Testing
The Storybook stories provide comprehensive testing scenarios:
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]