@motor-cms/ui-admin 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/app/assets/css/v-onboarding.css +64 -0
  2. package/app/components/UsersOnboarding.vue +65 -0
  3. package/app/components/dashboard/DashboardActivityItem.vue +3 -3
  4. package/app/components/dashboard/DashboardAnnouncements.vue +8 -3
  5. package/app/components/dashboard/DashboardOnboarding.vue +223 -0
  6. package/app/composables/useOnboardingState.ts +101 -0
  7. package/app/lang/de/motor-admin/ai_system_prompts.json +1 -0
  8. package/app/lang/de/motor-admin/categories.json +1 -0
  9. package/app/lang/de/motor-admin/category_trees.json +1 -0
  10. package/app/lang/de/motor-admin/clients.json +1 -0
  11. package/app/lang/de/motor-admin/config_variables.json +1 -0
  12. package/app/lang/de/motor-admin/domains.json +1 -0
  13. package/app/lang/de/motor-admin/email_templates.json +1 -0
  14. package/app/lang/de/motor-admin/languages.json +1 -0
  15. package/app/lang/de/motor-admin/onboarding.json +57 -0
  16. package/app/lang/de/motor-admin/permissions.json +1 -0
  17. package/app/lang/de/motor-admin/roles.json +1 -0
  18. package/app/lang/de/motor-admin/users.json +1 -0
  19. package/app/lang/en/motor-admin/ai_system_prompts.json +1 -0
  20. package/app/lang/en/motor-admin/categories.json +1 -0
  21. package/app/lang/en/motor-admin/category_trees.json +1 -0
  22. package/app/lang/en/motor-admin/clients.json +1 -0
  23. package/app/lang/en/motor-admin/config_variables.json +1 -0
  24. package/app/lang/en/motor-admin/domains.json +1 -0
  25. package/app/lang/en/motor-admin/email_templates.json +1 -0
  26. package/app/lang/en/motor-admin/languages.json +1 -0
  27. package/app/lang/en/motor-admin/onboarding.json +57 -0
  28. package/app/lang/en/motor-admin/permissions.json +1 -0
  29. package/app/lang/en/motor-admin/roles.json +1 -0
  30. package/app/lang/en/motor-admin/users.json +1 -0
  31. package/app/pages/index.vue +2 -0
  32. package/app/pages/motor-admin/ai-system-prompts/[id]/edit.vue +4 -4
  33. package/app/pages/motor-admin/category-trees/[id]/categories/[categoryId]/edit.vue +4 -3
  34. package/app/pages/motor-admin/category-trees/[id]/edit.vue +4 -4
  35. package/app/pages/motor-admin/clients/[id]/edit.vue +4 -4
  36. package/app/pages/motor-admin/config-variables/[id]/edit.vue +4 -4
  37. package/app/pages/motor-admin/domains/[id]/edit.vue +4 -4
  38. package/app/pages/motor-admin/email-templates/[id]/edit.vue +4 -4
  39. package/app/pages/motor-admin/languages/[id]/edit.vue +4 -4
  40. package/app/pages/motor-admin/permission-groups/[id]/edit.vue +4 -4
  41. package/app/pages/motor-admin/roles/[id]/edit.vue +4 -4
  42. package/app/pages/motor-admin/users/[id]/edit.vue +4 -3
  43. package/app/pages/motor-admin/users/index.vue +1 -0
  44. package/app/pages/profile.vue +46 -1
  45. package/app/pages/search.vue +5 -0
  46. package/nuxt.config.ts +8 -1
  47. package/package.json +2 -2
