Success Lichen
v1.0A calm customer success workspace in sage and moss: health dials that sweep to each score, risk lanes you drag renewals between, and signals streaming in live.
نشانی صفحه: /
داخلی
آنچه میگیرید- روشن و تیرهاز رنگهای تم شما استفاده میکند
- دسکتاپ، تبلت، و گوشیصفحهنمایشهایی که برایشان ساخته شده
- پکیجها…
- حجم کد…
- کممصرف برای باتری30 فریم بر ثانیه، در حالت ساکن متوقف
- در حالت پنهان متوقف میشودخارج از صفحه یا تب دیگر
- کاهش حرکتآرام برای کسانی که بخواهند
با هر تغییر بررسی میشود
بررسی امنیتی 3 دسامبر- بررسی نوعTypeScript strict
- لینت و قالببندیESLint · Prettier
- تست و بیلدتصاویر روشن و تیره
- ممیزی امنیتیبدون هشدار بالا یا بحرانی
- قدمت پکیجهر نسخه حداقل 7 روز عمومی بوده
- پردازنده در حالت بیکارکمتر از نیم هسته در حالت ساکن، حداکثر 30 فریم بر ثانیه
کد
success-lichenReact
- success-lichen.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.
- accounts.tsxAccounts: the whole book in one table — search, filter by health band or owner (kept in the address, so Back keeps them), sort any column with the rows gliding to their places, pick rows for bulk changes, open one in the side sheet.
- overview.tsxThe Overview: the key numbers, how health spreads across the book (with the average's dial), the renewals coming up and the live feed of signals and touchpoints.
- playbooks.tsxPlaybooks: every playbook with its steps and how far its runs are, and the picked one (#/playbooks/pb-rescue) to edit — its steps, the accounts running it with their progress, assign, edit and delete.
- renewals.tsxRenewals: the forecast for the next 60 days, the risk lanes (drag an account between Committed, On track, Watch and At risk; the cards slide aside and the moved one glides into its slot), and the 12-month pipeline.
- reports.tsxReports: gross and net revenue retention over 12 months, the quarterly ARR bridge (expansion, contraction, churn), where at-risk ARR sits by segment and weakest signal, and each CSM's book. Export CSV downloads the bridge and the books.
- settings.tsxSettings: General (theme, language, live signals), Health score (how much usage, support and NPS count, and where the risk bands start, previewed on a dial as you drag) and Team (each CSM's capacity).
- sign-in.tsxThe sign-in page (#/sign-in): the form on one card, and on wide screens a quiet preview beside it (a health dial sweeping to its score over the moss ground), without the sidebar and top bar.
- touchpoints.tsxTouchpoints: every call, email, meeting and note on one timeline grouped by day, filtered by kind, teammate or words; this week's counts beside it. New ones from teammates stream in at the top.
- 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.
- account-runs.tsxAn account's playbooks: each run with its progress and steps to tick off, a way to stop it, and a picker to start another.
- account-sheet.tsxOne account in a side sheet over the page (#/accounts/ACC-1040?tab=health): its health dial that sweeps to the score, the score's parts and trend, its touchpoints, playbooks and details, with edit and delete.
- appearance.tsxSettings → General: the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
- bulk-bar.tsxThe bar that floats up while accounts are picked: give them an owner or a stage, start a playbook on them, or delete them (with Undo).
- feed.tsxThe live feed and the touchpoint rows: each event with its kind's icon, the account, who and when; an event that streams in while you look slides into place with a short wash.
- forms.tsxThe create and edit forms (account, touchpoint, playbook) in dialogs, opened by the address (?new=account, ?edit=touch&id=TP-9001), so Back closes them; each checks its fields itself and says what is missing under the field.
- kpi-strip.tsxThe Overview's key numbers in one strip: ARR, at-risk ARR, renewals this quarter and net retention, each with its trend line and what changed.
- playbook-steps.tsxA playbook's steps to edit in place (add, move up or down, remove), and the dialog that starts it on accounts picked from a searchable list.
- sidebar.tsxThe sidebar: logo, search with the command palette shortcut, the page links in two groups with their live counts, one pill that glides to the page you are on, and the stream's status at the foot.
- 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.
- tab-bar.tsxThe phone's bottom tabs: the four pages a CSM opens most, and More for the rest (the sidebar in a sheet).
- top-bar.tsxThe top bar: the logo on phones, where you are, the page's one main action, search on narrow screens, the theme switch and the account menu.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- spotlight.tsThe spotlight card style: the page shows dim, then each card lights up in turn, 50ms apart, with a brief primary edge.
- rowsWhat several sections share.
- odo.tsxThe odo row motion: each row on screen rises 6px from faint while every number rolls digit by digit to its value.
- 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: Lichen is Solid, so its soft two-light gradient stays faded out behind the opaque panels; with followBackground it paints your background instead.
- charts.tsxThe charts: sparklines for the KPI strip and rows, rounded bars with one highlighted, and a smooth line chart with a soft area and a hover readout. Every series reads the chart tokens, so presets and Chart Studio recolor them.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page, an account or an action, then Enter.
- dial.tsxHealth dials: a score arc that sweeps to its value when it shows and again whenever the score changes, its colour shifting from red through amber to the primary as the score climbs.
- 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-lanes.tsDrag account cards between the Renewals risk lanes: mouse and pen at once, touch after a short press (a swipe still scrolls), the lifted copy kept under the grab point, the others sliding aside (FLIP), the page and the board scrolling near their edges, Escape to cancel, and a keyboard path (Space lifts, arrows move, Space drops).
- 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.tsThe live stream: every few seconds one usage signal or teammate touchpoint comes in (data/api.ts pulse) and every page loaded this visit reloads in place. Paused while the tab is hidden, the app is off screen or Live signals is off.
- 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.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- ui.tsxThe small parts the pages share: tabs whose pill glides to the picked one, a checkbox, a live dot that pings once per new item, a meter, and the FLIP glide that moves a list's rows to their new places.
- 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.
- book.tsThe book of business as the API holds it (the pretend server's state) and every view the pages read, worked out from it: health from the score weights, risk bands, the renewal forecast, retention and the live feed.
- seed.tsThe pretend book of business: 280 B2B accounts on yearly renewals, the six-person CS team, touchpoints from the last three weeks and the playbooks being run. Made once from a fixed seed, around a demo "now" (today at a busy hour), so every visit tells the same story.
- 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}).
success-lichen.tsx
The page: the sections in order.
در حال بارگذاری…
- مناسب برای
- Customer success teams running a book of B2B accounts on yearly renewals: health, renewals, playbooks and retention in one place.
- چگونه کار میکند
- Health dials sweep to each score and shift colour as it moves, cards glide between risk lanes, and usage signals stream into the feed.
- نحوه استفاده
- Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.