Skip to content

Commit 048d111

Browse files
Rename views to Terminal and QRM
- Introduces Terminal View and QRM View labels for operator navigation - Updates AdminLayout and translations to reflect new view names - Suppresses onboarding tour to prevent recurring prompts across visits X-Lovable-Edit-ID: edt-db9ef527-9e7c-4bdd-91ff-98844380240f
2 parents 4e2a8f9 + 8fbf594 commit 048d111

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src/components/AdminLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ export default function AdminLayout({ children }: AdminLayoutProps) {
181181
const operatorViewItems = [
182182
{
183183
path: "/operator/work-queue",
184-
label: t("navigation.workQueue"),
184+
label: t("navigation.qrmView", "QRM View"),
185185
icon: ListTodo,
186186
exact: true,
187187
},
188188
{
189189
path: "/operator/view",
190-
label: t("navigation.operatorView"),
190+
label: t("navigation.terminalView", "Terminal View"),
191191
icon: Eye,
192192
exact: true,
193193
},

src/components/operator/OperatorLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const OperatorLayout = ({ children, showBackToAdmin = false }: OperatorLa
5252

5353
const navItems = [
5454
{ path: '/operator/work-queue', label: t('navigation.workQueue'), icon: ListChecks },
55-
{ path: '/operator/view', label: t('navigation.operatorView'), icon: Gauge },
55+
{ path: '/operator/view', label: t('navigation.terminalView', 'Terminal View'), icon: Gauge },
5656
{ path: '/operator/my-activity', label: t('navigation.myActivity'), icon: Clock },
5757
{ path: '/operator/my-issues', label: t('navigation.myIssues'), icon: Flag },
5858
];
@@ -264,8 +264,8 @@ export const OperatorLayout = ({ children, showBackToAdmin = false }: OperatorLa
264264
</div>
265265
</nav>
266266

267-
{/* Onboarding Tour - only show if not completed */}
268-
{profile && !(profile as any).tour_completed && <AppTour userRole="operator" />}
267+
{/* Onboarding Tour - only show if not completed and tour_completed is explicitly false */}
268+
{profile && (profile as any).tour_completed === false && <AppTour userRole="operator" />}
269269
</div>
270270

271271
{/* Global Search Modal */}

src/i18n/locales/de/navigation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"docsAndHelp": "Dokumentation & Hilfe",
2828
"help": "Hilfe",
2929
"about": "Über",
30-
"operatorView": "Bedieneransicht",
31-
"operatorViews": "Bedieneransichten",
30+
"terminalView": "Terminalansicht",
31+
"qrmView": "QRM Ansicht",
3232
"materials": "Materialien",
3333
"resources": "Betriebsmittel",
3434
"templates": "Vorlagen",

src/i18n/locales/en/navigation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"docsAndHelp": "Docs & Help",
2828
"help": "Help",
2929
"about": "About",
30-
"operatorView": "Operator View",
31-
"operatorViews": "Operator Views",
30+
"terminalView": "Terminal View",
31+
"qrmView": "QRM View",
3232
"materials": "Materials",
3333
"resources": "Resources",
3434
"templates": "Templates",

src/i18n/locales/nl/navigation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"docsAndHelp": "Documentatie & Hulp",
2828
"help": "Hulp",
2929
"about": "Over",
30-
"operatorView": "Operatorweergave",
31-
"operatorViews": "Operatorweergaven",
30+
"terminalView": "Terminalweergave",
31+
"qrmView": "QRM Weergave",
3232
"materials": "Materialen",
3333
"resources": "Gereedschappen",
3434
"templates": "Sjablonen",

0 commit comments

Comments
 (0)