@@ -0,0 +1,64 @@
1
+ /* ==========================================================================
2
+ v-onboarding — Nuxt UI v4 theme integration
3
+ ========================================================================== */
4
+
5
+ /* The library (v-onboarding/nuxt) injects its own inline <style> tag after
6
+ our stylesheet, so we need either !important or higher specificity to win.
7
+ We use both: [data-v-onboarding-wrapper] adds an attribute selector that
8
+ raises specificity above the library's class-only selectors. */
9
+
10
+ :root {
11
+ --v-onboarding-overlay-z: 99998;
12
+ --v-onboarding-step-z: 99999;
13
+ }
14
+
15
+ [data-v-onboarding-wrapper] .v-onboarding-item {
16
+ background-color: var(--ui-bg-elevated) !important;
17
+ border: 1px solid var(--ui-border) !important;
18
+ border-radius: calc(var(--ui-radius) * 2) !important;
19
+ color: var(--ui-text) !important;
20
+ box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
21
+ }
22
+
23
+ [data-v-onboarding-wrapper] .v-onboarding-item__header-title {
24
+ color: var(--ui-text-highlighted) !important;
25
+ font-weight: 600;
26
+ font-size: 0.9375rem;
27
+ }
28
+
29
+ [data-v-onboarding-wrapper] .v-onboarding-item__header-close:hover {
30
+ background-color: var(--ui-bg-accented) !important;
31
+ }
32
+
33
+ [data-v-onboarding-wrapper] .v-onboarding-item__description {
34
+ color: var(--ui-text-muted) !important;
35
+ }
36
+
37
+ [data-v-onboarding-wrapper] .v-onboarding-item__actions button.v-onboarding-btn-primary {
38
+ background-color: var(--ui-primary) !important;
39
+ border-color: transparent !important;
40
+ color: var(--ui-text-inverted) !important;
41
+ border-radius: calc(var(--ui-radius) * 2) !important;
42
+ }
43
+
44
+ [data-v-onboarding-wrapper] .v-onboarding-item__actions button.v-onboarding-btn-primary:hover {
45
+ background-color: color-mix(in srgb, var(--ui-primary) 88%, black) !important;
46
+ }
47
+
48
+ [data-v-onboarding-wrapper] .v-onboarding-item__actions button.v-onboarding-btn-primary:focus {
49
+ outline-color: var(--ui-primary) !important;
50
+ }
51
+
52
+ [data-v-onboarding-wrapper] .v-onboarding-item__actions button.v-onboarding-btn-secondary {
53
+ border-color: var(--ui-border-accented) !important;
54
+ color: var(--ui-text) !important;
55
+ border-radius: calc(var(--ui-radius) * 2) !important;
56
+ }
57
+
58
+ [data-v-onboarding-wrapper] .v-onboarding-item__actions button.v-onboarding-btn-secondary:hover {
59
+ background-color: var(--ui-bg-accented) !important;
60
+ }
61
+
62
+ [data-v-onboarding-wrapper] [data-popper-arrow]::before {
63
+ background: var(--ui-bg-elevated) !important;
64
+ }
@@ -0,0 +1,65 @@
1
+ <script setup lang="ts">
2
+ const { t } = useI18n()
3
+
4
+ const { isCompleted: adminGridCompleted, markCompleted: markAdminGridDone } = useOnboardingState('admin-grid')
5
+ const { getPending, clearPending, setPending } = usePendingOnboarding()
6
+ const { completeOnboarding } = useProfileApi()
7
+ const router = useRouter()
8
+
9
+ const wrapper = ref(null)
10
+ const { start } = useVOnboarding(wrapper)
11
+
12
+ const steps = computed(() => [
13
+ {
14
+ attachTo: { element: '#users-grid' },
15
+ content: {
16
+ title: t('motor-admin.onboarding.admin_grid.step1_title'),
17
+ description: t('motor-admin.onboarding.admin_grid.step1_desc'),
18
+ },
19
+ },
20
+ ])
21
+
22
+ const options = computed(() => ({
23
+ scrollToStep: { enabled: true, options: { behavior: 'smooth' as ScrollBehavior, block: 'center' as ScrollLogicalPosition } },
24
+ popper: { strategy: 'fixed' as const },
25
+ labels: {
26
+ previousButton: t('motor-admin.onboarding.previous'),
27
+ nextButton: t('motor-admin.onboarding.next'),
28
+ finishButton: t('motor-admin.onboarding.finish'),
29
+ },
30
+ }))
31
+
32
+ function onFinish() {
33
+ markAdminGridDone()
34
+ completeOnboarding().catch(() => {})
35
+ setPending('builder-pages')
36
+ router.push('/motor-builder/builder-pages')
37
+ }
38
+
39
+ // Auto-start when the page was reached via the admin-nav onboarding chain.
40
+ // The pending flag is set in DashboardOnboarding.vue after the admin-nav tour finishes.
41
+ const stopWatch = watch(
42
+ wrapper,
43
+ async (w) => {
44
+ if (!w) return
45
+ stopWatch()
46
+
47
+ if (getPending() === 'admin-grid' && !adminGridCompleted.value) {
48
+ clearPending()
49
+ // Brief delay to let the grid data load before the tooltip appears
50
+ await new Promise(resolve => setTimeout(resolve, 600))
51
+ start()
52
+ }
53
+ },
54
+ { immediate: true },
55
+ )
56
+ </script>
57
+
58
+ <template>
59
+ <VOnboardingWrapper
60
+ ref="wrapper"
61
+ :steps="steps"
62
+ :options="options"
63
+ @finish="onFinish"
64
+ />
65
+ </template>
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import { formatTimeAgo } from '@vueuse/core'
2
+ import { formatTimeAgoIntl } from '@vueuse/core'
3
3
  import type { ActivityItem } from '../../composables/useDashboardData'
