951a522
/**
* The repo settings area's second-level sections, in strip order.
*
* The ids double as the `?section=` value of the repo route (written by
* `pages/workspace`'s `useRepoViewLocation`), which is why they live in the
* model instead of the component: the page reads and validates them, the
* settings UI renders them, and neither may drift from the other.
*/
import { t } from '@/shared/i18n'
export type RepoSettingsSection =
| 'general'
| 'features'
| 'topics'
| 'remotes'
| 'archives'
| 'insights'
| 'locks'
| 'protection'
export const REPO_SETTINGS_SECTIONS: ReadonlyArray<{ id: RepoSettingsSection; label: string }> = [
{ id: 'general', get label() { return t('repo.settings.nav.general') } },
{ id: 'features', get label() { return t('repo.settings.nav.features') } },
{ id: 'topics', get label() { return t('repo.settings.nav.topics') } },
{ id: 'remotes', get label() { return t('repo.settings.nav.remotes') } },
{ id: 'archives', get label() { return t('repo.settings.nav.archives') } },
{ id: 'insights', get label() { return t('repo.settings.nav.insights') } },
{ id: 'locks', get label() { return t('repo.settings.nav.locks') } },
{ id: 'protection', get label() { return t('repo.settings.nav.protection') } },
]