본문으로 건너뛰기

Contracts Sedge

v1.0

A contract workspace for a legal team, in warm gray with an olive accent: an approval stepper that fills as people sign, and renewal countdowns that tick.

$69

페이지 주소: /

기본 제공

제공 내용
  • 라이트 및 다크사용 중인 테마 색상 적용
  • 데스크톱, 태블릿 및 휴대폰지원하는 화면
  • 패키지…
  • 코드 크기…
  • 배터리 절약30 fps, 멈춰 있을 땐 대기
  • 숨겨지면 일시 정지화면 밖 또는 다른 탭
  • 모션 줄이기원하는 사용자에겐 차분하게

변경할 때마다 검사

보안 검사 12월 3일
  • 타입 검사TypeScript strict 모드
  • 린트 및 포맷ESLint · Prettier
  • 테스트 및 빌드라이트/다크 스크린샷
  • 보안 감사높음 또는 심각 등급 권고 없음
  • 패키지 공개 기간모든 버전 공개 후 7일 이상
  • 대기 시 CPU대기 시 코어 절반 미만, 30 fps 이하

코드

contracts-sedgeReact
  • contracts-sedge.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.tsxThe approval queue: what waits on you (approve or send back right in the row), everything still open with its stepper and how long its step has waited, and what was decided lately. A request that arrives slides in; a row you approve fills its next node and moves on.
    • clauses.tsxThe clause library: search and a category filter over every approved clause, its risk and how often it is used, one clause open beside the list (#/clauses?id=cl3) with its wording, where it sits and a way to insert it into a contract, and New clause.
    • contract.tsxOne contract (#/contract/CT-1042): its title, counterparty and status pill (which morphs as it moves), what you can do with it now, its tabs (approval, clauses, activity) and a properties panel with the renewal countdown.
    • contracts.tsxEvery contract in one table: status tabs with their counts, search, type, owner and sort live in the address (#/contracts?status=review&sort=value), rows glide to their new places when the order changes, a pick of rows gets the bulk bar, and a row opens the contract.
    • counterparties.tsxCounterparties: every vendor and customer with how many contracts are open with them, the value in force and their next end date; search and a vendor or customer filter in the address, a row opens the counterparty's sheet, and New counterparty.
    • overview.tsxThe overview: a greeting with what waits on you, the KPI strip, the contracts moving through signature (their steppers fill live), contracts by status, renewals in the next 30 days with their countdowns, and the live feed.
    • renewals.tsxRenewals: the next twelve months of contracts ending as bars (pick a month to list it), every upcoming renewal with its notice date and a live countdown, Renew or Terminate on each, and what was decided this month.
    • reports.tsxReports: the value in force by contract type, renewals by month for the year ahead, and the cycle time from draft to signed (by month, and by stage against the period before), over 6 or 12 months.
    • settings.tsxSettings in four tabs (?tab=): contract types, the approval chain, renewal reminders, and Appearance (theme and language).
    • 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).
    • 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.
    • bulk-bar.tsxThe bar that rises when contracts are picked: how many, move them to a status, give them to an owner, delete them (Undo in the toast), or clear the pick.
    • clause-dialogs.tsxThe clause dialogs: write or edit a library clause (?new=clause, ?clause-edit=cl3), pick a clause to insert into a contract (?insert=CT-1042), or pick the contract a clause goes into (?use=cl3).
    • contract-form.tsxThe contract form in a dialog: a new contract (?new=contract, ⌘K New contract, + New contract) or an edit (?edit=CT-1042). A new one starts as a draft with its approval chain worked out from its value.
    • contract-tabs.tsxWhat a contract's tabs show: the approval stepper with what you can do on the current step, the clauses in it (open one to read it), and its activity with a comment box.
    • decide-dialogs.tsxThe small decisions on a contract, each a dialog the address opens over any page: send it back with a reason (?reject=CT-1042), renew it for a term with an uplift (?renew=), end it with a reason (?terminate=), or delete it with Undo (?remove=).
    • feed.tsxThe live feed: who did what, newest first, then the contract and what was said (a comment, a clause, renewal terms) muted under it; a row that arrives (an approver signing, a draft sent out) 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; a changed number rolls to its new value and a sparkline grows a point.
    • party-sheet.tsxA counterparty in the side sheet (?party=c3): who they are, their contact, every contract with them and its status, a new contract for them; and the form that adds or edits one (?new=party, ?party-edit=c3).
    • settings-approvers.tsxSettings → Approvers: the approval chain in order (who, as what role, from which contract value), moved up or down with the rows gliding to their places, a new approver at the bottom; and Settings → Reminders: how many days before a notice date owners hear about it, where, and the weekly digest.
    • settings-types.tsxSettings → Contract types: each type's name (edit in place) and colour dot, how many contracts use it, delete when none do, and a new type at the bottom.
    • sidebar.tsxThe sidebar: the workspace, search with the ⌘K shortcut, the pages in two groups with their counts (approvals waiting on you in the accent) 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 live dot, the theme switch, + New contract 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.
        • 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.
        • mask.tsThe mask row motion: each part of a row on screen (its children) slides up from behind its own mask.
      • 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 accent), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a click (or Enter) can choose a bar, and 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, a contract or a counterparty, then Enter.
    • contract-bits.tsxThe small pieces every contract page shares: a status's glyph and its pill (which morphs to the next status), a type's colour chip, an activity's icon, a person's initials, and which rows just arrived (they slide in).
    • countdown.tsxA renewal countdown: the days, hours, minutes and seconds left until a date's end, ticking every second on the live clock; amber inside a week, red once it has passed.
    • 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.
    • 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 accent: 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 (bring in an event, reload) is the app's, passed to liveClock.
    • live.tsThe app's one live clock: every second the countdowns and waiting timers redraw, and every 8 seconds a teammate signs a step or sends a draft for approval (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 phone sheet, the side 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 counterparty in the side sheet, and the dialogs (new or edit contract, reject, renew, terminate, delete, the clause forms, a counterparty form). Any page can open one by adding its query (?renew=CT-1042).
    • read.tsOne read of the fake API by its key, through useApi: useRead("overview"), useRead<"contract">(`contract:${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 (#/contracts?status=review, #/contract/CT-1042).
    • 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 modal panel that slides in from the end edge over the page (a counterparty, an approval on a phone). Escape, a tap outside or its close button slides it away; the address keeps what it shows (?party=c3).
    • 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.
    • stepper.tsxThe approval stepper, the app's signature: each approver is a node, and as one signs its node fills in the accent with a check, the line to the next one fills along, and the next node lights up as the one waiting. Compact in a row (the overview, the queue), full on a contract with names, times, comments and the current step's actions.
    • 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. Swap it for your signed-in user.
    • 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 fake API reads and writes: the seeded rows held in memory, and every change a page can make to them (each logs its activity, as a real contract tool would).
    • live.tsWhat the rest of the team does while you watch: an approver signs off the step that has waited a few seconds since it last moved (so a contract you just approved keeps filling), the other side signs, or a contract manager sends a new draft for approval. parts/live.ts calls teammateMove on its clock.
    • 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-contracts.tsThe pretend contracts: about 400 of them, made from a fixed seed so every visit shows the same book: most in force, renewals spread over the coming months, a few just expired, and a working queue of drafts, reviews and signatures with their approval steps and history.
    • seed-library.tsThe pretend team, counterparties, contract types, clause library and settings of a 25-person legal ops team at a freight and logistics company (the names are made up).
    • types.tsThe shapes of the pretend data: contracts with their approval steps, the people who own and approve them, counterparties, the clause library, the activity log and the team's settings.
    • views.tsWhat each page reads, worked out from the pretend database: the overview's numbers, the contract list, one contract, the approval queue, renewals, clauses, counterparties, reports and settings.
  • 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}).

contracts-sedge.tsx

The page: the sections in order.

불러오는 중…
이럴 때 좋아요
Legal ops teams that track contracts from draft to signed, keep a clause library and must not miss a renewal notice date.
작동 방식
Approvals arrive live and the stepper fills step by step while the status pill changes; renewal countdowns tick by the second.
사용 방법
Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.