Naar de inhoud

Cedar OKRs

v1.0

A minimal OKR app for a whole company: objectives, key results and weekly check-ins, in quiet greys with a cedar-red accent.

$69

Pagina-adres: /

Ingebouwd

Wat je krijgt
  • Licht en donkerGebruikt de kleuren van je thema
  • Desktop, tablet en telefoonDe schermen waarvoor het is gebouwd
  • Pakketten…
  • Codegrootte…
  • Zuinig voor de batterij30 fps, rust als er niets beweegt
  • Pauzeert als het verborgen isBuiten beeld of ander tabblad
  • Minder bewegingRustig voor wie erom vraagt

Bij elke wijziging gecheckt

Beveiliging gecheckt op 3 dec
  • TypecheckTypeScript strict
  • Lint en opmaakESLint · Prettier
  • Tests en buildScreenshots in licht en donker
  • BeveiligingsauditGeen hoge of kritieke advisories
  • Leeftijd van pakkettenElke versie al 7+ dagen openbaar
  • CPU in rustOnder een halve core in rust, ≤ 30 fps

Code

okr-cedarReact
  • okr-cedar.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.
    • check-ins.tsxCheck-ins: this week's round. What is still due (riskiest first) and what came in, beside how many key results were checked in each of the last four weeks and each team's share this week; older check-ins under them.
    • company.tsxCompany: every objective of the quarter in one list, the company's first and each team's under them. Filters (team, status, search) live in the address; tick rows to move, reassign or delete them together.
    • my.tsxMy OKRs: the objectives I own or have a key result in, with what is still mine to check in this week and my last check-ins beside them; my team's objectives under them.
    • overview.tsxOverview: the quarter at a glance. Four numbers, then progress by team and the key results at risk on the left, the company objectives and the live feed of check-ins on the right.
    • reports.tsxReports: how the quarter is going week by week (a line), where each key result stands (on track to off track), and two tabs: progress by team as bars and the full at-risk list. Export CSV saves every key result.
    • settings.tsxSettings: the quarters (add the next one, remove an empty plan), the weekly check-in (due day, reminder, confidence scale), the teams' order and the default team for new objectives, then Appearance.
    • sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card over the backdrop, without the sidebar and top bar.
    • teams.tsxTeams: every team with its lead, people, objectives, progress and this week's check-ins; under it the alignment grid, where a tap ties a team to a company objective or unties it.
  • 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 theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
    • bottom-tabs.tsxThe phone's bottom tab bar: four pages and More (the sidebar sheet), under a blurred bar that sits over the page.
    • bulk-bar.tsxThe bar that rises under the list while objectives are picked: move them to another quarter, give them a new owner, or delete them, each with Undo.
    • checkin-sheet.tsxThe check-in sheet (?checkin=<kr>): drag the slider to the key result's new value, pick a confidence and add a note. As the value moves, its bar, its objective's ring and its team's bar follow one after another; Save writes it and the page does the same.
    • kpi-strip.tsxThe KPI strip: four numbers in one bordered box split by hairlines, each with a note in its status color and a smooth sparkline; numbers roll when they change.
    • objective-form.tsxThe objective form (?new=objective or ?edit=<id>) and the key result form (?kr=new:<objective> or ?kr=<id>), each in a modal dialog; a key result can be deleted from its form, with Undo.
    • objective-sheet.tsxThe objective sheet (?obj=<id>): its ring, owner and quarter, then three tabs: key results (check in, edit, add), its check-ins, and alignment (the company objective it rolls up to, or the team objectives under it).
    • okr-list.tsxAn objective as a card (ring, title, team and owner) with its key results under it, one line each: status, title, value toward target, a bar and Check in.
    • overview-panels.tsxThe Overview's four panels: progress by team (bars that re-sort as check-ins land), the key results most at risk, the company objectives with their rings, and the live feed of check-ins.
    • sidebar.tsxThe sidebar: logo, search with the command palette shortcut, the page links with a pill that glides to the current one, and the live switch at the foot; collapsed, only the icons show.
    • 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-form.tsxThe team form (?teamform=new or ?teamform=<id>) in a modal dialog: name, lead, headcount and the team's color.
    • team-sheet.tsxThe team sheet (?team=<id>): its progress, lead and size, then three tabs: its objectives, its members (add or remove), and the company objectives it is aligned to.
    • top-bar.tsxThe top bar: the menu button on tablets, where you are, the quarter switch every page follows, the live dot, search, the theme switch, New objective and the account menu.
  • 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.
        • 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).
    • 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.
    • 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 lists: rows marked data-flip glide from where they were to their new place when the list re-sorts, filters or a row arrives.
    • 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).
    • 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.
    • live-clock.tsxOne shared clock for everything live: it ticks only while something listens, the app is on screen and the tab is visible, and the sidebar's button pauses it.
    • live.tsThe app's live clock: every 7 seconds a teammate checks in (data/live.ts) and every page reloads in place, so bars, rings, counts and the feed move on their own.
    • 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.
    • okr.tsxThe small marks every page shares: status glyphs and chips, team dots, progress bars and rings that tween when a value changes, sparklines, and how KR values and times are written.
    • overlays.tsxEvery sheet and form over the page, each opened by the address: ?obj=, ?team=, ?checkin=, ?new=objective, ?edit=, ?kr= and ?teamform=. Back closes them.
    • read.tsuseRead("overview") or useRead("objective:o12"): one data/api.ts read through useApi, with one stable loader per key.
    • 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.
    • side-sheet.tsxThe side sheet: a detail panel that slides in from the end edge over the page (an objective, a team, a check-in); Escape, a tap outside or its close button closes it.
    • 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 fake API's memory: every quarter, team, objective, key result and check-in, and the changes the pages save. Swap these for your backend's tables.
    • live.tsTeammates at work: every few seconds someone checks in on one of their key results, through the same save a person makes.
    • now.tsThe demo's clock: today's real date at 10:40, plus the time since the page loaded, so "today" is always a busy working morning.
    • seed.tsThe pretend company: a 120-person SaaS business with nine teams, last quarter's scored OKRs, this quarter's live ones and next quarter's drafts.
    • types.tsThe shapes the fake API holds and answers with: quarters, people, teams, objectives, key results and their weekly check-ins.
    • views.tsWhat each page reads, worked out from data/db.ts: progress, status, the week's check-ins and the rows every list shows.
  • 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}).

okr-cedar.tsx

The page: the sections in order.

Laden…
Goed voor
SaaS teams that set quarterly OKRs and want one calm place to check in weekly and see which goals are slipping.
Hoe het werkt
Drag a key result's slider and its bar, its objective's ring and its team's bar move in turn; teammates' check-ins arrive live.
Hoe je het gebruikt
Edit words in locales/, colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.