Add config setting for default repository view#74
Open
Conversation
Copilot
AI
changed the title
[WIP] Add config setting for default repository view
Add config setting for default repository view
Sep 30, 2025
Contributor
|
@copilot This sounds like a great plan. Execute it! |
- Created RepositoryDefaultView enum with Detail, Tree, Commits, Tags options - Added DefaultRepositoryView to ServerSettings and UserSettings infrastructure - Updated Server and User Settings views with dropdown selectors - Added RepositoryViewHelper to map view enum to action names - Updated RepositoryListViewComponent and Index.cshtml to use configured default view - Created database migrations for both SQLite and SQL Server - Added resource strings for new settings Co-authored-by: Matt-17 <11333169+Matt-17@users.noreply.github.com>
Contributor
Author
Done! I've implemented the default repository view configuration feature with the following changes: Commit: 57c3f47 What was added:
How it works:
The new dropdown appears in both Server Settings and User Settings views, allowing selection between Detail, Browse (Tree), Commits, and Tags views. |
Contributor
|
@copilot Fine. Add some tests! |
- Added RepositoryViewHelperTests: 5 tests validating action name mapping - Added ServerSettingsServiceTests: 6 tests for server-level settings persistence - Added UserSettingsServiceTests: 9 tests for user-level settings and overrides - Added RepositoryDefaultViewTests: 9 tests for enum values and Display attributes - All 29 new tests pass, total test suite: 266 tests passing Co-authored-by: Matt-17 <11333169+Matt-17@users.noreply.github.com>
Contributor
Author
Added comprehensive test suite with 29 tests covering all aspects of the default repository view feature. Commit: fe3468f Test Coverage:
All 29 new tests pass. Total test suite: 266 tests passing. |
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.
Adds configurable default repository view setting at both server and user levels with comprehensive test coverage.
Implementation Summary
Key Components:
RepositoryDefaultViewenum with Detail, Tree, Commits, Tags optionsResolution Order:
User Setting → Server Setting → Detail (fallback)
The feature allows administrators to set a site-wide default view, while individual users can customize their own preference or inherit the server default.
How It Works
Test Coverage
Added comprehensive test suite with 29 new tests (all passing):
Total test suite: 266 tests passing
Fixes #46
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.