Staffing Quillwort
v1.0A minimal SaaS resourcing app for a design and engineering agency: who works on which project each week on a heatmap you drag to rebook, staffing requests filled from suggestions and a utilization forecast, in paper neutrals with one teal accent.
כתובת העמוד: /
מובנה
מה מקבלים- בהיר וכההמשתמש בצבעי ערכת העיצוב שלכם
- מחשב, טאבלט וטלפוןהמסכים שהוא נבנה בשבילם
- חבילות…
- גודל הקוד…
- חסכוני בסוללה30 fps, במנוחה כשהכול דומם
- נעצר כשהוא מוסתרמחוץ למסך או בלשונית אחרת
- הפחתת תנועהרגוע למי שמבקש
נבדק בכל שינוי
אבטחה נבדקה ב-3 בדצמ׳- בדיקת טיפוסיםTypeScript strict
- Lint ועיצוב קודESLint · Prettier
- בדיקות ובנייהצילומי מסך בהיר וכהה
- בדיקת אבטחהללא התראות חמורות או קריטיות
- גיל החבילותכל גרסה פומבית 7 ימים לפחות
- מעבד במנוחהפחות מחצי ליבה במנוחה, ≤ 30 fps
קוד
staffing-quillwortReact
- staffing-quillwort.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.
- forecast.tsxThe forecast: studio utilization four weeks back to eleven ahead against the ideal band, each role's load week by week, the hiring signals they add up to, and the bench (who is free for most of the next month).
- overview.tsxThe overview: a greeting with the week, the KPI strip (utilization, bench, over-booked, open requests), the eight-week heat strip by role, who is over-booked, upcoming time off and the live feed.
- people.tsxPeople: everyone in the studio, filtered by role (?role=) and sorted by name, load or capacity (?sort=); pick several to set their capacity or remove them, open one for their weeks and time off.
- projects.tsxProjects: every client project grouped by status (or one status, ?status=tentative), each with its dates, team and how much of its budget is booked; open one for its team and status.
- requests.tsxRequests: what project leads have asked for, by status (?tab=open, filled, closed). New ones arrive live and slide in at the top; Find people opens the request with its best fits.
- schedule.tsxThe schedule: who is booked on what, week by week. Filter by role (?role=frontend) or find a person; the legend reads the cell colors; the grid lets you drag bookings across the weeks.
- settings.tsxSettings in three tabs (?tab=): the studio's roles and their targets, the working week and ideal band, and Appearance (theme, accent and language).
- sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card, and beside it on wide screens a still slice of the schedule heatmap with the app's promise, without the sidebar and top bar.
- 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.
- allocation-form.tsxAdd allocation in a dialog (?new=allocation, the top bar's button, ⌘K; ?for=P-12 picks the person): who, on what, from which week, for how long and how many hours a week. It lands in the schedule and the feed.
- appearance.tsxSettings → Appearance: the theme (System, Dark or Light), each shown as a small preview, the accent (one of five swatches) and the language (System or one of locales/list.ts).
- bottom-tabs.tsxThe phone's tab bar: the four pages used most, and More for the rest (the sidebar in a sheet). It sticks to the bottom of the screen under the page.
- feed.tsxThe live feed: who changed the plan and how, newest first, on two lines (the change, then its detail muted); a row that arrives (a teammate's edit, a new request) slides in at the top.
- heat-strip.tsxThe overview's heat strip: each role's utilization for the eight weeks shown, one cell a week colored by load (room, ideal, over), the studio as a whole in the last row. A cell opens that role in the schedule.
- kpi-strip.tsxThe KPI strip: four numbers in one bordered box, each with its line under it and a sparkline or a progress bar; a changed number rolls to its new value.
- overview-lists.tsxThe overview's two short lists: who is over-booked this week (booked against capacity, worst first) and the time off coming up in the next three weeks. Each row opens the person.
- people-table.tsxThe people table: a row each (name, role, skills, capacity, this week's load, next time off), a checkbox to pick several for the bulk bar, and rows that glide to their new places when the sort or filter changes.
- person-form.tsxThe person form in a dialog: add someone (?new=person, ⌘K Add person) or edit them (?editPerson=P-12): name, role, level, weekly hours, skills and city.
- person-sheet.tsxA person in the side sheet (?person=P-12): who they are, their eight weeks as heat cells, what they are booked on (remove one, with Undo), and their time off (?stab=off) to add or remove.
- project-form.tsxThe project form in a dialog: a new project (?new=project, ⌘K New project) or an edit (?editProject=J-4): name, client, code, budget hours, weeks and status.
- project-sheet.tsxA project in the side sheet (?project=J-4): its budget against what is booked, its status to change, and who is on it for which weeks; edit or delete it from here.
- request-form.tsxThe new staffing request form in a dialog (?new=request, ⌘K New staffing request): the project, the role and skills it needs, hours a week, from which week and for how long. It lands at the top of Requests.
- request-sheet.tsxA staffing request in the side sheet (?request=R-101): what the lead asked for and the five people who fit it best (same role, by skills and free hours). Assign books that person on the project for the request's weeks, with Undo; close or reopen the request here too.
- schedule-grid.tsxThe schedule heatmap: a head with the eight weeks and the studio's load, then each role as a group (its load per week) with its people under it. It scrolls sideways inside its panel on narrow screens, the names staying put.
- schedule-row.tsxOne person in the schedule: their name and booked total, one heat cell a week (booked hours, colored by load), and when opened a lane per project with its bar. While a bar is dragged the cells recolor week by week and the total rolls; a teammate's live edit flashes the cells it touched.
- settings-roles.tsxSettings → Roles: each role with its people and its utilization target, the next four weeks' load beside it; add or edit one in a dialog, delete one that has no people left.
- settings-week.tsxSettings → Working week: hours a day and days a week (a full-time week's capacity) and the ideal band of utilization that colors every heat cell.
- sidebar.tsxThe sidebar: the studio, search with the ⌘K shortcut, the pages in two groups with their counts and a pill that glides to the current one, Settings, and the live strap with its pause.
- 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 mid screens, where you are, the eight weeks shown with arrows to move them, the live dot, search, the theme switch, Add allocation and the account menu. It frosts only once the page scrolls under it.
- 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.
- stack.tsThe stack row motion, a drawer: the rows on screen start stacked under the first and spread to their places together.
- 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; small in rows.
- backdrop.tsxThe backdrop behind the app: Quillwort is Solid, so it stays faded out on the still ground; with followBackground it paints your background instead.
- 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.
- flip.tsFLIP for a list that re-sorts or filters: after each change every row that stayed glides from where it was to where it is now. Rows carry data-flip="<id>"; positions are measured inside the list, so a page scroll never reads as a move.
- 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.
- fresh.tsWhich ids in a list just arrived (a live request, a new feed row), so they can slide in once; the ids on the first draw count as seen.
- 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).
- live-clock.tsxOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (bring in a teammate's edit, reload) is the app's, passed to liveClock.
- live.tsThe app's one live clock: every 8 seconds a teammate does something (data/live.ts) and every page reloads in place; every 30 the "4 min ago" times redraw. It rests while nothing live is on screen, the tab is hidden or live is paused.
- 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.
- overlays.tsxEverything that opens over the page from the address: a person, project or request in the side sheet, and the forms (new allocation, person, project or request, and their edits). Any page can open one by adding its query (?person=P-12).
- plan.tsThe plan's arithmetic every page shares: a person's capacity in a week (time off taken out), what they are booked for, how full that is (off, none, under, ideal, over), utilization by role and week, the bench, and the people who best fit a staffing request.
- read.tsOne read of the fake API by its key, through useApi: useRead("plan"), useRead("feed"). Each key keeps one load function, so a page that mounts again finds its answer.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- schedule-bar.tsxOne allocation as a bar across its weeks in a person's lane: drag its middle to move it, its ends to change its weeks, or focus it and use the arrow keys. Weeks outside the eight shown run off the edge.
- 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.
- side-sheet.tsxThe detail sheet: a modal panel that slides in from the end edge over the page (a person, a project, a request), with tabs whose underline glides to the one picked. Escape, a tap outside or its close button slides it away; the address keeps what it shows (?person=P-12&stab=weeks).
- 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-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.
- use-drag-bar.tsDragging an allocation bar across the weeks: the bar starts under the press point and follows the pointer 1:1 (its middle moves it, its ends resize it), every week it crosses is reported so the heat cells recolor live, and on release it glides into the week it snapped to. A mouse or pen drags at once; a finger holds still for a moment first, so a swipe still scrolls. Escape puts it back.
- util-chart.tsxThe forecast's utilization chart: one point a week on a fixed 0–130% scale, the ideal band shaded behind, a soft area under the line, and this week marked. The line draws itself in, and live changes roll it to its new shape.
- 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. Noor runs resourcing at the studio.
- api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- db.tsThe pretend database: the plan in memory, and every change the app can make to it (people, time off, projects, allocations, requests, roles, the working week). Each change also writes a feed row. data/api.ts wraps these as calls.
- live.tsThe live studio: what teammates do while the app is open, one step each time the live clock asks (parts/live.ts). Two in three steps a project lead nudges someone's weeks (their cells flash); the third brings in a new staffing request, or fills one when many are open. Delete this file when your backend pushes real changes.
- seed-people.tsThe pretend studio: seven roles and the sixty people in them, with their level, weekly hours, city and skills. Replace with your own team when you wire a backend.
- seed-plan.tsThe pretend book of work: 25 client projects, the weekly allocations that staff them (made once from a fixed seed, so every visit sees the same plan), staffing requests, time off and the first feed rows.
- types.tsThe shapes the fake API answers with: people, roles, projects, the weekly allocations that tie them, staffing requests, time off and the live feed. Weeks are numbers counted from this week (0), so -1 is last week.
- 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}).
staffing-quillwort.tsx
The page: the sections in order.
טוען…
- מתאים ל
- Studios and agencies who plan people across projects week by week and want to see who is free, booked or over-booked.
- איך זה עובד
- Drag a project bar to new weeks: the heat cells recolor live under it, the person's total rolls and teammates' edits flash in.
- איך משתמשים
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.