feature : Connect front to backend #1
Reference in New Issue
Block a user
Delete Branch "feat/connect-front-to-backend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
nest-frontandnest-intra(forum, bugs, events, team, auth, account)utils/api.ts) with JWT token management and domain-scoped helpers for both portalsSiteSettingsmodel +/settingsroutes so admins can toggle forum and bug reporting on/off;SettingsContextand conditional rendering in Navbar/Footer reflect these togglesChanges by layer
Backend (
nest-backend/)SiteSettingsPrisma model + migrationGET/POST /settingsroute for forum & bug feature flagsGET /bugsresponse now usesdatakey (matches pagination shape of other endpoints)Frontend public (
nest-front/)utils/api.ts— full rewrite:apiFetch,getToken/setToken/clearToken,authApi,usersApi,forumApi,bugsApi,eventsApi,teamApiAuthContext— real JWT flow (validate viaGET /auth/meon mount, no more mock roles)SettingsContext— fetches feature flags and exposesforumEnabled/bugsEnabledDevRoleSwitchersimplified to quick-login buttonsIntra portal (
nest-intra/)utils/api.ts— typed API client mirroring front's structureIntranetDashboard— recent bug stats from APIIntranetBugs— live bug list with status/severity filtersIntranetEvents— live events managementIntranetModeration— full forum moderation (categories + threads)good for me