updates on the ui changes and more things

This commit is contained in:
2026-09-19 11:43:00 +05:30
parent b1747480df
commit 8e87947c5f
43 changed files with 511 additions and 184 deletions

View File

@@ -21,10 +21,10 @@ export default function PageNotFound() {
const quickLinks = [
{
title: 'Live Dispatch',
title: 'Control X',
desc: 'Real-time fleet tracking & active runs',
icon: Radio,
path: '/doormile/dispatch',
path: '/doormile/control-x',
color: 'text-rose-600 bg-rose-50 border-rose-200/70 group-hover:bg-rose-100/70'
},
{
@@ -98,11 +98,11 @@ export default function PageNotFound() {
<div className="flex flex-wrap items-center justify-center gap-3 w-full max-w-md mb-9">
<button
type="button"
onClick={() => navigate(isAuthenticated ? '/doormile/dispatch' : '/login')}
onClick={() => navigate(isAuthenticated ? '/doormile/control-x' : '/login')}
className="flex-1 min-w-[160px] inline-flex items-center justify-center gap-2 px-5 py-2.5 rounded-xl font-medium text-sm text-white bg-rose-600 hover:bg-rose-700 active:scale-[0.98] shadow-sm shadow-rose-600/20 transition-all cursor-pointer"
>
<Home className="w-4 h-4" />
<span>{isAuthenticated ? 'Back to Dispatch' : 'Sign in to Console'}</span>
<span>{isAuthenticated ? 'Back to Control X' : 'Sign in to Console'}</span>
</button>
<button

View File

@@ -35,8 +35,12 @@ const CATALOG = [
const BY_ROUTE = [
[
/^\/doormile\/dispatch/,
'Dispatch',
// Matches both spellings: the board moved to /doormile/control-x, and
// /doormile/dispatch still resolves through the redirect in App.jsx, so a
// bookmark that lands there should still get this page's suggestions
// rather than the default set.
/^\/doormile\/(control-x|dispatch)/,
'Control X',
['Morning batch orders', 'How many riders are active?', "Repeat yesterday's run", 'How many orders today?'],
],
[