Chuyển đến nội dung

Deploys Shingle

v1.0

A minimal deploy console for a platform team: live pipelines whose stages fill as they run, a version matrix per environment, promotions with approvals and rollbacks, in cool greys with one electric lime accent.

$69

Địa chỉ trang: /

Tích hợp sẵn

Bạn nhận được
  • Sáng và tốiDùng màu theo giao diện của bạn
  • Máy tính, máy tính bảng và điện thoạiCác màn hình mục này được thiết kế cho
  • Package…
  • Dung lượng mã…
  • Tiết kiệm pin30 fps, nghỉ khi đứng yên
  • Tạm dừng khi bị ẩnNgoài màn hình hoặc tab khác
  • Giảm chuyển độngÊm dịu cho người có yêu cầu

Được kiểm tra ở mỗi thay đổi

Kiểm tra bảo mật 3 thg 12
  • Kiểm tra kiểuTypeScript strict
  • Lint và định dạngESLint · Prettier
  • Test và buildẢnh chụp sáng và tối
  • Kiểm tra bảo mậtKhông có cảnh báo mức cao hoặc nghiêm trọng
  • Tuổi của packageMọi phiên bản công khai từ 7 ngày trở lên
  • CPU khi nghỉDưới nửa nhân khi đứng yên, ≤ 30 fps

Mã nguồn

