Перейти к содержимому

Grants Meadow

v1.0

A minimal SaaS grant desk for a community foundation: applications, rubric reviews, awards with payment schedules, grantee reports and program budgets, in quiet greys with a leaf-green accent.

$69

Адрес страницы: /

Уже внутри

Что вы получаете
  • Светлая и тёмнаяБерёт цвета вашей темы
  • ПК, планшет и телефонЭкраны, для которых сделано
  • Пакеты…
  • Размер кода…
  • Бережёт батарею30 кадров/с, в покое простаивает
  • Пауза в фонеВне экрана или в другой вкладке
  • Меньше анимацииСпокойно для тех, кто просит

Проверяется при каждом изменении

Безопасность проверена 3 дек.
  • Проверка типовСтрогий TypeScript
  • Линтер и форматESLint · Prettier
  • Тесты и сборкаСкриншоты в светлой и тёмной теме
  • Аудит безопасностиНет уязвимостей высокого и критического уровня
  • Возраст пакетовКаждая версия опубликована 7+ дней назад
  • Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с

Код

grants-meadowReact
  • grants-meadow.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.
    • applications.tsxEvery application this cycle in one table: status tabs with counts, search, program and sort live in the address (#/applications?status=shortlist&sort=score), and New application opens the form.
    • awards.tsxAwards: the shortlist waiting for a decision, every grant made this cycle with its payments, the budget left by program and the next payments due.
    • overview.tsxThe overview: a greeting with the cycle's load, the KPI strip, your reviews due, the shortlist ready to decide, the budget left by program and the live feed of scores landing.
    • programs.tsxPrograms: one card each with the budget left this cycle on its meter, the applications, grants, average ask and score, its best-scored applications and its lead; New program and Edit open the form.
    • reports.tsxReports: grantee progress reports due and received. The weekly count of reports in, tabs for due, late, received and all (#/reports?view=late), each report's status to set in place, and New report.
    • reviews.tsxTo review: your queue on the start side (the one picked in the address, #/reviews?review=R-1042), the rubric form for it beside, and what you scored lately under the queue with a way to reopen it.
    • settings.tsxSettings in four tabs (?tab=): the rubric reviewers score against, the reviewers, the cycle dates, and Appearance (theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card, without the sidebar and top bar, over a very faint drawing of meadow stems along the bottom.
  • 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.
    • app-form.tsxThe application form in a dialog: a new one (?new=app, ⌘K New application) or an edit (?edit=GM-1042). A new one lands in this cycle as New and slides into the table.
    • app-sheet.tsxAn application in the side sheet (?app=GM-1042): its status to change in place, the score ring that sweeps as reviewer scores land, and tabs for the proposal and rubric, the reviews (assign, unassign) and the award.
    • app-table.tsxThe applications table: a status glyph, the organization and project, program, ask, the reviewers' initials and the score ring that sweeps as scores land. Rows glide to new places when the order changes, a pick of rows gets the bulk bar, and a row opens the application's sheet.
    • app-tabs.tsxTwo of the application sheet's tabs: Reviews (each reviewer's score and comment, or the day it is due; assign another, take one off) and Award (the grant and its payments, or the way to decide one).
    • appearance.tsxSettings → Appearance: the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
    • award-dialog.tsxDeciding a grant in a dialog (?decide=GM-1042, or ?change=AW-12 for one already made): the amount, how many payments from which day, and the program's meter showing what the award takes. On Award the row glides out of the shortlist and the program's budget meter drains.
    • award-sheet.tsxA grant in the side sheet (?award=AW-12): the amount, its payments to tick off as they go out, the grantee's progress reports with their status, and Change or Revoke.
    • 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.
    • budget-bars.tsxBudget by program: one meter per program showing what is left of its budget this cycle; an award drains it, the amount rolling down as the bar shortens.
    • bulk-bar.tsxThe bar that rises when applications are picked: how many, give them a reviewer, shortlist or decline them, delete them, or clear the pick.
    • decide-list.tsxThe shortlist, best score first: each application with its score ring, program, ask and an Award button that opens the decision (?decide=). An awarded row glides out; a newly shortlisted one slides in.
    • feed.tsxThe live feed: who did what, newest first (a score with its number, an award with its amount, a report in), the organization under it; a row that arrives (a reviewer's score landing) slides in at the top.
    • 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 and a sparkline grows a point.
    • program-form.tsxA program in a dialog: a new one (?program=new) or an edit (?program=P-YE) of its name, budget per cycle, colour, lead officer and focus, with Delete (only once it has no applications).
    • report-form.tsxA grantee progress report in a dialog: a new one (?report=new) for any grant, or an edit (?report=RP-12) of its kind, due day, status and note, with Delete.
    • score-form.tsxScoring one application against the rubric: 1 to 5 per criterion, your weighted score sweeping as you pick, the panel's average beside it (it moves when another reviewer's score lands), a comment, then Submit and on to the next.
    • settings-cycles.tsxSettings → Cycles: each grant cycle's name, stage and its three days (applications open, close, decisions), saved as you leave a field; add the next cycle or delete an old one (never the one showing).
    • settings-people.tsxSettings → Reviewers: the officers and volunteer reviewers with their role, how many reviews they take a cycle and how many are open; add one, change a role or load, remove one (their open reviews go back to unassigned).
    • settings-rubric.tsxSettings → Rubric: the criteria every reviewer scores 1 to 5, each with its hint and weight, in order (move up or down), with the weights' total checked against 100; changes save as you leave a field.
    • sidebar.tsxThe sidebar: the foundation, 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 narrow screens, where you are, the cycle switch (every page shows the cycle picked here), the live dot, New application, the theme switch 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.
        • wipe.tsThe wipe card style: each card uncovers from its bottom edge.
      • rowsWhat several sections share.
        • center.tsThe center row motion: the middle row on screen rises first, then the ripple spreads up and down.
      • 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 backdrop behind the app: Meadow is Solid, so it stays faded out on the still ground (the sign-in page draws its own faint meadow); with followBackground it paints your background instead.
    • bar-chart.tsxA small column chart: rounded bars that grow once as the page builds in, muted except the current one in the primary, a label under each and the value over each on hover or focus (the current one always).
    • command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page, an action or an application (by organization, project or id), 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 rows just arrived in a list (a live score, a new application), so they can slide in with data-fresh; the rows of the first paint never count.
    • glyphs.tsxThe small marks every page shares: the status glyphs (a ring that fills as an application moves on, like Linear), the score ring that sweeps to a rubric average, a budget meter, a program's colour dot and chip, a sparkline, and a stack of reviewer initials.
    • 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 score, reload) is the app's, passed to liveClock.
    • live.tsThe app's one live clock: every 6 seconds a reviewer scores an application or a grantee sends a report (data/live.ts) and every page reloads in place. 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 side sheet, the phone sheet and toasts play, timed by their moments in theme.ts.
    • motion.tsMotion helpers: the reduced-motion check, once and live.
    • overlays.tsxEverything that opens over the page from the address: an application or an award in the side sheet, and the dialogs (new or edit application, decide or change an award, a report, a program). Any page can open one by adding its query (?app=GM-1042).
    • read.tsOne read of the fake API by its key, through useApi: useRead("overview"), useRead<"app">(`app:${id}`). 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 (#/applications, #/applications?status=shortlist).
    • 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 (an application, an award), 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 (?app=GM-1042&dtab=reviews).
    • 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.
  • 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.
    • db.tsThe pretend database: the seeded foundation (data/seed.ts) kept in memory, and every change the app can make to it. data/api.ts wraps these as async calls; swap that file for your backend and this one goes.
    • live.tsThe live demo: reviewers scoring while you watch. Each call is one thing that happens (a volunteer submits their scores, a grantee sends in a report) through the same database the pages read; an application whose last review lands with a strong score joins the shortlist. Wire your backend's events here instead.
    • now.tsThe demo's "now": today at 10:40 plus the real time since the app loaded, so today is busy at any hour; every seeded date is set from it. Wire your backend and use the real time.
    • seed.tsThe pretend foundation: five programs, four program officers and eight volunteer reviewers, two grant cycles (Fall 2026 in reporting, Spring 2027 in review) with about 180 applications each, their reviews, awards, payments and grantee reports. Everything is made from fixed lists with a seeded random, so every visit sees the same foundation; dates are set from data/now.ts.
    • types.tsThe shapes of the pretend data: programs, people, cycles, the rubric, applications, reviews, awards with their payments, grantee reports and the activity feed. A real backend returns the same shapes from data/api.ts.
    • views.tsWhat each page reads, worked out from the pretend database: scores weighted by the rubric, budgets left per program, queues, payments and reports due. A real backend answers these same shapes from data/api.ts.
  • 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}).

grants-meadow.tsx

The page: the sections in order.

Загрузка…
Подходит для
Foundations and grant programs whose officers review a cycle of applications against a rubric and track awards and reports.
Как это работает
Reviewer scores land on their own and the rubric average sweeps; award a grant and the program's budget meter drains.
Как использовать
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.