İçeriğe geç

Housekeep Linen

v1.0

A hotel housekeeping board on calm stone and linen blue: drag a group of rooms onto an attendant and watch the squares sweep from dirty to clean.

$69

Sayfa adresi: /

Yerleşik

Neler alırsınız
  • Açık ve koyuTema renklerinizi kullanır
  • Masaüstü, tablet ve telefonTasarlandığı ekranlar
  • Paketler…
  • Kod boyutu…
  • Pil dostu30 fps, dururken boşta
  • Gizliyken dururEkran dışında veya başka sekmede
  • Hareketi azaltİsteyenler için sakin

Her değişiklikte kontrol edilir

Güvenlik kontrolü: 3 Ara
  • Tür denetimiKatı TypeScript
  • Lint ve biçimESLint · Prettier
  • Testler ve derlemeAçık ve koyu ekran görüntüleri
  • Güvenlik denetimiYüksek veya kritik uyarı yok
  • Paket yaşıHer sürüm 7+ gündür herkese açık
  • Boşta CPUDururken yarım çekirdekten az, ≤ 30 fps

Kod

housekeep-linenReact
  • housekeep-linen.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.
    • assign.tsxAssign (#/assign): the floor board beside the attendants on shift. Pick rooms (click, Shift-click, lasso) and drag the group onto an attendant, or pick and tap one: the squares glide into their route, the ring and credits follow, Undo puts them back.
    • home.tsxOverview (#/): the morning at a glance as a bento: the live floor board as the hero, rooms ready, the checkout countdown, rooms waiting for a check, each attendant's ring, linen running low, the pace and lost property.
    • inspections.tsxInspections (#/inspections): the rooms waiting for a supervisor, live; today's pass rate; the checks that fail most; and every inspection, which opens again to edit or goes. The checklist itself is a dialog: each line passes or fails, one fail sends the room back to dirty.
    • linen.tsxLinen (#/linen): stock on the shelves against par for every item, a stock take to correct a count, pieces sent to the laundry each day, what is out now, and the laundry runs (out and in) you log, edit or delete; each run moves the counts.
    • lost.tsxLost & found (#/lost): every item a room gave up, who found it and whose it is, held, claimed or returned (?status= filters, ?new=1 opens a new one); log, edit, hand back or delete.
    • person.tsxOne person (#/team/<id>): today's progress ring and the room they are in now (live timer), their route in order (move a room up or down), the rooms they cleaned this week, and their profile to edit or remove (?tab= survives Back).
    • reports.tsxReports (#/reports): rooms cleaned a day over 7, 14 or 30 days (?range=), rooms per hour, the inspection pass rate and its trend, minutes a room by kind, and the attendant table; the numbers download as a CSV.
    • room.tsxOne room (#/rooms/301): its state with the buttons that move it on, a live timer while it is cleaned, who has it, the guest, and tabs for today's note, its history and its maintenance tickets.
    • rooms.tsxRooms (#/rooms): the floor board, the count of each state as filters, and the room list the filters narrow (?status=, ?stay=; they survive Back). A room opens its own page.
    • settings.tsxSettings (#/settings): Appearance (style, theme, language), the shift times and checkout, the credits each room kind counts for, and the inspection checklist (add, rename, remove).
    • sign-in.tsxThe sign-in page (#/sign-in): the form on one card and, from tablet width, a calm floor board beside it (rooms in every state) with the line the team signs in for; no top bar.
    • team.tsxTeam (#/team): every attendant and supervisor with their shift and today's progress ring (?shift= filters, ?new=1 adds a person); who is on shift and who is fastest. A person opens their own page.
  • 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).
    • phone-tabs.tsxThe tab bar under 72rem of app width: Overview, Rooms, Assign and Inspections, and More for the other pages in a sheet. It is a framed bar (its own top edge and fill), so nothing is added behind 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.
    • top-bar.tsxThe top bar: Linen's mark, the page pills with a tinted pill that glides to the current page, the floor switcher, search, the theme switch and the account menu. Once the page scrolls the bar frosts over what passes under it.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • rise.tsThe rise card style: cards rise and fade in (24px, a hair smaller), one after another.
      • rowsWhat several sections share.
        • rise.tsThe rise row motion: each row on screen rises 8px 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.
    • bar-chart.tsxA bar chart: bars grow in, and the picked bar (in the primary), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a new range morphs the bars instead of drawing them again.
    • clock.tsThe one live clock every live tile shares: a beat a second (well under 30 redraws a second), running only while a live tile is on screen and the tab is visible, and still under reduced motion. Each beat also moves the pretend morning on (tick in data/api.ts).
    • 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-rooms.tsHands a group of rooms to an attendant by dragging: lasso or click rooms on the floor board, grab one of them and the group lifts with the grabbed square kept under the press point; drop it on an attendant tile and the squares glide (FLIP) into that tile's route strip, or anywhere else and they glide home. Mouse and pen at once, touch after a short press (a swipe still scrolls), Escape cancels. fly() is the same glide for a tap or the keyboard.
    • 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.
    • hotel.tsThe hotel as every page reads it: one answer through the fake API, the floor the top bar's switcher picks, and the few sums several pages share (a route's progress, rooms ready).
    • 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).
    • line-chart.tsxA line chart with a soft area under it, in the primary: the line draws itself in, the latest point marked, and new values roll the line to its new shape.
    • 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.
    • 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 bento pieces every page is built from: the grid, a tile (one idea, a small title, the same corner, edge and padding everywhere), a page head, a progress ring, a meter, a room square, a status chip and tabs.
    • 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: the head of housekeeping.
    • api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only. One answer, the hotel, holds every room, person, check, linen count and lost item; each save changes it and tells the pages (watch).
    • seed.tsThe pretend hotel: 120 rooms on six floors, 18 room attendants and 3 supervisors, today's routes at 09:40, linen, lost property and 30 days of history. Words that show (a checklist line, a linen item) are "@key" names read from locales SEED, so they follow the language; what a person types is kept as typed.
    • types.tsThe shapes the fake API answers with: rooms, the team, inspections, linen, lost property and the hotel's settings.
  • 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}).

housekeep-linen.tsx

The page: the sections in order.

Yükleniyor…
Şunlar için uygun
Hotel housekeeping teams: head housekeepers, supervisors and room attendants running a day of 100+ rooms.
Nasıl çalışır
Rooms change state live; drag picked rooms onto a person, they glide over and the rings fill as squares turn clean.
Nasıl kullanılır
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.