feat: external Learning Hub toggle + applicant help button
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m52s

- Add admin settings: learning_hub_external, learning_hub_external_url, support_email
- Jury/Mentor nav respects external Learning Hub URL (opens in new tab)
- RoleNav supports external nav items with ExternalLink icon
- Applicant header shows Help button with configurable support email
- Settings update mutation now upserts (creates on first use)
- Shared inferSettingCategory for consistent category assignment

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 23:09:29 +01:00
parent 924f8071e1
commit 1d4e31ddd1
6 changed files with 160 additions and 43 deletions

View File

@@ -46,6 +46,9 @@ export function JuryNav({ user }: JuryNavProps) {
undefined,
{ refetchInterval: 60000 }
)
const { data: flags } = trpc.settings.getFeatureFlags.useQuery()
const useExternal = flags?.learningHubExternal && flags.learningHubExternalUrl
const navigation: NavItem[] = [
{
@@ -69,8 +72,9 @@ export function JuryNav({ user }: JuryNavProps) {
: []),
{
name: 'Learning Hub',
href: '/jury/learning',
href: useExternal ? flags.learningHubExternalUrl : '/jury/learning',
icon: BookOpen,
external: !!useExternal,
},
]