diff --git a/src/components/config/GitHubMirrorSettings.tsx b/src/components/config/GitHubMirrorSettings.tsx index a191dbc..eb9d701 100644 --- a/src/components/config/GitHubMirrorSettings.tsx +++ b/src/components/config/GitHubMirrorSettings.tsx @@ -76,6 +76,18 @@ export function GitHubMirrorSettings({ // When metadata is disabled, all components should be disabled const isMetadataEnabled = mirrorOptions.mirrorMetadata; + + // Calculate what content is included for starred repos + const starredRepoContent = { + code: true, // Always included + releases: !advancedOptions.skipStarredIssues && mirrorOptions.mirrorReleases, + issues: !advancedOptions.skipStarredIssues && mirrorOptions.mirrorMetadata && mirrorOptions.metadataComponents.issues, + pullRequests: !advancedOptions.skipStarredIssues && mirrorOptions.mirrorMetadata && mirrorOptions.metadataComponents.pullRequests, + wiki: !advancedOptions.skipStarredIssues && mirrorOptions.mirrorMetadata && mirrorOptions.metadataComponents.wiki, + }; + + const starredContentCount = Object.entries(starredRepoContent).filter(([key, value]) => key !== 'code' && value).length; + const totalStarredOptions = 4; // releases, issues, PRs, wiki return (
- Only code, skip issues and metadata -
-+ Choose what content to mirror from starred repositories. + Selecting "Lightweight mode" will only mirror code for better performance. +
++ Content included for starred repos: +
+ ++ To include more content, enable them in the Content & Data section below +
+