Pipeline Quince
v1.0A minimal SaaS CRM for a small agency: deals on a list or board you drag between stages, clients, follow-ups, proposals and a live weighted forecast, in quiet greys with one accent.
Sayfa adresi: /
Yerleşik
Neler alırsınız- Açık ve koyuTema renklerinizi kullanır
- Masaüstü, tablet ve telefonTasarlandığı ekranlar
- Paketler…
- Kod boyutu…
- Pil dostu30 fps, dururken boşta
- Gizliyken dururEkran dışında veya başka sekmede
- Hareketi azaltİsteyenler için sakin
Her değişiklikte kontrol edilir
Güvenlik kontrolü: 3 Ara- Tür denetimiKatı TypeScript
- Lint ve biçimESLint · Prettier
- Testler ve derlemeAçık ve koyu ekran görüntüleri
- Güvenlik denetimiYüksek veya kritik uyarı yok
- Paket yaşıHer sürüm 7+ gündür herkese açık
- Boşta CPUDururken yarım çekirdekten az, ≤ 30 fps
Kod
pipeline-quinceReact
- pipeline-quince.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.
- companies.tsxThe clients: every company with its industry, owner, open deals and value, and when someone last touched it; search and the industry filter live in the address, and a row opens the company's sheet.
- contacts.tsxThe people at the clients: name and role, company, email, how many deals and the last touch; the search lives in the address and a row opens the contact's sheet.
- deals.tsxEvery deal in one table: search, stage, owner and sort live in the address (#/deals?stage=open&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 deal's sheet.
- forecast.tsxThe forecast: the quarter's weighted number against target, commit and best case; won and weighted by month with each month's target; every seller's month against their target; and the weighted forecast as it moves live.
- overview.tsxThe overview: a greeting with the day's load, the KPI strip, the pipeline by stage, what closes soon, today's follow-ups and the live feed.
- pipeline.tsxThe pipeline: the KPI strip over every stage's deals, as a list (#/pipeline) or a board (?view=board), with the live feed beside it. Drag a deal to another stage (or Space, arrows, Space): it glides into place, the stage totals and the weighted forecast roll to their new numbers and the move slides into the feed.
- proposals.tsxProposals: every quote by status (?status=sent), with its deal and company, total, when it went out and how long it holds; a row opens the editor in the side sheet.
- settings.tsxSettings in four tabs (?tab=): the pipeline's stages, the team, the monthly targets, 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.
- today.tsxToday: your follow-ups (or the team's, ?who=team) as overdue, later today and the next 7 days, each ticking to its due time; this week's logged calls, emails and meetings; and the recent activity.
- 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 deals are picked: how many, move them to a stage, give them to someone, delete them (Undo in the toast), or clear the pick.
- client-forms.tsxThe company form (?new=company, ?ecompany=c12) and the contact form (?new=contact, ?econtact=k40) in dialogs: a new one opens in its sheet once saved.
- client-sheets.tsxA company in the side sheet (?company=c12): its numbers, details and notes, its people, its deal history and what was logged; plus the confirm both client sheets use before a delete.
- contact-sheet.tsxA contact in the side sheet (?contact=k40): role and company, how to reach them, notes, their deals and what was logged with them.
- deal-form.tsxThe deal form in a dialog: a new deal (?new=deal, ⌘K New deal) or an edit (?edit=D-1042). A new one lands at the top of its stage and slides into the lists.
- deal-sheet.tsxA deal in the side sheet (?deal=D-1042): its stage to change in place, the four numbers, and tabs for the details and follow-ups, the timeline, its proposals and notes.
- feed.tsxThe live feed: who did what, newest first, then the deal and what was said (or the company) muted under it; a row that arrives (a teammate's call, your stage move) slides in at the top.
- follow-list.tsxFollow-ups as a list: a round check to mark one done (Undo in the toast), what and for which deal, a due timer that ticks (red once late), a snooze to tomorrow and the owner.
- kpi-strip.tsxThe KPI strip: four numbers in one bordered box, each with its line under it and a sparkline or a progress bar; a changed number rolls to its new value and a sparkline grows a point.
- log-dialog.tsxLog a call, email, meeting or note on a deal (?log=D-1042, or ?log=any to pick the deal), and book the follow-up in the same step. The new row slides into the feed.
- pipeline-lanes.tsxThe pipeline's two looks of the same lanes: the list (a group per stage, Linear-style rows) and the board (a column per stage, cards). Each deal carries the drag props from useLaneDrag; its lane's header totals roll as deals come and go.
- proposal-sheet.tsxA proposal in the side sheet (?proposal=P-204): a draft's line items to edit (name, quantity, rate), its discount and total, then Send; a sent one is marked accepted (the deal is won) or declined. Plus the new-proposal dialog (?new=proposal).
- settings-stages.tsxSettings → Stages: the open stages in order, each with its name and chance to edit in place; drag one (or Space, arrows, Space) to reorder the pipeline. Won and Lost close the list and stay put.
- settings-team.tsxSettings → Team: the people at the agency, who sells and their monthly target, adding someone and removing them (their open deals move to you).
- sidebar.tsxThe sidebar: the workspace, search with the ⌘K shortcut, the pages in two groups with their counts 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 List or Board switch on the pipeline, the live dot, New deal, the theme switch 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.
- draw.tsThe draw card style: cards just fade in, and the data does the show.
- 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 behind the app: Quince is Solid, so it stays faded out on the still ground; 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.
- crm.tsxThe small pieces every CRM page shares: a stage's glyph and name, an activity kind's icon, a proposal's status chip, a person's initials, and which rows just arrived (they slide in).
- 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 deals between stage lanes (the list's groups, the board's columns): mouse and pen at once, touch after a short press (a swipe still scrolls), the lifted copy kept under the grab point, the others gliding 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.
- 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 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 one live clock: every 7 seconds a teammate does something (data/live.ts) and every page reloads in place; every 15 the due timers redraw. 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 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 deal, company, contact or proposal in the side sheet, and the forms (new deal, edit, log activity, new company, contact or proposal). Any page can open one by adding its query (?deal=D-1042).
- read.tsOne read of the fake API by its key, through useApi: useRead("overview"), useRead<"deal">(`deal:${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 (#/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 detail sheet: a modal panel that slides in from the end edge over the page (a deal, a company, a contact, a proposal), with tabs whose underline glides to the one picked. Escape, a tap outside or its close button slides it away; the address keeps what it shows (?deal=D-1042&dtab=activity).
- 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 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 CRM would).
- live.tsThe live demo: teammates working while you watch. Each call is one thing a teammate does (a call logged, a proposal opened by the client, a follow-up booked or done) through the same database the pages read. Wire your backend's events here instead.
- 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-clients.tsThe pretend clients: 120 companies a brand and web design agency sells to, one to three contacts at each, and the agency's own team.
- seed-deals.tsThe pretend pipeline: the stages, 45 open deals and six months of won and lost ones, their proposals, follow-ups and activity, and the monthly targets; every date is set from the demo's now (data/now.ts).
- types.tsThe shapes the fake API answers with: people, stages, companies, contacts, deals, activities, follow-ups and proposals of a small design agency's sales pipeline.
- views.tsWhat each page reads, worked out from the pretend database: deals with their company and weighted value, the KPI strip, stage totals, the feed, the forecast by month and owner.
- 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}).
pipeline-quince.tsx
The page: the sections in order.
Yükleniyor…
- Şunlar için uygun
- Agencies and small sales teams who track deals, clients, follow-ups and proposals, and want a calm, fast CRM.
- Nasıl çalışır
- Drag a deal to a new stage: it glides there, stage totals and the forecast roll and a row slides into the live feed.
- Nasıl kullanılır
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.