dharaneesh-r 3297a0a790 Ask for the address first, and say how long a shop PC has been quiet
Rebased onto the live-view work rather than over it: this keeps every
live-camera file as it is and only adds beside them.

── Sign in in two steps ────────────────────────────────────────────────
The address, then the password, which is the shape of every console people
are used to now.

The first step does NOT ask whether the address exists, and that is
deliberate rather than unfinished. The platform refuses to tell anybody:
`handleLogin` verifies an unknown address against `auth.DummyHash`
specifically so a wrong address and a wrong password cost the same TIME as
well as returning the same bytes, and there is no endpoint that answers
"does this email exist". Adding one would hand anybody a way to enumerate
who works at a merchant, one address at a time. A real person notices no
difference; only somebody probing addresses would.

It is an enhancement over the form, not a replacement. The server renders
both fields - today's form exactly - and the two-step collapses in after
hydration, so a visitor with no JavaScript still posts natively to
/api/auth/login rather than being stranded with no password box. The
password input stays mounted and hidden on step one, because unmounting it
drops whatever a password manager filled the moment the page loaded.

── How long the PC has been quiet, beside why ──────────────────────────
`shopPcLine` already separates "head office is refusing it" from "it cannot
reach head office", which is the half an online flag cannot tell apart.
This adds the other half it also cannot: how LONG. Ten minutes is a reboot
and a week is a PC nobody has switched on, and the reaction is completely
different. `lastHeartbeatAt`, `dropped` and `queued` were always sent by
the platform and dropped by `toSite` one layer from the screen.

`dropped` now shows as a banner when it is non-zero. The spool is bounded
so a shop offline for a week cannot fill its own disk, and what it drops is
footfall nobody will ever see; the platform preserves the count with
GREATEST(...) precisely so a restarted agent cannot hide it.

── The camera list refreshes itself ────────────────────────────────────
Every 5s instead of only on reload. That is how fast a new picture is
NOTICED - the shop PC decides how fresh it is, now every 10s. Extra polls
cost no image traffic: the card holds the picture steady until `snapshotAt`
actually moves, so a fresh presigned URL for an unchanged JPEG never
re-downloads it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-23 16:28:18 +05:30
2026-09-25 16:31:10 +05:30
2026-09-25 16:31:10 +05:30
2026-09-25 16:31:10 +05:30
2026-11-04 13:55:27 +05:30
2026-09-25 16:31:10 +05:30
2026-09-25 16:31:10 +05:30
2026-09-25 16:31:10 +05:30
2026-09-25 16:31:10 +05:30
2026-09-25 16:31:10 +05:30
2026-09-28 19:44:05 +05:30
2026-09-25 16:31:10 +05:30
2026-09-25 16:31:10 +05:30
2026-09-28 19:44:05 +05:30
2026-09-24 16:23:24 +05:30

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Description
No description provided
Readme 7 MiB
Languages
TypeScript 96.8%
CSS 2.1%
JavaScript 0.6%
Dockerfile 0.4%
Shell 0.1%