4
4
 
5
- const { t } = useI18n()
5
+ const { t, locale } = useI18n()
6
6
 
7
7
  const props = defineProps<{
8
8
  item: ActivityItem
@@ -82,7 +82,7 @@ const timestamp = computed(() => new Date(props.item.created_at))
82
82
  <strong>{{ item.subject_name ?? t('motor-admin.dashboard.activity.unknown') }}</strong> {{ verb }}
83
83
  </div>
84
84
  <div class="text-xs text-dimmed mt-0.5">
85
- {{ item.causer_name ?? t('motor-admin.dashboard.activity.system') }} &middot; {{ formatTimeAgo(timestamp) }}
85
+ {{ item.causer_name ?? t('motor-admin.dashboard.activity.system') }} &middot; {{ formatTimeAgoIntl(timestamp, { locale }) }}
86
86
  </div>
87
87
  </div>
88
88
  <UBadge
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { formatTimeAgo } from '@vueuse/core'
2
+ import { formatTimeAgoIntl } from '@vueuse/core'
3
3
  import type { AnnouncementItem } from '../../composables/useDashboardData'
4
4
 
5
5
  const props = defineProps<{
@@ -13,7 +13,7 @@ const emit = defineEmits<{
13
13
  create: []
14
14
  }>()
15
15
 
16
- const { t } = useI18n()
16
+ const { t, locale } = useI18n()
17
17
 
18
18
  const borderColors: Record<string, string> = {
19
19
  info: 'border-l-info',
@@ -23,6 +23,7 @@ const borderColors: Record<string, string> = {
23
23
  </script>
24
24
 
25
25
  <template>
26
+ <div id="onboarding-announcements-card">
26
27
  <UPageCard :ui="{ root: 'border-0 shadow-none' }">
27
28
  <template #header>
28
29
  <div class="flex items-center justify-between w-full">
@@ -40,6 +41,7 @@ const borderColors: Record<string, string> = {
40
41
  </div>
41
42
  <UButton
42
43
  v-if="canCreate"
44
+ id="onboarding-announcements-create"
43
45
  icon="i-lucide-plus"
44
46
  size="xs"
45
47
  variant="ghost"
@@ -48,6 +50,7 @@ const borderColors: Record<string, string> = {
48
50
  />
49
51
  </div>
50
52
  </template>
53
+ <div id="onboarding-announcements-body">
51
54
  <div v-if="loading" class="flex items-center justify-center py-6 text-muted">
52
55
  <UIcon name="i-lucide-loader-2" class="size-5 animate-spin" />
53
56
  </div>
@@ -80,9 +83,11 @@ const borderColors: Record<string, string> = {
80
83
  {{ item.linkable_name }}
81
84
  </NuxtLink>
82
85
  <div class="text-xs text-dimmed mt-2">
83
- {{ item.created_by_name }} &middot; {{ formatTimeAgo(new Date(item.starts_at ?? item.created_at)) }}
86
+ {{ item.created_by_name }} &middot; {{ formatTimeAgoIntl(new Date(item.starts_at ?? item.created_at), { locale }) }}
84
87
  </div>
85
88
  </div>
86
89
  </div>
90
+ </div>
87
91
  </UPageCard>
92
+ </div>
88
93
  </template>
@@ -0,0 +1,223 @@
1
+ <script setup lang="ts">
2
+ import type { User } from '@motor-cms/ui-core/app/types/auth'
3
+
4
+ const { t } = useI18n()
5
+ const { can } = usePermissions()
6
+ const { user } = useSanctumAuth<User>()
7
+ const router = useRouter()
8
+
9
+ const { isCompleted: announcementsCompleted, markCompleted: markAnnouncementsDone } = useOnboardingState('dashboard-announcements')
10
+ const { isCompleted: notificationsCompleted, markCompleted: markNotificationsDone } = useOnboardingState('notifications')
11
+ const { isCompleted: searchCompleted, markCompleted: markSearchDone } = useOnboardingState('search')
12
+ const { isCompleted: adminNavCompleted, markCompleted: markAdminNavDone } = useOnboardingState('admin-nav')
13
+ const { resetAll: resetOnboardingState } = useOnboardingResetAll()
14
+ const { setPending } = usePendingOnboarding()
15
+
16
+ // ── Wrappers ──────────────────────────────────────────────────────────────────
17
+ const announcementsWrapper = ref(null)
18
+ const notificationsWrapper = ref(null)
19
+ const searchWrapper = ref(null)
20
+ const adminNavWrapper = ref(null)
21
+
22
+ const { start: startAnnouncements } = useVOnboarding(announcementsWrapper)
23
+ const { start: startNotifications } = useVOnboarding(notificationsWrapper)
24
+ const { start: startSearch } = useVOnboarding(searchWrapper)
25
+ const { start: startAdminNav } = useVOnboarding(adminNavWrapper)
26
+
27
+ // ── Shared options ────────────────────────────────────────────────────────────
28
+ const options = computed(() => ({
29
+ scrollToStep: { enabled: true, options: { behavior: 'smooth' as ScrollBehavior, block: 'center' as ScrollLogicalPosition } },
30
+ popper: { strategy: 'fixed' as const },
31
+ labels: {
32
+ previousButton: t('motor-admin.onboarding.previous'),
33
+ nextButton: t('motor-admin.onboarding.next'),
34
+ finishButton: t('motor-admin.onboarding.finish'),
35
+ },
36
+ }))
37
+
38
+ // ── Announcements steps ───────────────────────────────────────────────────────
39
+ const canCreate = computed(() => can('dashboard-announcements.write'))
40
+
41
+ const announcementSteps = computed(() => {
42
+ const steps = [
43
+ {
44
+ attachTo: { element: '#onboarding-announcements-card' },
45
+ content: {
46
+ title: t('motor-admin.onboarding.announcements.step1_title'),
47
+ description: t('motor-admin.onboarding.announcements.step1_desc'),
48
+ },
49
+ },
50
+ {
51
+ attachTo: { element: '#onboarding-announcements-body' },
52
+ content: {
53
+ title: t('motor-admin.onboarding.announcements.step2_title'),
54
+ description: t('motor-admin.onboarding.announcements.step2_desc'),
55
+ },
56
+ },
57
+ ]
58
+
59
+ if (canCreate.value) {
60
+ steps.push({
61
+ attachTo: { element: '#onboarding-announcements-create' },
62
+ content: {
63
+ title: t('motor-admin.onboarding.announcements.step3_title'),
64
+ description: t('motor-admin.onboarding.announcements.step3_desc'),
65
+ },
66
+ })
67
+ }
68
+
69
+ return steps
70
+ })
71
+
72
+ // ── Notifications steps ───────────────────────────────────────────────────────
73
+ // Single step only: opening the slideover during an active v-onboarding tour
74
+ // creates an unresolvable z-index conflict — v-onboarding's own overlay covers
75
+ // the slideover panel, and the slideover teleports to body after the tooltip,
76
+ // making either element hide the other. All relevant info is covered in one step.
77
+ const notificationsSteps = computed(() => [
78
+ {
79
+ attachTo: { element: '#onboarding-notification-bell' },
80
+ content: {
81
+ title: t('motor-admin.onboarding.notifications.step1_title'),
82
+ description: t('motor-admin.onboarding.notifications.step1_desc'),
83
+ },
84
+ options: {
85
+ popper: {
86
+ placement: 'left' as const,
87
+ },
88
+ },
89
+ },
90
+ ])
91
+
92
+ // ── Search steps ──────────────────────────────────────────────────────────────
93
+ const searchSteps = computed(() => [
94
+ {
95
+ attachTo: { element: '#onboarding-search-button' },
96
+ content: {
97
+ title: t('motor-admin.onboarding.search.step1_title'),
98
+ description: t('motor-admin.onboarding.search.step1_desc'),
99
+ },
100
+ options: { popper: { placement: 'right' as const } },
101
+ },
102
+ {
103
+ attachTo: { element: '#onboarding-search-button' },
104
+ content: {
105
+ title: t('motor-admin.onboarding.search.step2_title'),
106
+ description: t('motor-admin.onboarding.search.step2_desc'),
107
+ },
108
+ options: { popper: { placement: 'right' as const } },
109
+ },
110
+ ])
111
+
112
+ // ── Admin navigation steps ────────────────────────────────────────────────────
113
+ const adminNavSteps = computed(() => [
114
+ {
115
+ attachTo: { element: '#onboarding-sidebar-nav' },
116
+ content: {
117
+ title: t('motor-admin.onboarding.admin_nav.step1_title'),
118
+ description: t('motor-admin.onboarding.admin_nav.step1_desc'),
119
+ },
120
+ },
121
+ ])
122
+
123
+ // ── Event handlers ────────────────────────────────────────────────────────────
124
+
125
+ /**
126
+ * Announcements tour finished → chain to notifications.
127
+ */
128
+ async function onAnnouncementsFinish() {
129
+ markAnnouncementsDone()
130
+ await nextTick()
131
+ if (!notificationsCompleted.value) {
132
+ startNotifications()
133
+ }
134
+ }
135
+
136
+ /**
137
+ * Notifications tour finished → chain to search tour.
138
+ */
139
+ async function onNotificationsFinish() {
140
+ markNotificationsDone()
141
+ await nextTick()
142
+ if (!searchCompleted.value) {
143
+ startSearch()
144
+ }
145
+ else if (!adminNavCompleted.value) {
146
+ startAdminNav()
147
+ }
148
+ }
149
+
150
+ /**
151
+ * Search tour finished → chain to admin-nav tour.
152
+ */
153
+ async function onSearchFinish() {
154
+ markSearchDone()
155
+ await nextTick()
156
+ if (!adminNavCompleted.value) {
157
+ startAdminNav()
158
+ }
159
+ }
160
+
161
+ /**
162
+ * Admin-nav tour finished → mark done, store pending flag, navigate to users list.
163
+ * UsersOnboarding on the users page detects the pending flag and auto-starts
164
+ * the grid explanation tour.
165
+ */
166
+ function onAdminNavFinish() {
167
+ markAdminNavDone()
168
+ setPending('admin-grid')
169
+ router.push('/motor-admin/users')
170
+ }
171
+
172
+ // ── Start logic ───────────────────────────────────────────────────────────────
173
+ // Announcements is the ONLY entry point. Each tour chains to the next via @finish.
174
+ // VOnboardingWrapper is registered as client-only, so wrapper refs are null
175
+ // until after hydration.
176
+ const stopWatch = watch(
177
+ [announcementsWrapper, notificationsWrapper, searchWrapper, adminNavWrapper],
178
+ async ([announcementsW, notificationsW, searchW, adminNavW]) => {
179
+ if (!announcementsW || !notificationsW || !searchW || !adminNavW) return
180
+ stopWatch()
181
+
182
+ // If the backend flag is set, clear localStorage so the tour runs again
183
+ if (user.value?.data?.show_onboarding) {
184
+ resetOnboardingState()
185
+ }
186
+
187
+ // Allow initial toasts to clear before starting
188
+ await new Promise(resolve => setTimeout(resolve, 2500))
189
+
190
+ if (!announcementsCompleted.value) {
191
+ startAnnouncements()
192
+ }
193
+ },
194
+ { immediate: true },
195
+ )
196
+ </script>
197
+
198
+ <template>
199
+ <VOnboardingWrapper
200
+ ref="announcementsWrapper"
201
+ :steps="announcementSteps"
202
+ :options="options"
203
+ @finish="onAnnouncementsFinish"
204
+ />
205
+ <VOnboardingWrapper
206
+ ref="notificationsWrapper"
207
+ :steps="notificationsSteps"
208
+ :options="options"
209
+ @finish="onNotificationsFinish"
210
+ />
211
+ <VOnboardingWrapper
212
+ ref="searchWrapper"
213
+ :steps="searchSteps"
214
+ :options="options"
215
+ @finish="onSearchFinish"
216
+ />
217
+ <VOnboardingWrapper
218
+ ref="adminNavWrapper"
219
+ :steps="adminNavSteps"
220
+ :options="options"
221
+ @finish="onAdminNavFinish"
222
+ />
223
+ </template>
@@ -0,0 +1,101 @@
1
+ import type { User } from '@motor-cms/ui-core/app/types/auth'
2
+
3
+ // Extend this union as new areas are added
4
+ export type OnboardingArea =
5
+ | 'dashboard-announcements'
6
+ | 'notifications'
7
+ | 'search'
8
+ | 'admin-nav'
9
+ | 'admin-grid'
10
+ | 'user-profile'
11
+ | 'builder-pages'
12
+
13
+ const STORAGE_KEY = 'motor-onboarding-completed'
14
+ const PENDING_KEY = 'motor-onboarding-pending'
15
+
16
+ function getCompleted(): Set<string> {
17
+ try {
18
+ const raw = localStorage.getItem(STORAGE_KEY)
19
+ return new Set(raw ? JSON.parse(raw) : [])
20
+ }
21
+ catch {
22
+ return new Set()
23
+ }
24
+ }
25
+
26
+ function persistCompleted(ids: Set<string>) {
27
+ localStorage.setItem(STORAGE_KEY, JSON.stringify([...ids]))
28
+ }
29
+
30
+ export function useOnboardingState(area: OnboardingArea) {
31
+ const { user } = useSanctumAuth<User>()
32
+ const userId = computed(() => user.value?.data?.id?.toString() ?? 'anonymous')
33
+ const key = computed(() => `${userId.value}:${area}`)
34
+
35
+ const isCompleted = computed(() => getCompleted().has(key.value))
36
+
37
+ function markCompleted() {
38
+ const completed = getCompleted()
39
+ completed.add(key.value)
40
+ persistCompleted(completed)
41
+ }
42
+
43
+ function reset() {
44
+ const completed = getCompleted()
45
+ completed.delete(key.value)
46
+ persistCompleted(completed)
47
+ }
48
+
49
+ return { isCompleted, markCompleted, reset }
50
+ }
51
+
52
+ /**
53
+ * Clears all completed onboarding areas for the current user from localStorage.
54
+ * Call this before navigating to dashboard to restart the full tour.
55
+ */
56
+ export function useOnboardingResetAll() {
57
+ const { user } = useSanctumAuth<User>()
58
+ const userId = computed(() => user.value?.data?.id?.toString() ?? 'anonymous')
59
+
60
+ function resetAll() {
61
+ const completed = getCompleted()
62
+ const areas: OnboardingArea[] = [
63
+ 'dashboard-announcements',
64
+ 'notifications',
65
+ 'search',
66
+ 'admin-nav',
67
+ 'admin-grid',
68
+ 'user-profile',
69
+ 'builder-pages',
70
+ ]
71
+ for (const area of areas) {
72
+ completed.delete(`${userId.value}:${area}`)
73
+ }
74
+ persistCompleted(completed)
75
+ }
76
+
77
+ return { resetAll }
78
+ }
79
+
80
+ /**
81
+ * Cross-page trigger: marks which onboarding area should auto-start
82
+ * on the next page load. Scoped by user ID to prevent cross-user leakage.
83
+ */
84
+ export function usePendingOnboarding() {
85
+ const { user } = useSanctumAuth<User>()
86
+ const userId = computed(() => user.value?.data?.id?.toString() ?? 'anonymous')
87
+
88
+ function setPending(area: OnboardingArea) {
89
+ localStorage.setItem(`${PENDING_KEY}:${userId.value}`, area)
90
+ }
91
+
92
+ function getPending(): OnboardingArea | null {
93
+ return (localStorage.getItem(`${PENDING_KEY}:${userId.value}`) as OnboardingArea) || null
94
+ }
95
+
96
+ function clearPending() {
97
+ localStorage.removeItem(`${PENDING_KEY}:${userId.value}`)
98
+ }
99
+
100
+ return { setPending, getPending, clearPending }
101
+ }
@@ -7,6 +7,7 @@
7
7
  "prompt_description": "Der System-Prompt-Text, der an das KI-Modell gesendet wird",
8
8
  "create_title": "KI-System-Prompt erstellen",
9
9
  "edit_title": "KI-System-Prompt bearbeiten",
10
+ "view_title": "KI-System-Prompt ansehen",
10
11
  "created_success": "KI-System-Prompt erfolgreich erstellt.",
11
12
  "updated_success": "KI-System-Prompt erfolgreich aktualisiert."
12
13
  }
@@ -5,6 +5,7 @@
5
5
  "add": "Kategorie hinzufügen",
6
6
  "create_title": "Kategorie erstellen",
7
7
  "edit_title": "Kategorie bearbeiten",
8
+ "view_title": "Kategorie ansehen",
8
9
  "created_success": "Kategorie wurde erfolgreich erstellt",
9
10
  "updated_success": "Kategorie wurde erfolgreich aktualisiert",
10
11
  "parent": "Übergeordnete Kategorie",
@@ -6,6 +6,7 @@
6
6
  "add": "Kategoriebaum hinzufügen",
7
7
  "create_title": "Kategoriebaum erstellen",
8
8
  "edit_title": "Kategoriebaum bearbeiten",
9
+ "view_title": "Kategoriebaum ansehen",
9
10
  "created_success": "Kategoriebaum wurde erfolgreich erstellt",
10
11
  "updated_success": "Kategoriebaum wurde erfolgreich aktualisiert",
11
12
  "children": "Kinder",
@@ -6,6 +6,7 @@
6
6
  "add": "Mandant hinzufügen",
7
7
  "create_title": "Mandant erstellen",
8
8
  "edit_title": "Mandant bearbeiten",
9
+ "view_title": "Mandant ansehen",
9
10
  "created_success": "Mandant erfolgreich erstellt.",
10
11
  "updated_success": "Mandant erfolgreich aktualisiert.",
11
12
  "slug": "Slug",
@@ -9,6 +9,7 @@
9
9
  "is_invisible": "Versteckt",
10
10
  "create_title": "Konfigurationsvariable erstellen",
11
11
  "edit_title": "Konfigurationsvariable bearbeiten",
12
+ "view_title": "Konfigurationsvariable ansehen",
12
13
  "created_success": "Konfigurationsvariable erfolgreich erstellt.",
13
14
  "updated_success": "Konfigurationsvariable erfolgreich aktualisiert."
14
15
  }
@@ -6,6 +6,7 @@
6
6
  "add": "Domain hinzufügen",
7
7
  "create_title": "Domain erstellen",
8
8
  "edit_title": "Domain bearbeiten",
9
+ "view_title": "Domain ansehen",
9
10
  "created_success": "Domain erfolgreich erstellt.",
10
11
  "updated_success": "Domain erfolgreich aktualisiert.",
11
12
  "host": "Host",
@@ -5,6 +5,7 @@
5
5
  "add": "E-Mail-Vorlage hinzufügen",
6
6
  "create_title": "E-Mail-Vorlage erstellen",
7
7
  "edit_title": "E-Mail-Vorlage bearbeiten",
8
+ "view_title": "E-Mail-Vorlage ansehen",
8
9
  "slug": "Slug",
9
10
  "slug_description": "URL-freundlicher Bezeichner, automatisch aus dem Namen generiert",
10
11
  "subject": "Betreff",
@@ -9,6 +9,7 @@
9
9
  "native_name": "Eigenname",
10
10
  "create_title": "Sprache erstellen",
11
11
  "edit_title": "Sprache bearbeiten",
12
+ "view_title": "Sprache ansehen",
12
13
  "created_success": "Sprache erfolgreich erstellt.",
13
14
  "updated_success": "Sprache erfolgreich aktualisiert.",
14
15
  "iso_639_1": "ISO 639-1 Code",
@@ -0,0 +1,57 @@
1
+ {
2
+ "next": "Weiter",
3
+ "previous": "Zurück",
4
+ "finish": "Fertig",
5
+ "announcements": {
6
+ "step1_title": "Meldungen",
7
+ "step1_desc": "Dieses Panel zeigt wichtige Meldungen von Ihrem Team oder Systemadministratoren.",
8
+ "step2_title": "Meldungen lesen",
9
+ "step2_desc": "Jede Karte zeigt eine Nachricht mit ihrem Typ (Info, Warnung oder Fehler). Klicken Sie auf ×, um sie nach dem Lesen auszublenden.",
10
+ "step3_title": "Meldung erstellen",
11
+ "step3_desc": "Als Administrator können Sie Meldungen an sich selbst, bestimmte Nutzer oder alle im Mandanten senden."
12
+ },
13
+ "notifications": {
14
+ "step1_title": "Benachrichtigungscenter",
15
+ "step1_desc": "Der rote Zähler zeigt ungelesene Benachrichtigungen. Klicken Sie auf die Glocke, um das Benachrichtigungscenter zu öffnen — hier sehen Sie alle Meldungen mit Typ und Zeitstempel, können einzelne Einträge entfernen oder alle auf einmal löschen."
16
+ },
17
+ "search": {
18
+ "step1_title": "Globale Suche",
19
+ "step1_desc": "Mit der Suche finden Sie sofort Seiten, Benutzer, Dateien und weitere Inhalte im gesamten System. Einfach tippen – Ergebnisse erscheinen direkt während der Eingabe.",
20
+ "step2_title": "Tastaturkürzel",
21
+ "step2_desc": "Drücken Sie ⌘K (oder Strg+K unter Windows) von überall im Admin, um die Suche ohne Maus zu öffnen. Halten Sie ⌘ gedrückt, um alle verfügbaren Tastenkürzel anzuzeigen."
22
+ },
23
+ "admin_nav": {
24
+ "step1_title": "Navigationsbereich",
25
+ "step1_desc": "Über die Seitenleiste erreichen Sie alle Verwaltungsbereiche. Klicken Sie auf 'Administration', um Benutzer, Rollen und weitere Einstellungen zu verwalten. Als nächstes öffnen wir die Benutzerliste."
26
+ },
27
+ "admin_grid": {
28
+ "step1_title": "Datensätze bearbeiten",
29
+ "step1_desc": "In dieser Übersicht sehen Sie alle Benutzer. Klicken Sie einfach auf eine Zeile — der Datensatz öffnet sich direkt zum Bearbeiten."
30
+ },
31
+ "builder_pages_list": {
32
+ "step1_title": "Seite öffnen um die Tour zu starten",
33
+ "step1_desc": "Klicken Sie auf eine beliebige Zeile, um die Seite im Editor zu öffnen. Die Builder-Tour startet dann automatisch."
34
+ },
35
+ "builder_pages": {
36
+ "step1_title": "Seiteneditor",
37
+ "step1_desc": "Willkommen im Seiteneditor. Hier können Sie Inhalt und Layout dieser Seite visuell bearbeiten und gestalten.",
38
+ "step2_title": "Veröffentlichungsstatus",
39
+ "step2_desc": "Dieses Abzeichen zeigt, ob die Seite veröffentlicht, geplant oder ein Entwurf ist. Klicken Sie darauf, um die Seite zu veröffentlichen, zu planen oder offline zu nehmen.",
40
+ "step3_title": "Änderungsverlauf",
41
+ "step3_desc": "Machen Sie Änderungen mit den Pfeilschaltflächen rückgängig oder wiederholen Sie sie. Das Uhrsymbol öffnet den vollständigen Verlauf dieser Bearbeitungssitzung.",
42
+ "step4_title": "Geräteansicht",
43
+ "step4_desc": "Wechseln Sie zwischen Desktop-, Tablet- und Mobilansicht, um zu sehen, wie Ihre Seite auf verschiedenen Bildschirmgrößen aussieht.",
44
+ "step5_title": "Seitenstruktur",
45
+ "step5_desc": "Das Strukturpanel zeigt alle Zeilen und Komponenten Ihrer Seite als Baumansicht. Klicken Sie auf einen Eintrag, um ihn im Editor auszuwählen.",
46
+ "step6_title": "Layout-Zeilen",
47
+ "step6_desc": "Fügen Sie über das Layout-Panel einen neuen Bereich mit 1, 2, 3 oder 4 Spalten ein. Klicken Sie auf ein Layout oder ziehen Sie es auf den Editor.",
48
+ "step7_title": "Inhaltskomponenten",
49
+ "step7_desc": "Das Komponentenpanel listet alle verfügbaren Inhaltsbausteine auf — Überschriften, Bilder, Videos, Buttons und mehr. Klicken oder ziehen Sie eine Komponente in eine Spalte.",
50
+ "step8_title": "Der Editor",
51
+ "step8_desc": "Klicken Sie auf ein Element, um es auszuwählen und seine Eigenschaften rechts anzuzeigen. Ziehen Sie den Griff links einer Zeile, um Bereiche umzusortieren.",
52
+ "step9_title": "Element-Eigenschaften",
53
+ "step9_desc": "Wenn ein Element ausgewählt ist, erscheinen seine Eigenschaften hier. Bearbeiten Sie Inhalt, Darstellung und erweiterte Einstellungen. Der Navigationspfad oben führt zu übergeordneten Elementen.",
54
+ "step10_title": "Speichern",
55
+ "step10_desc": "Klicken Sie auf Speichern (oder drücken Sie Cmd+S). Der Dropdown-Pfeil ermöglicht Speichern und Schließen in einem Schritt. Ein pulsierender Punkt zeigt ungespeicherte Änderungen an."
56
+ }
57
+ }
@@ -8,6 +8,7 @@
8
8
  "position": "Position",
9
9
  "create_title": "Berechtigungsgruppe erstellen",
10
10
  "edit_title": "Berechtigungsgruppe bearbeiten",
11
+ "view_title": "Berechtigungsgruppe ansehen",
11
12
  "created_success": "Berechtigungsgruppe erfolgreich erstellt.",
12
13
  "updated_success": "Berechtigungsgruppe erfolgreich aktualisiert.",
13
14
  "group_permissions": "Berechtigungen"