Aller au contenu

Feedback Lupine

v1.0

A minimal SaaS feedback board for a product team: posts ranked by votes and revenue, a drag-and-drop roadmap, a changelog, customers and insights, in quiet greys with one pink-violet accent.

$69

Adresse de la page : /

Intégré

Ce que vous obtenez
  • Clair et sombreUtilise les couleurs de votre thème
  • Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
  • Paquets…
  • Taille du code…
  • Économe en batterie30 i/s, au repos quand rien ne bouge
  • Pause quand masquéHors écran ou autre onglet
  • Mouvement réduitCalme pour ceux qui le demandent

Vérifié à chaque modification

Sécurité vérifiée le 3 déc.
  • Vérification des typesTypeScript strict
  • Lint et formatESLint · Prettier
  • Tests et buildCaptures claires et sombres
  • Audit de sécuritéAucune vulnérabilité élevée ou critique
  • Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
  • CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s

Code

feedback-lupineReact
  • feedback-lupine.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.
    • changelog.tsxThe changelog: drafts first, then what went out, newest first: each entry's kind, date, words and the shipped posts it closes, with edit and delete. Beside it, shipped posts no entry announces yet, each a click from a draft.
    • inbox.tsxThe inbox: new posts waiting for a first look, newest first, each with what was asked, who asked and the triage moves (plan it, merge it into a duplicate, close it). A triaged post leaves the list with Undo in the toast.
    • insights.tsxInsights: the open load, who is voting and how fast things ship, then the top open requests twice (by votes, and by the monthly revenue of the accounts behind them), votes week by week and what shipped each month.
    • overview.tsxThe overview: a greeting with the day's load, the KPI strip, the trending posts (a vote lifts a row up the list), what is being built, votes by tag and the live feed.
    • posts.tsxAll posts: status tabs with their counts, a search, the board, tag and sort pickers (all kept in the address), the rows with checkboxes, and the bulk bar once some are picked.
    • roadmap.tsxThe roadmap: a column per status (Planned, In progress, Shipped in the last 120 days; new posts wait in the inbox), each post a card you drag to a new status or place (parts/drag-lanes.ts: the card lifts under the press point, follows 1:1 and glides into its slot). A click opens the post.
    • settings.tsxSettings in four tabs (?tab=): the boards, the statuses, the team, 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.
    • users.tsxCustomers: everyone who voted or posted, the biggest accounts first, with their company, plan, monthly revenue, votes and when they were last seen; plan tabs and a search, forty rows at a time. A row opens the customer's sheet.
  • 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 posts are picked: how many, move them to a status, add a tag, delete them (Undo in the toast), or clear the pick.
    • entry-form.tsxThe changelog editor in a dialog: a new entry (?entry=new, or ?entry=new&for=FR-612 from a shipped post) or an edit (?entry=cl-24): the title, kind, date, words and the posts it announces; saved as a draft or published.
    • feed.tsxThe live feed: who did what and when on the first line, the post (and what was said) muted under it; a row that arrives (a customer's vote, a comment) 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 or a progress bar; a changed number rolls to its new value and a sparkline grows a point.
    • merge-dialog.tsxMerge a duplicate (?merge=FR-655): search the other posts, likely matches first (shared words in the title), pick one, and the duplicate's voters, comments and tags move over; the merged post opens.
    • post-form.tsxThe post form in a dialog: a new post (?new=post, the top bar's New post, ⌘K) or an edit (?edit=FR-612): the title, what is asked, the board, its status and tags.
    • post-rows.tsxPosts as Linear-style rows sorted by votes: the vote pill (its count rolls), the status glyph, the title with its tags and the revenue behind it. When a vote lifts a post past its neighbour the row glides up the list, washed in the primary (parts/flip.ts).
    • post-sheet.tsxOne post in the side sheet (?post=FR-612): its status (change it in place), title and vote, edit, merge and delete, then four tabs: details, comments, voters and activity.
    • post-tabs.tsxThe post sheet's lists: the comments (add one, delete your own), the voters with their account and revenue, and the post's activity.
    • settings-boards.tsxSettings → Boards and Statuses: the boards posts are filed under (rename, pick the default, add, delete: its posts move to another board), and the statuses (rename, recolor, reorder).
    • settings-team.tsxSettings → Team: the product team that triages and plans, who is an admin, adding someone and removing them.
    • sidebar.tsxThe sidebar: the brand, 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 live dot, search, the theme switch, New post and the account menu. It frosts only once the page scrolls under it.
    • user-form.tsxThe customer form in a dialog: a new customer (?new=user, ⌘K) or an edit (?new=user&for=u-012): name, email, company, plan and the account's monthly revenue.
    • user-sheet.tsxOne customer in the side sheet (?user=u-012): their account, plan and revenue, what they voted for and what they said, with edit and delete.
  • 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.
        • center.tsThe center row motion: the middle row on screen rises first, then the ripple spreads up and down.
      • 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: Lupine 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.
    • 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 posts between the roadmap's status 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).
    • fb.tsxThe small pieces every page shares: a status's glyph and name, a tag chip with its colour dot, a person's initials, a confirm dialog, and which rows just arrived (they slide in).
    • 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, and a row that climbed carries a short primary wash up with it. 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 6 seconds a customer votes, comments or posts (data/live.ts) and every page reloads in place, so counts roll and rows climb; every 15 the times 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 post or a customer in the side sheet, and the dialogs (new or edited post, merge, changelog entry, customer). Any page can open one by adding its query (?post=FR-612).
    • read.tsOne read of the fake API by its key, through useApi: useRead("overview"), useRead<"post">(`post:${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 post, a customer), 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 (?post=FR-612&dtab=voters).
    • 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.
    • vote-pill.tsxThe vote button: an up chevron over the count. Pressing it votes (or takes your vote back); the count rolls digit by digit to its new value, up when it grows and down when it shrinks, whoever voted.
  • 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 changes: posts with their votes and comments, customers, the changelog, boards, statuses, tags and the team. Every change also writes an event for the live feed.
    • live.tsThe live demo: customers voting, commenting and posting while you watch. Each call is one thing a customer does, through the same database the pages read. Wire your backend's events (a webhook, a socket) here instead.
    • now.tsThe demo's "now": today at 11:20 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-misc.tsThe pretend settings and the changelog: statuses, tags, boards, the team of seven at Margin, and the release notes linked to shipped requests (by title; data/db.ts turns them into ids).
    • seed-posts.tsThe pretend feature requests for Margin, a note-taking app: what customers asked for, where each stands, how many voted and when. Voters and vote times are drawn from a fixed random, so every visit sees the same board.
    • seed-users.tsThe pretend customers of Margin (a note-taking app): about 240 people at 56 accounts on the free, Plus, Team and Business plans, each with the monthly revenue of their account. Made once from fixed lists, so every visit sees the same people.
    • types.tsThe shapes of the pretend data: posts (feature requests) with their votes and comments, the customers who vote, the changelog, boards, statuses, tags and the team. A real backend answers with the same shapes.
    • views.tsWhat each page reads, worked out from the database: post rows with their votes and revenue, the overview, inbox, roadmap, changelog, customers, insights, settings and the live feed.
  • 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}).

feedback-lupine.tsx

The page: the sections in order.

Chargement…
Idéal pour
Product teams who collect feature requests, triage duplicates, plan a public roadmap and announce what shipped.
Fonctionnement
Vote on a post: its count rolls up digit by digit and the row climbs the sorted list as new votes arrive live.
Utilisation
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.