feat: Add First Time User Guide and tipp backend data structure (#12978)

* add backend stuff

* update str method

* add to admin

* [FR] Add FTUE
Fixes #2907

* bump deps

* bump api

* add missing ruleset entry

* fix init

* add jumpoff to nav

* try disableing specific test

* fix lookup

* fix mounting

* disable more

* make tour conditional

* only show ftue once

* remove temp disable

* add actual content

* enable using the menu as well

* reorder steps

* finish propagation

* only allow delete

* lower testing runtime for now

* fix nitpicks

* revert frontend debug changes

* fix migration

* patch out ftu behaviour on the backend

* rename to first time use guide

* change tipp (DE) to tip (EN)

* deduplicate notification
This commit is contained in:
Matthias Mair authored and GitHub committed 2026-10-15 19:46:06 +11:00
1 parent 9b8fdeb06d
commit 2f139f94b4
25 files changed
+764 -250

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ export enum ApiEndpoints {
// Individual user endpoints
user_me_profile = 'user/me/profile/',
user_me_roles = 'user/me/roles/',
user_me_tips = 'user/me/tips/',
user_me_token = 'user/me/token/',
user_me = 'user/me/',
+11
View File
@@ -16,6 +16,14 @@ export interface UserProfile {
primary_group: number | null;
}
export interface UserTips {
pk: number;
tip_id: string;
shown: boolean;
finished: boolean;
updated: string;
}
// Type interface fully defining the current user
export interface UserProps {
pk: number;
@@ -29,11 +37,14 @@ export interface UserProps {
permissions?: Record<string, string[]>;
groups: any[] | null;
profile: UserProfile;
tips: UserTips[] | null;
}
export interface UserStateProps {
user: UserProps | undefined;
is_authed: boolean;
done_tips: string[] | null;
setTips: (tips: UserTips[] | null) => void;
userId: () => number | undefined;
username: () => string;
setAuthenticated: (authed?: boolean) => void;