Tutor Abacus
v1.0A puffy claymorphism app for an after-school maths and reading tutoring centre: a ring-binder sidebar, a drag-to-reschedule week, and a clay abacus where each rod is a skill.
Seitenadresse: /
Eingebaut
Das bekommst du- Hell und dunkelNutzt deine Theme-Farben
- Desktop, Tablet und HandyDie Bildschirme, für die es gebaut ist
- Pakete…
- Codegröße…
- Schont den Akku30 fps, ruht im Stillstand
- Pausiert, wenn verdecktAußerhalb des Bildschirms oder anderer Tab
- Weniger BewegungRuhig für alle, die es wollen
Bei jeder Änderung geprüft
Sicherheit geprüft am 3. Dez.- TypprüfungTypeScript strict
- Lint und FormatESLint · Prettier
- Tests und BuildScreenshots in Hell und Dunkel
- Sicherheits-AuditKeine hohen oder kritischen Hinweise
- PaketalterJede Version seit 7+ Tagen öffentlich
- CPU im LeerlaufUnter einem halben Kern in Ruhe, ≤ 30 fps
Code
tutor-abacusReact
- tutor-abacus.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.
- billing.tsxBilling: money tiles (owed, overdue, paid this term, packs running low), then the invoices with a status filter (mark paid, delete, add) or the lesson packs (sell a new one).
- overview.tsxThe Overview: today's sessions and the numbers that need a look, the skills abacus for one student, who needs attention, the skills board, sessions per week and worksheets due.
- progress.tsxProgress: per subject, the board of every student by skill (pick one to set their levels on the abacus), the term trend, and the assessments log with add and delete.
- reports.tsxReports: the students with whether this term's parent report went out (filter to the unsent), and the picked student's report as the parent will see it, with the tutor's note to edit, save or send.
- schedule.tsxThe schedule: pick a day, see it by tutor or by room, drag sessions to a new lane or hour, and add, edit or delete them in the session dialog.
- settings.tsxThe settings page: the centre (name, session length, rooms to add or remove) and Appearance (style, theme and language).
- sign-in.tsxThe sign-in page (#/sign-in): a clay card with the form beside a little abacus to play with while you remember your password, over the backdrop, without the sidebar and top bar.
- students.tsxStudents: the list with subject, attention and grade filters and a search (all kept in the address, so Back returns to them), each card opening the student's page; plus the add student dialog.
- tutors.tsxTutors: a card per tutor (subjects, this week's hours and students) with a subject filter, each opening the tutor's page; plus the add tutor dialog.
- worksheets.tsxWorksheets: the library (subject and kind filters, drawn thumbnails, edit, assign and delete) and the Assigned tab of who has what due, ticked off as it comes back.
- 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).
- assessment-log.tsxThe assessments of one subject: a short form to log a new check (student, skill, score, note) and the latest checks, each with a delete that can be undone.
- billing-parts.tsxBilling pieces: the new invoice form in a dialog, and the lesson packs list (sessions left as beads, sell a 10 or 20 pack).
- overview-cards.tsxThe Overview's cards: today's sessions, the four number tiles, the abacus hero, students needing attention, the skills board, sessions per week and worksheets due.
- session-dialog.tsxThe session form in a dialog: subject, tutor, room, day and hour, one to four students (1:1 or a small group) and a note; it checks clashes and seats, saves through the API and deletes after a confirm.
- sidebar.tsxThe binder: the logo, search with the command palette shortcut, and the notebook tabs, each a pastel clay pill; the current one slides out toward the page and puffs up.
- 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.
- student-detail.tsxOne student's page: a clay header with Back (to the list as it was filtered), edit and delete, then tabs for the profile, the skills abacus, sessions, worksheets and billing.
- student-dialog.tsxThe student form in a dialog: name, grade, subjects with a tutor each, the goal and the parent's contact; it checks the fields and saves through the API.
- student-tabs.tsxThree tabs of a student's page: the weekly sessions (mark came or missed), the worksheets set (tick them done) and billing (the lesson pack left, sell a new one, the invoices).
- top-bar.tsxThe top bar on the page sheet: the menu button on narrow screens, where you are, search, the theme switch and the account menu, frosting itself once the page scrolls.
- tutor-detail.tsxOne tutor's page (availability grid to toggle, the week's sessions, pay with seven weeks of hours) and the tutor form dialog for add and edit.
- week-grid.tsxOne day of the schedule as a grid of lanes (tutors or rooms) by hour slots: sessions are clay blobs you drag to a new lane or hour (they lift under the pointer and glide into place), or move with Alt and the arrow keys.
- worksheet-dialogs.tsxThe worksheet pieces: a drawn page thumbnail per kind, the create and edit form (title, subject, skill, level, pages, kind) and the assign form (students and a due date).
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- turn.tsThe turn card style: cards swing in like pages, hinged on their left edge.
- rowsWhat several sections share.
- flip.tsThe flip row motion: each row on screen tilts up from its bottom edge, 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).
- abacus.tsxThe clay abacus: one rod per skill, ten beads per rod; drag beads across (or use the arrow keys) to set a student's level, they click into place with a springy settle and the rod glows when the goal is reached.
- 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 on a round clay bead, its tone picked from the name so each person keeps one color.
- backdrop.tsxThe binder cover behind the page: a dotted notebook grid and a few big clay beads with chalk sums, faded out in Solid; with followBackground it paints your background instead.
- charts.tsxThe charts, drawn flat inside their clay cards: column bars, level bars with a goal mark, and lines with a soft area.
- 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 chunky 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).
- lookups.tsThe people and rooms most pages name: loaded once through the API, with a find by id and one answer for loading and errors.
- 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).
- save.tsOne way to save from a click: run the API call, reload what it changed, say so in a toast (with Undo when given) and say so too when it fails.
- 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 pieces every page is made of: a clay card, the page heading, pill tabs, subject and flag chips and the delete confirm.
- 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.
- seed-work.tsThe pretend week and paperwork: sessions, assessments, worksheets and who has them, packs, invoices and term reports.
- seed.tsThe pretend centre: subjects and skills, tutors, rooms and students, in the shapes the pages need.
- 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}).
tutor-abacus.tsx
The page: the sections in order.
Lädt…
- Gut für
- Small tutoring centres, learning clubs and after-school programs that track sessions, skill levels, worksheets and lesson packs.
- So funktioniert es
- Drag beads along a skill's rod to set a level; they click in with a spring and the rod glows at its goal. Drag sessions to reschedule.
- So nutzt du es
- Edit words in content.ts and locales/, colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.