deploys-shingleReact
  • deploys-shingle.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.
    • approvals.tsxApprovals: the deploys waiting for a protected environment, oldest first, each with what changes, who asked, how long it has waited and the approvals still needed; approve or reject it with a note. History holds the ones decided.
    • deployments.tsxDeployments: the history per environment (tabs), newest on top, with what changed, who and how long; a live row can be rolled back from here. Beside it, deploys per day and the failure rate over the last two weeks.
    • environments.tsxEnvironments: the path a version takes, in order (development to production), each with its protection rules (approvals and who gives them, branches allowed, deploying by itself, a freeze), what runs there and what waits. Add one, or open one to edit its rules.
    • overview.tsxThe overview: the four numbers, what is running right now, every service's version per environment, and the live feed beside them.
    • pipelines.tsxPipelines: every run, newest on top, by status (tabs), service and branch (the top bar's filter). Pick runs to re-run or cancel them together; a run opens in the side sheet with its stages and log.
    • services.tsxServices: all thirty, with their owner team, repository and runtime, the version live in each environment and the last deploy; find one by name or team, add one, or open one to edit it.
    • settings.tsxSettings: Notifications, Team and Appearance (theme and language), one tab each (?tab=team).
    • 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, and the workspace it opens under the card.
  • 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.
    • action-dialogs.tsxThe two quick actions as dialogs from the address: Run pipeline (?new=run) picks a service and a branch and starts a run at the top of the list; Promote (?new=promote, with ?service= and ?from=) sends a service's version on to the next environment, or asks for approval when that one is protected.
    • 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 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, framed by its own hairline.
    • env-sheet.tsxAn environment in the side sheet: add one (?new=env, it lands just before the last one) or edit one (?edit=env:production): its name and protection rules (approvals needed and from which team, the branches allowed, deploying by itself, a deploy freeze). Delete asks once more, in place.
    • kpi-strip.tsxThe four numbers a platform team watches, in one strip: deploys today, the failure rate, the median lead time to production and the mean time to recover. Each has its change against the week before (green when it got better) and a smooth line of the last 14 days.
    • live-feed.tsxThe live feed: what the team just did, newest on top (a run started or failed, a deploy landed, a rollback, an approval). A new event slides in at the top; the times move on with the demo clock.
    • rollback-dialog.tsxRoll back (?rollback=checkout-web:production): the version live now and the one it goes back to, and a reason, which is required and lands in the deploy history. Confirmed, the version chip in the matrix rewinds to the older version.
    • run-row.tsxOne run in the Pipelines list: a check box, the status, the service and branch, the commit, the stage chips and the time. Only a running row listens to the frame clock, so finished rows never redraw.
    • run-sheet.tsxA run in the side sheet (?run=4182): its status, commit and author, the three stages with their times, and the whole log, which follows the newest line while the run goes. Re-run starts it again at the top of the list; Cancel stops it.
    • running-runs.tsxThe overview's Running now panel: every pipeline going right now, newest on top. Each row's stage chips fill one after another, its time counts up and the tail of its log types itself in; a run that just started slides in at the top.
    • service-sheet.tsxA service in the side sheet: add one (?new=service) or edit one (?edit=service:checkout-web): its name, repository, owner team and runtime, and the versions it runs where. Delete asks once more, in place.
    • settings-notify.tsxSettings → Notifications: which events tell the team (a failed run, an approval waiting, a production deploy, a rollback, a recovery), the chat channel they go to, email too, and a daily or weekly digest. Saved with one button.
    • settings-team.tsxSettings → Team: the eight people on the platform team with their team and role (a role changes at once), an invite form, and Remove, which asks once more in place. You can't remove yourself.
    • sidebar.tsxThe sidebar: the brand, search with the command palette shortcut, and the pages in two groups with live counts (runs going, approvals waiting); the current page sits on a pill that glides between them. 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.
    • stage-chips.tsxA run's three stages as chips that fill like progress bars, one after another: the running one fills with the accent while its time counts up, a passed one rests full and quiet, a failed one turns red, a skipped one stays an empty outline. Also the run's status dot and the typed log tail.
    • top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the branch filter, the live switch, Run pipeline, the theme switch and the account menu.
    • version-matrix.tsxThe version matrix: every service down the side, every environment across, the live version in each cell. A cell's menu promotes it to the next environment or rolls it back; when a version changes, its chip rolls to the new one (up for a deploy, down, rewound, for a rollback).
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • deal.tsThe deal card style: each card is dealt from the side of the current nav item, a short slide toward its place, one quickly after another.
      • rowsWhat several sections share.
        • unfold.tsThe unfold row motion: each row on screen opens down from its top 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.
    • drawer.tsxA drawer from the right: a full-height native <dialog> for one thing's details (a client, an order). It springs in, slides out, closes on Esc, the close button or a click beside it, and keeps showing its thing while it slides away.
    • 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, times and durations are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov.").
    • 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 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.tsThe app's two live clocks: `frame` redraws what moves (a stage filling, a time counting) 30 times a second and `sim` moves the demo on twice a second; both rest while the app is off screen, the tab is hidden or Pause live is on.
    • 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.
    • overlays.tsxEverything that opens over the page from the address: a run in the side sheet (?run=4182), a service or environment to add or edit (?new=service, ?edit=env:production), and the dialogs (?new=run, ?new=promote, ?rollback=checkout-web:production). Any page can open one by adding its query.
    • page-head.tsxA page's head: its title and a quiet line under it on the start side, its actions on the end side (they wrap under on a phone).
    • popover.tsxA menu that unfolds from its button (a row's actions, the alerts, a sort pick): drawn in the window layer so no table or card clips it; arrow keys walk it, Escape, Tab, a click outside or a scroll folds it away, and it plays its way out unless motion is reduced.
    • progress.tsWhere a run is at a moment: each stage's state and how full its chip is, the time so far, and the log lines printed by then. Worked out from the run's start and its planned stages, so a running run moves on every frame without a reload.
    • 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.
    • 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.
    • use-fresh.tsWhich rows of a live list are new since it last drew (a run that just started, an event that just came in), so they slide in at the top with a short wash ([data-fresh] in theme.ts). The rows of the first draw are never new.
    • use-shown.tsWhat a dialog shows: the address's value while it is open, and the last one while it plays its way out, so it never goes blank as it closes. `key` changes on every opening, so a form inside starts fresh each time.
  • 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 and every change to it (runs that start, pass or fail, deploys, promotions, rollbacks, approvals); data/api.ts is its only reader, and the seed and the live demo play the same changes, so versions always line up.
    • live.tsThe live demo: while the app is on screen teammates keep working (someone pushes and a run starts at the top, now and then someone asks to promote a build); delete it when you wire your backend, your own events arrive instead.
    • now.tsThe demo's time: today at 14:20, moving ten times faster than the wall clock while the app is on screen, so a four-minute pipeline runs in about 25 seconds; use Date.now() instead when you wire your backend.
    • seed-history.tsTwo weeks of history played through the same changes the app makes (about 45 runs a working day, promotions with their approvals, a rollback every few days), then three runs still going and three promotions waiting, so the demo opens on a busy afternoon.
    • seed-org.tsThe pretend organisation: a platform team of eight at Fernhill running 30 services through four environments; names, repos and versions are made up, swap them for your own.
    • types.tsThe shapes the fake API answers with. A real backend returns the same.
    • views.tsWhat the pages are shown, worked out from the pretend database: the KPI strip, the per-day series, the version matrix and rows with names filled in.
  • 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}).

deploys-shingle.tsx

The page: the sections in order.

Đang tải…
Phù hợp cho
Platform and DevOps teams who ship many services through CI to staging and production and want one calm place to watch it.
Cách hoạt động
A run's stage chips fill one after another as its log types in; roll back a version and its chip in the matrix rewinds.
Cách dùng
Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your CI and deploy backend.