Skip to content

Conversation

snomiao
Copy link
Member

@snomiao snomiao commented Aug 15, 2025

Summary

This PR enhances the admin unclaimed nodes modal by:

Repository URL moved to top: Improved UX by placing the required repository URL field at the beginning of the form
One-click info fetching: Added a "Fetch Info" button that automatically populates form fields from GitHub repository's pyproject.toml
GitHub API integration: Fetches project metadata including name, description, author, and license information
Enhanced user feedback: Comprehensive error handling with toast notifications for success/failure states
Improved documentation: Added Storybook story with comprehensive documentation and examples

Features

  • Repository URL input with placeholder and validation
  • "Fetch Info" button with loading states and proper disabled state
  • Automatic form population from pyproject.toml parsing
  • Error handling for invalid URLs, missing files, and API failures
  • Toast notifications for user feedback
  • Helper text explaining the functionality
  • Storybook story for component documentation

Test Plan

  • Build passes without TypeScript errors
  • ESLint passes with no new warnings (existing warning unrelated)
  • Prettier formatting applied
  • Storybook builds successfully and story renders correctly
  • Manual testing: Enter GitHub repository URL and click "Fetch Info"
  • Manual testing: Verify form fields populate correctly from pyproject.toml
  • Manual testing: Error handling for invalid URLs and missing files
  • Manual testing: Loading states and button disabled behavior

🤖 Generated with Claude Code

- Move repository URL field to top of the modal for better UX
- Add "Fetch Info" button to automatically populate form fields from GitHub pyproject.toml
- Implement GitHub API integration to extract name, description, author, and license
- Add comprehensive error handling and user feedback with toast notifications
- Create Storybook story for the enhanced modal component
- Include helpful placeholder text and loading states for better user experience

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Copy link

vercel bot commented Aug 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
registry-web Ready Preview Comment Aug 15, 2025 7:23am

Copy link

🎨 Chromatic Visual Testing Results

Resource URL
🔍 Build Results Chromatic Build
📚 Storybook View Storybook

Check the visual changes and approve or request changes as needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant