-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Added UI support for branch selection and mermaid prompt fixes #116
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?
Added UI support for branch selection and mermaid prompt fixes #116
Conversation
feat: Enhance GitHub integration with branch selection and caching - Added branch selection functionality in the frontend, allowing users to choose branches from GitHub repositories. - Implemented backend support for fetching repository branches and updated related services. - Enhanced caching mechanisms to store diagrams and explanations with branch context. - Updated UI components to accommodate branch selection and improve user experience. - Added error handling for branch fetching and selection processes.
@viralcodex is attempting to deploy a commit to the Ahmed Khaleel's projects Team on Vercel. A member of the Team first needs to authorize it. |
here's the recording for the feature (please ignore the API issue as I've removed the changes I made for gemini back to openAI) Screen.Recording.2025-06-30.at.9.12.39.PM.mp4 |
@ahmedkhaleel2004 @martin226 @jasminaaa20 Hi, please review this PR and let me know any changes are needed or not. |
Improves branch selection logic in MainCard by handling initial load, resetting state more robustly, and removing unnecessary useEffects. Updates Dropdown to avoid resetting selectedBranch from within the component, delegating control to the parent. Removes debug console logs from both MainCard and useDiagram for cleaner output.
Added a check in MainCard to prevent form submission while branches are loading, displaying an error if attempted. Updated HomePage text for clarity, adjusted padding, and added instructions for visualizing specific branches.
Added 'pb-10' class to the div wrapping MainCard to provide additional bottom padding, improving layout spacing.
Corrects the logic for displaying the 'Loading branches...' message to show when branches are loading and the list is empty, instead of when branches are present.
Great work |
Fix: #101
feat: Enhance GitHub integration with branch selection and caching