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

Flags Tamarisk

v1.0

A feature-flag console for a product team, calm zinc with a coral-pink accent: drag a rollout and watch a 100-dot user grid light up.

$69

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

Уже внутри

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

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

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

Код

flags-tamariskReact
  • flags-tamarisk.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.
    • audit.tsxThe audit log: this week's numbers, the changes waiting for approval, then every change by day (filter by kind, search), each with its diff and Revert; teammates' changes stream in on top.
    • environments.tsxThe environments page: a card per environment (flags on, evaluations a second, the last change), the shown one's evaluations over 24 hours, its API keys, and copying flags between environments.
    • experiments.tsxThe experiments page: status tabs, a row per experiment with its flag, goal, age, leading variant's lift and how sure that is; a row opens its sheet (?open=), New experiment opens the form (?new=1).
    • flags.tsxThe flags page: search, state tabs with counts, the sortable list for the environment shown, bulk actions on picked flags, a flag's side sheet (?open=) and the New flag dialog (?new=1).
    • overview.tsxThe overview: the KPI strip, the rollout panel with its dot grid, live evaluations, recent changes, running experiments and stale flags, for the environment shown.
    • segments.tsxThe segments page: a card per segment with its rules, how many users it reaches and the flags that target it; a card opens its sheet (?open=), New segment opens an empty one (?new=1).
    • settings.tsxThe settings page: Team, Approvals and Appearance (theme and language) as tabs kept in the address (?tab=).
    • 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.
  • 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).
    • audit-parts.tsxThe audit log's parts: the changes waiting for approval (approve or reject), and one change's row with its full before/after diff and Revert.
    • bottom-tabs.tsxThe phone's tab bar, stuck to the bottom: the four pages used most and More, which opens the full menu.
    • change-line.tsxOne change as a line: who (initials), what they did to which target, in which environment, the first field's before → after, and when. The overview feed and the audit log share it.
    • env-parts.tsxThe environments page's panels: the API keys (masked until shown, copy, rotate) and copying flags from one environment to another (only the ones that differ, each picked).
    • experiment-form.tsxThe New experiment dialog: name, hypothesis, the flag it runs on, the goal metric, its variants (the first is control) and their traffic split, saved as a draft.
    • experiment-sheet.tsxAn experiment's side sheet: its hypothesis, goal and flag, the traffic split, results per variant (visitors, conversion, lift and confidence), the leader's lift by day, and start, stop, ship a winner or delete.
    • flag-form.tsxThe New flag dialog: key, name, description, type (boolean or multivariate with its variants), owner and tags, checked as you send; a new flag starts on in Development only.
    • flag-sheet.tsxA flag's side sheet: its key and state, then Targeting (switches, rollout, segments), Variants, Details (name, owner, tags, stale, archive, delete) and History (every change to it).
    • flag-table.tsxThe flags list: a row per flag with its pick box, state glyph, key and name, the switch for the environment shown, its rollout, owner and last change; sortable headers, shift-click ranges, Show more, and the bar for picked flags.
    • flag-targeting.tsxA flag sheet's Targeting and Variants tabs: each environment's switch, the rollout with its dot grid for the one picked, the segments that get it, and a multivariate flag's shares.
    • overview-live.tsxThe overview's live panels: evaluations a second as a line that ticks along with the latest evaluations streaming in under it, and the recent changes feed, where a teammate's change slides in on top.
    • overview-panels.tsxThe overview's panels: the KPI strip, the rollout panel (pick a flag, drag its rollout over the dot grid, kill it), running experiments and stale flags to clean up.
    • rollout-control.tsxOne flag's rollout in one environment: the 100-dot grid, the percent, a slider that lights the dots as you drag and saves when you let go, about how many users a day that reaches, and the kill switch.
    • segment-sheet.tsxA segment's side sheet (new or edit): name, description, match all or any rule, the rules on country, plan, app version or platform, a member preview that updates as you edit, the flags that target it, save and delete.
    • settings-parts.tsxSettings → Team (members, their roles, invite and remove) and Settings → Approvals (production changes wait for a second person, admins' own changes, when a flag turns stale).
    • sidebar.tsxThe sidebar: logo, the environment switcher, search with the command palette shortcut, and the page links with their counts under a marker that glides to the current page; 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.
    • top-bar.tsxThe top bar: the menu button on narrow screens, where you are (environment › page), New flag, search, 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.
        • wipe.tsThe wipe card style: each card uncovers from its bottom edge.
      • rowsWhat several sections share.
        • turn.tsThe turn row motion: each row on screen swings in from behind, hinged on its left edge, from faint (its free edge never comes forward, so it never widens the page).
      • 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: hidden in this solid, minimal app (--flags-tamarisk-glass is 0); 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, an action or a flag (open it, or turn it on or off in the environment shown), then Enter.
    • confirm.tsxA confirm for what can't be undone (delete, rotate, remove): the question, Cancel, and the action in red.
    • 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.
    • dot-grid.tsxThe rollout's picture: 100 users as a 10 × 10 grid of dots, one lit in the accent for each percent that gets the flag. Users sit in fixed buckets (like a real SDK hashing user ids), so dragging the rollout lights them one by one across the grid; the kill switch puts them all out in one diagonal sweep.
    • env.tsThe environment the app shows (the switcher at the top of the sidebar): production at first, kept while you move between pages.
    • 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).
    • 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.
    • list-view.tsWhat a list does with its rows, whatever it looks like: the sort kept in the address (?sort=name&dir=asc), picked rows with shift-click ranges, pick all shown, and Show more.
    • 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 (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
    • live.tsxThe one shared live clock (10 ticks a second, drawing at most twice a second) and the hook a live panel uses: it listens only while the panel is on screen, so the clock stops when nothing live is in view or the tab is hidden.
    • 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.
    • side-sheet.tsxThe side sheet a flag, segment or experiment opens in: a modal panel that slides in from the end edge with its title and a close button; Escape or a tap outside 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 app's small shared pieces: a flag's state glyph, an environment dot, a switch, tabs with a gliding marker, a smooth sparkline, a meter bar, initials and "4m ago".
    • 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: every change goes through one of these functions, which also writes the audit log, so the log, the KPIs and every list agree. data/api.ts is the only caller from the pages.
    • live.tsWhat happens live while the app is watched: SDK evaluations stream in, the evaluations-a-second line moves on, and teammates make real changes (through db.ts, so the audit log, KPIs and lists all follow).
    • now.tsThe demo's clock: today at a busy hour (14:20) plus the real time since the app opened, so "today" is never thin whenever you look.
    • seed-flags.tsThe pretend team and flags: 36 written by hand (the ones the demo shows first) and the rest of a ~180-flag catalog made from areas and features, the same on every visit.
    • seed-misc.tsThe pretend segments, users, experiments, API keys, audit log and waiting approvals, made to agree with the flags in seed-flags.ts.
    • types.tsThe shapes of the pretend data: flags, segments, experiments, the audit log, environments and the team. A real backend answers in these shapes.
    • views.tsWhat the pages show, worked out from the database: the KPI strip, rollouts, experiment results with their confidence, segment members and environment numbers.
  • 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}).

flags-tamarisk.tsx

The page: the sections in order.

Загрузка…
Подходит для
Teams shipping behind flags: roll out per environment, target segments, run A/B tests and keep an audit trail.
Как это работает
Drag a rollout and 100 users light up in coral; the kill switch puts them out in one sweep. Evaluations and changes stream in.
Как использовать
Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your flag service.