mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
feat(ui): simple/advanced mode for Caveman & RTK + newbie UX improvements Adapts oyi77's UX rework on top of our refactor/pages overhaul. Layout priority: our 9-section sidebar restructure stays; PR's additions (subtitles, intros, simple/advanced toggles, empty states, error labels) are integrated into our structure. Conflict resolution: - index.tsx: union — exports InfoTooltip, PresetSlider (new shared components from PR) alongside our NoAuthProviderCard. - en.json: union — kept our "OmniSkills"/"AgentSkills" labels and "API Key Manager" naming; added PR's subtitleKey strings, settings intro keys, and empty state keys. - sidebarVisibility.ts: kept our 9-section structure; added subtitleKey?: string to SidebarItemDefinition and mapped subtitle keys onto the 7 matching items (endpoints, api-manager, combos, batch, context-caveman, context-rtk, webhooks). - Sidebar.tsx: kept our collapsible-section rendering; integrated PR's subtitle support into resolveItem() and renderNavLink() label area. - CavemanContextPageClient.tsx: took PR's version — adds SegmentedControl for simple/advanced mode (gates full settings tab in advanced). - RtkContextPageClient.tsx: took PR's version — adds SegmentedControl + Collapsible filter catalog. - settings/page.tsx: kept our redirect (we converted tabs→pages). Ported PR's intro text paragraphs to /settings/ai, /settings/routing, and /settings/resilience subpages using the auto-merged i18n keys. - HomePageClient.tsx: kept ours — we removed Providers Overview card in the refactor, and PR's empty state for that card is now redundant. PR's equivalent empty state at /dashboard/providers (in providers/page.tsx) auto-merged cleanly and serves the same purpose. Closes #2316