Vai al contenuto

Windows Squeegee

v1.0

A window cleaning round planner on sky-blue glass over a drawn street of shopfronts: crews, rounds, quotes, jobs, payments and reports.

$69

Indirizzo della pagina: /

Incluso

Cosa ottieni
  • Chiaro e scuroUsa i colori del tuo tema
  • Desktop, tablet e telefonoLe schermate per cui è pensato
  • Pacchetti…
  • Dimensione del codice…
  • Leggero sulla batteria30 fps, inattivo quando è fermo
  • In pausa se nascostoFuori schermo o in un’altra scheda
  • Riduci movimentoCalmo per chi lo chiede

Verificato a ogni modifica

Sicurezza verificata il 3 dic
  • Controllo dei tipiTypeScript strict
  • Lint e formattazioneESLint · Prettier
  • Test e buildScreenshot chiari e scuri
  • Audit di sicurezzaNessun avviso alto o critico
  • Età dei pacchettiOgni versione pubblica da 7+ giorni
  • CPU a riposoMeno di mezzo core a riposo, ≤ 30 fps

Codice

windows-squeegeeReact
  • windows-squeegee.tsxThe page: the sections in order.
  • content.tsEvery word and number: brand, nav links, each section's copy and lists.
  • theme.tsThe colors as CSS variables, and the shared class strings.
  • README.mdHow to install it, and where to change the text, colors and form.
  • pagesOne file per page: the sections it shows, in order.
    • customer.tsxOne customer (#/customers/<id>?tab=…): who and where with the round's details, then tabs for the details, past visits and payments; edit, delete, take a payment or send a reminder from here.
    • customers.tsxCustomers (#/customers?kind=…&crew=…&q=…): every home and shop on the rounds, filtered and searched, twelve to a page; a row opens the customer, New customer adds one.
    • jobs.tsxJobs (#/jobs?day=…&status=…&crew=…): one day's stops as a list, filtered by state and crew; a row opens the stop's sheet to mark it done or skipped, write a note or add photos.
    • overview.tsxThe Overview (#/): today in four tiles, each crew's round and the rain check, jobs per week and who owes, then quotes waiting, the latest payments and the weekly round value; every card leads to its list.
    • payments.tsxPayments (#/payments?tab=owed|paid): what is owed, oldest first, with reminders and Mark paid (cash, card or transfer); what came in, with Undo; and the four totals on top.
    • quotes.tsxQuotes (#/quotes?status=…): every quote by its state, its price worked out from today's pricing; New quote opens the builder, a row opens its quote (#/quotes/<id>), where the squeegee reveals the price.
    • reports.tsxReports (#/reports?range=8|12|26): jobs per week, round value per week, each crew's share, unpaid by age and how often customers come back.
    • rounds.tsxRounds (#/rounds?day=…): pick a day of the week, then plan it on the crew board; a stop opens in its sheet (?job=…), so Back closes it.
    • settings.tsxSettings (#/settings): Appearance (style, theme, language), the pricing every quote and round price uses, the crews' names and vans, and the rain chance that counts as a wet hour.
    • sign-in.tsxThe sign-in page (#/sign-in): the drawn street across the top, and the logo and form on one glass card, without the tabs.
  • sectionsOne file per page section.
    • account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
    • appearance.tsxSettings → Appearance: the style (Glass or Solid) and the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
    • customer-form.tsxAdd or edit a customer in a dialog: who and where, home or shop, the windows and floors, which crew, day and how often, how they pay; the round price is worked out as you go.
    • day-strip.tsxThe week's days as glass chips (Monday to Sunday) with each day's stops and its rain chance, plus the previous and next week: every chip a link, so the day survives Back. On phones a chip keeps the day, the date and a drop on a wet day.
    • job-dialog.tsxOne stop's sheet: mark it done or skipped (rain, no access, away), write a note, add drawn photos of the panes, move it to the next workday or open the customer.
    • page-head.tsxWhat every page starts with and shares: the title block, the KPI tiles that link to a filtered list, and the pager under a long list.
    • quote-builder.tsxThe quote builder: the property (who, where, home or shop), its windows, floors and extras and how often, on the left; on the right the price behind frosted glass that you wipe clear with a squeegee. Save, send, book or decline it underneath.
    • quote-receipt.tsxWhat sits behind the frosted pane on a quote: the property drawn, each price line (windows, upper floors, extras, how often, the minimum), the price a visit and a year.
    • round-board.tsxThe day's round board: one glass column per crew, its stops in driving order with their start times; drag a stop (or Space and the arrows) to another crew or place and the others glide aside, then click one to open it.
    • sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
    • today.tsxToday on the Overview: each crew's round (done of planned, its value, the next stops) and the rain check (the hourly chance against your limit, and one key to move the wet stops to the next workday).
    • top-bar.tsxThe top bar over the drawn street: the logo, a row of glass tabs on one liquid bead (left-aligned, under the logo on mid screens, a menu sheet on phones), search, the theme switch and the account menu; the bar frosts once the page scrolls.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • text.tsThe text card style: cards fade in while titles, labels and numbers (data-build="text") slide up from behind a mask; numbers show their final text.
      • rowsWhat several sections share.
        • odo.tsxThe odo row motion: each row on screen rises 6px from faint while every number rolls digit by digit to its value.
      • core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
      • index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
    • appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
    • avatar.tsxA person's initials in a round badge, tinted with the primary.
    • backdrop.tsxThe backdrop: a drawn mesh of four soft sky clouds behind the glass, and the drawn street of houses and shopfronts the top bar sits over. With followBackground it paints your background instead.
    • charts.tsxThe charts: rounded pill bars and a glowing line in a recessed glass well, the current bar or point in the primary with a lemon rim, and a donut; every series a chart shade.
    • command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
    • dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
    • drag-lanes.tsDrag cards between ordered lanes (a tech's stops, a repair stage): mouse and pen at once, touch after a short press (a swipe still scrolls), the lifted copy kept under the grab point, the others sliding aside (FLIP), the page and the board scrolling near their edges, Escape to cancel, and a keyboard path (Space lifts, arrows move, Space drops).
    • drawn.tsxDrawn pictures in the theme's colors: a property's front (a house or a shopfront, its panes from the window count) and a job's "photo" of a cleaned pane.
    • field.tsxA labeled text field with its error line under it, tied together for screen readers.
    • format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
    • frost-pane.tsxThe quote's window: a frosted pane over the price breakdown. Drag the squeegee (or the pane itself) across and each stroke wipes a clear band where the blade passed, leaving beads of water at its ends; once most of the glass is clear the rest of the frost lifts and the price is revealed. Still at rest; Enter on the squeegee wipes a pass at a time.
    • icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
    • language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
    • liquid-marker.tsThe selected marker that moves like a bead of water on glass: shared by the tab bar, page tabs and every segmented switch.
    • moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
    • motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
    • router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
    • scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
    • select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
    • session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
    • sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
    • states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
    • store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
    • ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
    • toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
    • ui.tsxThe small parts every page shares: the glass panel, a card's head, segmented switches and link tabs on the liquid marker, status chips, a stepper, toggle chips and the save helper.
    • use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
    • use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
  • dataThe pretend data and the fake API: swap it for your backend.
    • account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
    • api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
    • pricing.tsHow a visit is priced: windows, upper floors, extras and how often, the same rule for a quote and a customer's round price.
    • seed.tsThe pretend business: Halden Window Co., three crews on repeat rounds of homes and shopfronts, made the same way on every load from a fixed seed, around a pinned demo "now" (today's real date at 10:40; the crews work every day).
    • store.tsThe live state behind the fake API: customers, this week's and next week's jobs by day, invoices, quotes and settings, plus the reads several answers share. data/api.ts is the only file that calls it.
  • localesEvery word the app shows, one JSON file a language; list.ts names them.
    • en.jsonOne language's words, with the keys of en.json.
    • es.jsonOne language's words, with the keys of en.json.
    • list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).

windows-squeegee.tsx

The page: the sections in order.

Caricamento…
Ideale per
A window cleaning business with a few crews on repeat rounds of homes and shopfronts: who's where today, quotes and who owes.
Come funziona
Stops glide between crew columns as you drag them, rain moves the wet ones on, and a squeegee wipes frosted glass to show a quote.
Come si usa
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.