Add unified dashboard with dual icons, sub-filters, and organization repository management#337
Open
manana2520 wants to merge 1 commit intoAIDotNet:mainfrom
Open
Add unified dashboard with dual icons, sub-filters, and organization repository management#337manana2520 wants to merge 1 commit intoAIDotNet:mainfrom
manana2520 wants to merge 1 commit intoAIDotNet:mainfrom
Conversation
…ub-filters (AIDotNet#17) Replaces the separate public/private repository pages with a unified dashboard featuring: - **4 view tabs**: All, Public, Organization, My Repos - **Dual icons**: Globe + Building2 for repos that are both public and in a department - **Sub-filter chips**: contextual filters within each view (Public only, Private only, Shared/Not shared) - **Admin restrict/unrestrict**: toggle visibility of repos for non-admin users - **Share toggle**: users can share personal repos with their organization - **Race condition protection**: loadIdRef counter prevents stale async responses - **Stale state clearing**: view switches immediately clear previous data - Organization endpoints: share, unshare, restrict, unrestrict - OrganizationService with department-based repository access - DepartmentRepositoryInfo DTO with IsPublic, IsRestricted fields - Unified PublicRepositoryList with 4 views + sub-filters - PublicRepositoryCard with dual icons and context-aware toggles - Organization API client with fetchWithAuth for admin endpoints - i18n keys for all new UI text (en, zh, ko, ja)
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.
Summary
Replaces the separate public/private repository pages with a unified dashboard featuring organization-level repository management.
New features
Backend changes
OrganizationEndpoints: share, unshare, restrict, unrestrict endpointsOrganizationServicewith department-based repository access controlDepartmentRepositoryInfoDTO withIsPublicandIsRestrictedfieldsFrontend changes
PublicRepositoryListcomponent with 4 views + sub-filters + client/server-side paginationPublicRepositoryCardwith dual icons and context-aware share/restrict togglesorganization-api.ts) with authenticated requestsArchitecture decisions (documented in code)
departmentName, so public view enriches results from dept dataOwnerUserIdto importing admin; Mine view subtracts dept repos by default