İçeriğe geç

Dental Ivory

v1.0

A dental practice app in ivory and mint: live chairs, a drag-to-move diary, a tooth chart that lifts and turns, plans, recalls and takings.

$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

dental-ivoryReact
  • dental-ivory.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.
    • diary.tsxThe Diary: a week strip to pick the day, chair use and no-shows, then the day's board by chair or by clinician, where a visit is dragged to a new time or chair and opened with a click.
    • overview.tsxThe Overview: today's chairs as the hero with live timers, the waiting room, takings, recalls, visits, up next, open plans and today's mix, in one bento grid that reloads in place as the day moves.
    • patient.tsxOne patient: their name and medical alerts up top, then tabs: Profile (contact, medical notes, next visit, balance, recall), Chart (the tooth chart and the open plan), Plans (every plan) and History (visits and payments).
    • patients.tsxPatients: how many, who carries a medical alert, who owes and who is due, then the list with a search and filters; a row opens the patient.
    • payments.tsxPayments: today's takings as the hero (they tick up as visits end), this month and what patients still owe, then the last 30 days of payments, filtered by method, with refunds and voids that can be undone.
    • plans.tsxTreatment plans across the practice: what is proposed and waiting for a yes, what was accepted, how often patients say yes and the treatments still to do, then every plan, filtered by status, opening in place to its steps.
    • recalls.tsxRecalls: who is due a checkup in the next six weeks and who is overdue, one button that reminds everyone not yet reminded (the ring fills as each reminder goes), and the list to remind, book, snooze or mark done one by one.
    • reports.tsxReports over the last week or month of open days: takings by day as the hero, visits and the average per visit, how busy each chair was, the mix of treatments and what each clinician brought in.
    • settings.tsxSettings: the practice (name, phone, opening hours), recalls (the interval for new patients and when reminders go), the price list plan steps are charged at, the team, and Appearance (style, theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card, and beside it (wider screens) a mint panel with a row of teeth and the practice's promise, over the backdrop, without the rail 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.
    • 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).
    • appt-dialog.tsxThe appointment dialog, opened from anywhere (New appointment, a diary block, a recall's Book): patient, day, time, length, visit, chair and clinician, checked against the chair's other visits; an open visit also gets its front-desk steps (check in, call, finish, no-show, cancel).
    • diary-board.tsxThe diary board: one column per chair (or per clinician), the day from opening to closing with the lunch hour shaded, a block per visit coloured by where it is now, a live now line, and drag (or Alt + arrows) to move a visit.
    • overview-tiles.tsxThe Overview's tiles: the chairs hero with live timers, the waiting room, today's takings, recalls due, today's visits, up next, open plans and today's mix.
    • patient-chart.tsxThe patient's Chart tab: the tooth chart as the hero, the open plan's total counting up as treatments are added, and the plan's steps ready to accept.
    • patient-dialog.tsxThe patient dialog, for a new patient or editing one: name, birth date, phone, email, their dentist, medical alerts and notes, with the practice's own error lines.
    • payment-dialog.tsxThe take-payment dialog: who pays, how much (their balance filled in) and how, card, cash or insurance; the payment lands in today's takings and lowers their balance.
    • plan-steps.tsxA treatment plan's steps in order: tooth, treatment, faces and fee, with the plan's status; a proposed plan reorders its steps and is accepted or declined, an accepted one ticks steps off as they are done.
    • rail.tsxThe left rail (an icon over each page's name, the current one on an accent pill that glides from page to page) and, on phones, the framed bottom bar with a More sheet for the rest.
    • 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.
    • team-settings.tsxSettings → Team: the dentists and hygienists the diary books, added or renamed in a small dialog and removed after a confirm (refused while they still have visits ahead).
    • tooth-chart.tsxThe tooth chart: both jaws as the dentist sees them, each tooth drawn with what is on it, a legend in words; a click lifts the tooth and opens it up close (tooth-focus.tsx), and a saved treatment recolours it with a small pop.
    • tooth-focus.tsxThe picked tooth up close: a card lifts out of the chart from the tooth's own place and turns over to show its five faces (pick the ones the work touches), beside what is on the tooth now and the treatments to add, with the fee it adds to the plan.
    • top-bar.tsxThe top bar: the practice's mark, today's date and the live practice clock, search, New appointment, the theme switch and the account menu; once the page scrolls it 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.
        • mask.tsThe mask row motion: each part of a row on screen (its children) slides up from behind its own mask.
      • 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.
    • charts.tsxThe small charts the tiles hold: a ring, a smooth line with a soft area under it, rounded bars (muted, the current one in the primary) and a donut; each draws in with the page (data-build) and follows your Chart Studio (data-chart).
    • 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-diary.tsDrag a visit in the diary to another column (chair or clinician) and time: it lifts under the press point, follows the pointer 1:1, a slot shows where it will land (snapped to 5 minutes), and on release it glides into that exact slot; Escape puts it back. Touch starts after a short press so a swipe still scrolls.
    • 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).
    • live.tsOne shared clock for every live tile (chair timers, the waiting room, the takings): it ticks once a second, only while the tab shows and only for tiles on screen; with reduced motion the numbers still update but nothing moves.
    • 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.
    • tile.tsxThe bento parts every page is built from: the grid, the one tile look (the hero tinted with the primary), a status chip, and the FLIP glide that moves tiles and rows to their new places when a filter or layout changes.
    • toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
    • tooth-shape.tsxOne tooth drawn as a crown and its roots (molars two roots, the rest one), shaped by its kind and turned over for the lower jaw, filled by what is on it: existing work, a planned step, decay, watch or missing.
    • 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-chart.tsThe fake API for tooth charts and treatment plans: what each tooth has, adding a treatment to the patient's open plan (or a finding straight onto the chart), and accepting, declining, reordering and finishing plan steps.
    • api-reports.tsThe fake API for Reports: takings by day, how busy each chair was, what was done and what each clinician brought in, over the last week or month of open days.
    • api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only (the tooth chart and plans are in api-chart.ts, the reports in api-reports.ts).
    • clock.tsThe practice clock for the demo: today's real date with the time pinned to 10:40 when the app opens, then running in real time, so today always has a busy morning behind it and an afternoon ahead. Swap nowMinutes for the real clock when you wire your backend.
    • db.tsThe pretend database the fake API reads and writes, kept in memory for the visit, and the rules every page shares: where a visit is right now (booked, waiting, in the chair, done) and the payment a visit leaves when it ends.
    • net.tsThe pretend network every API call goes through: a short wait like a real call while Slow network is on, and a failure on every load while Show error state is on. Delete both when you wire your backend.
    • people.tsThe practice's people: four dentists and two hygienists, three chairs, and forty patients with their medical alerts, last checkup and recall interval.
    • seed.tsThe pretend practice data: today's diary by chair, five weeks behind and three ahead filled the way a busy practice fills them, the payments those visits brought in, each patient's tooth chart and the treatment plans on file.
    • teeth.tsThe tooth chart's vocabulary: the 32 adult teeth by FDI number, their faces, what a tooth can have (a condition or a treatment), the visit types the diary books and the default price list.
  • 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}).

dental-ivory.tsx

The page: the sections in order.

Yükleniyor…
Şunlar için uygun
Dental practices with a few chairs: the front desk, dentists and hygienists sharing one diary, charts and the day's takings.
Nasıl çalışır
Chair timers and the waiting room run live; click a tooth, it turns to its faces, pick a treatment and the plan's cost counts up.
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.