Sitter Beagle
v1.0A dog-walking and pet-sitting app in warm biscuit tones: a bento overview with a live walk map, walks, sits, pets, owners, walkers and reports.
Adresse de la page : /
Intégré
Ce que vous obtenez- Clair et sombreUtilise les couleurs de votre thème
- Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
- Paquets…
- Taille du code…
- Économe en batterie30 i/s, au repos quand rien ne bouge
- Pause quand masquéHors écran ou autre onglet
- Mouvement réduitCalme pour ceux qui le demandent
Vérifié à chaque modification
Sécurité vérifiée le 3 déc.- Vérification des typesTypeScript strict
- Lint et formatESLint · Prettier
- Tests et buildCaptures claires et sombres
- Audit de sécuritéAucune vulnérabilité élevée ou critique
- Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
- CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
sitter-beagleReact
- sitter-beagle.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.
- home.tsxOverview: the walks out now with their routes drawing live, the walkers out, today's takings, who is due next, unpaid invoices, tonight's sits, the week and today's rota.
- owner.tsxOne owner (#/owners/<id>): how to reach them and get in, their pets, their key and who has it, what they owe and every invoice; edit, delete, add a pet or bill them.
- owners.tsxOwners: what is owed and billed by month, the numbers, and three tabs from the address — owners, invoices (?status=unpaid) and the keys with who has each.
- pet.tsxOne pet (#/pets/<id>): profile, care (diet, meds, allergies, vet), behaviour and the walk history its reports land in, each a tab of tiles; edit or delete the pet.
- pets.tsxPets: the meds and diets due on today's walks, the numbers, and every pet searchable by name and filtered by species in the address; add a pet or open one.
- reports.tsxReports: revenue week by week over the range in the address (4, 12 or 26 weeks), walks per week, repeat and new clients by month, and the clients billed most.
- settings.tsxThe settings page: its title, Appearance (style, theme and language) and the prices new walks, sits and invoices use.
- sign-in.tsxThe sign-in page (#/sign-in): two bento tiles over the backdrop, without the sidebar and top bar — the form, and beside it on wider screens a tile of pet faces with what the app keeps track of.
- sits.tsxSits: overnight bookings with their house notes; tonight's sits, the next 14 nights as bars, every booking in a list; add, change or delete one.
- walkers.tsxWalkers: the week's rota (tap a day to put someone on or off), who covers each area, today's pay per walker and the team; add or edit a walker.
- walks.tsxWalks: today's schedule by walker with the dogs on each walk, filtered by state and walker in the address; add, change, move to another walker or delete a walk.
- 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).
- day-board.tsxToday's walks by walker: a lane per walker on a 7:00 to 19:00 track with a now line, each walk a block (done, out or planned) showing its first pet and "+2" for the rest; the track scrolls sideways while the names stay. On a phone each lane is a row of walk chips.
- out-now.tsxOverview's hero: the walks out now on the drawn neighbourhood, each route drawing as it goes with the pet trotting at its head, live timers, and Done, which slides out the walk report card and saves it to the pets' history and the owners' invoices.
- overview-tiles.tsxOverview's small tiles: walkers out (live dots), today's revenue (a live counter over its day line), the pets due next, unpaid invoices, tonight's sits and the week's walks.
- owner-forms.tsxThe owner and invoice forms in dialogs, an invoice row with its actions (mark paid, void, delete) and a key's check-out picker, shared by the Owners page and an owner's page.
- owner-lists.tsxThe three lists on the Owners page: owners (search, area pills), invoices (status pills, from the address) and keys (out or on the hook, with who has each).
- pet-dialog.tsxThe pet form in a dialog: name, species, breed, owner, year born, sex and weight. Diet, meds, vet and behaviour are edited on the pet's own page.
- sidebar.tsxThe sidebar: logo, search with the command palette shortcut, and the page links (some open to their filters), with one primary pill that glides to the current page; collapsed, only the icons show.
- 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.
- top-bar.tsxThe top bar: the menu button on narrow screens, where you are, search, the theme switch and the account menu.
- walk-dialog.tsxThe walk form in a dialog: walker, start time, length and the dogs on it; for a walk that exists, its report or Delete (asked twice).
- walker-dialog.tsxThe walker form in a dialog: name, phone, home area and pay per walk; a saved walker can be removed (their walks and sits move to the first walker).
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- odometer.tsxThe odometer card style: cards rise while every number rolls digit by digit to its value.
- rowsWhat several sections share.
- avatar.tsThe avatar row motion: each row's face (data-build="face") pops first, then the row's other parts follow from faint.
- 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 Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
- bento.tsxThe bento grid every page is: a page head, one grid of tiles named by area per width, the tile itself and a FLIP glide for things that move when a filter or a save changes them.
- clock.tsThe one shared clock every live part runs on: frames at most 30 times a second, only while the part is on screen and the tab is shown, none under reduced motion or while paused (the hero's Pause button); and a seconds clock for timers.
- 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.
- field.tsxA labeled form field (a text input or a select) 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.
- 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).
- 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.
- pet-face.tsxA pet's drawn face: a round head in its coat, floppy ears for a dog, pointed ones for a cat, long ones for a rabbit; every color a mix of the theme's.
- route-map.tsxThe drawn neighbourhood the walks happen in (streets, the park, the river) and each live walk on it: its dotted route drawn as far as it has got, the pet trotting at its head, on the shared clock.
- 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.
- 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-data.tsxEverything a page stands on, loaded through the fake API in one go (each key at once on a page you come back to), plus the page's loading skeleton in its own bento shape and its error state.
- 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.
- seed.tsThe pretend business: 10 walkers, 120 owners, 180 pets, today's walks, overnight sits and invoices, in the shapes the pages need. The fake API (data/api.ts) keeps its own copy and changes 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}).
sitter-beagle.tsx
The page: the sections in order.
Chargement…
- Idéal pour
- Dog walkers and pet sitters with a small team who plan walks and sits, track walks live, keep pet care notes and bill owners.
- Fonctionnement
- The route draws live with the dog trotting along; tap Done and a report card slides out, then lands in the pet's history and bill.
- Utilisation
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.