Add GitHub repository link and branch selection to DAK dashboard#123
Merged
Add GitHub repository link and branch selection to DAK dashboard#123
Conversation
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] show link to github repo
Add GitHub repository link and branch selection to DAK dashboard
Jul 27, 2025
Owner
Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
Contributor
Author
The header layout has been reorganized to address the crowding issue. The repository status (GitHub link, branch selector, and access level) now floats to the left next to the WHO branding, while the user information and documentation link remain on the right side. Changes made (commit d4ad0b9):
|
This was referenced Aug 7, 2025
Copilot AI
added a commit
that referenced
this pull request
Aug 27, 2025
- Convert issue references (#123, Fixes #456) to clickable GitHub issue links - Convert user mentions (@username) to GitHub profile links - Convert cross-repository references (org/repo#123) to issue links - Convert commit SHAs to GitHub commit links - Preserve existing markdown links without double-conversion - Support all common GitHub notation patterns in PR descriptions and comments Co-authored-by: litlfred <662242+litlfred@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This PR implements the requested GitHub repository link and branch selection functionality for the DAK dashboard, enabling users to easily navigate back to GitHub and select different branches for DAK component scanning.
🎯 Key Features
Prominent GitHub Repository Link
The repository name in the DAK dashboard header is now a clickable link that opens the GitHub repository in a new tab. The link includes visual indicators (folder icon 📁 and external link arrow ↗) for clear user guidance.
Branch Selection with Session Persistence
Added a comprehensive branch selection component that:
Integration with DAK Component Scanning
The business process selection (BPMN workflows) now uses the selected branch when loading files from the repository, ensuring users can work with components from their chosen branch.
🏗️ Technical Implementation
New Services and Components
BranchContextService: Manages branch selection persistence in session storage with proper error handlingBranchSelector: Reusable React component for branch selection with create functionalityGitHubService: Added methods forgetBranches(),createBranch(), andgetBranch()Session Context Management
Branch selections are stored per repository using the format
owner/repo-nameand persist throughout the user's session. When switching repositories, each maintains its own branch context.Error Handling
The implementation includes graceful error handling for:
🧪 Testing
Added comprehensive test coverage for the new
BranchContextServicewith 18 test cases covering all functionality including edge cases and error scenarios.📸 Visual Changes
The screenshot shows:
🔄 Backward Compatibility
All changes are fully backward compatible. Existing functionality remains unchanged, and the new features gracefully handle cases where branch information is not available.
Fixes #122.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.