Filtering transactionssimilar to
Mercury
A banking ledger that stays one table no matter how it is sliced. The toolbar holds three layers of filtering: saved views for the questions asked every month, quick popovers for the three fields people reach for most, and a Filters panel with every field. Each applied filter becomes a chip in the same toolbar, and the totals and row count always describe exactly what is on screen. The banking app around the page (sidebar, top bar, page actions, export) is a wireframe sketch where your own app goes.
Every screen
The 8 steps in order. Pick one to open it in the preview above.
Installation
Part of shadcn/ui Pro
Pro unlocks one-command install of every flow in Radix UI, Base UI and React Aria, plus all 507 blocks, the Figma kit, themes and the MCP server for your AI editor.
Part of shadcn/ui Pro
Pro unlocks one-command install of every flow in Radix UI, Base UI and React Aria, plus all 507 blocks, the Figma kit, themes and the MCP server for your AI editor.
Why this flow works
A transactions table filtered from one toolbar: saved views, a Filters panel with every field, quick Date, Keywords and Amount popovers, and chips that show and remove what is applied.
Common fields one click away, the rest one panel away
Date, Keywords and Amount have their own buttons because most searches start there. Methods, categories, accounts, team members, status and receipts sit in a two-column Filters panel: field list on the left, the editor on the right, a dot on every field that is set.
A button becomes its own chip
Once Amount has a value, the Amount button turns into a filled chip that reads “≥ $5,000”, with an × to remove it. Fields without a button appear as extra chips. The toolbar always says what is filtered, in words, without opening anything.
Results update while you choose
There is no Apply step: every checkbox, radio or typed amount filters the table at once. The Filters panel shows the live result count in its footer, so “Show results” is a promise of a number, and an empty result offers to clear the filters instead of a blank table.
Saved views are filters with a name
Data views apply a stored set of filters in one click. Change anything and Revert changes and Save view appear; build a filter from scratch and Create view turns it into a new view. Views never hide the filters, so the user can always see why a row is missing.
Step by step
- 01
Transactions
All transactions, with this month’s totals and the filter toolbar.
The starting point shows everything, newest first, and puts every way to narrow it in one row above the table.
- 02
Data views
Pick a saved view such as “Monthly money in”.
The questions asked every month are one click away, and Create view leads to the Filters panel for building a new one.
- 03
Saved view applied
The view’s filters are applied and shown as chips; the totals switch to money in for this month.
The view chip replaces the Data views button and keeps an × to leave it. Its filters stay visible as chips, so the user sees why rows are missing; changing one reveals Revert changes and Save view.
- 04
Filters panel
Choose a field on the left and set its value on the right.
Every field in one place without a long form: the list shows which fields are set, the editor changes with the selection, and the footer counts the results live.
- 05
Date
Choose a preset, type a range, or pick months on the grid.
Three ways to the same range: presets for the usual periods, inputs for exact days, and a month grid where one click picks a month and a second click extends it to a range.
- 06
Keywords
Search merchants and recipients, or match any name containing the text.
Recent names cover most searches without typing. Typing offers “Anything matching …” first, so a partial name catches every spelling.
- 07
Amount
Pick a direction and an exact amount or a range.
Direction answers “money in or out?” before any number. An exact amount and a range exclude each other, so the inputs that cannot apply are disabled instead of silently ignored.
- 08
Filtered results
The Amount chip reads “≥ $5,000”; the totals and the row count follow the filter.
The applied filter is readable in the toolbar and removable in one click. Reset clears everything; Create view saves the combination under a name.
Built with shadcn/ui and Radix UI
- Button
- Popover
- Dropdown Menu
- Table
- Checkbox
- Radio Group
- Select
- Input
- Input Group
- Field
- Label
- Badge
- Avatar
- Sonner
This is an original rebuild of the flow's structure, with its own brand, copy and artwork. Mercury is a trademark of its owner; this page is not affiliated with or endorsed by Mercury.
Frequently asked questions
Installing, adapting and theming this flow for Radix UI.
With a Pro plan, run npx shadcn@latest add @shadcnpro/flow-mercury-filtering-transactions. The shadcn CLI copies the flow into components/flows/mercury-filtering-transactions/ and adds the shadcn/ui components it uses. Base UI (@shadcnpro/base/flow-mercury-filtering-transactions) and React Aria (@shadcnpro/aria/flow-mercury-filtering-transactions) ship the same flow, with the same steps and copy.
No. It is an original rebuild of the structure of Mercury's filtering & sorting flow, written from scratch with shadcn/ui, with its own brand, copy and artwork. Mercury is a trademark of its owner, and this page is not affiliated with or endorsed by Mercury.
Yes, the flow is a pattern, not a fixed template. A step you add should follow the same rules as the others, listed under Step anatomy in the flow spec, so it reads as part of the same flow.
Use the prompt in the Installation section. The agent installs the flow, then reads the flow spec at https://pro.shadcn.co/flows/mercury-filtering-transactions.md, which describes the layout, the rules every step follows, each step's fields and actions, and how to adapt the flow. That way it builds a version with your brand and your steps instead of a one-to-one copy.
The data is real in the sense that matters: 42 sample transactions in memory are filtered, sorted and totalled for every change, so counts, chips and empty states are exact. Saved views live in component state. In a real app, keep the same `Filters` object, put it in the URL, send it to your API, and store views per user.
Button, Popover, Dropdown Menu, Table, Checkbox, Radio Group, Select, Input, Input Group, Field, Label, Badge, Avatar and Sonner, in their Radix UI versions. Everything else is plain markup with Tailwind CSS.
Yes. The flow only uses semantic tokens such as bg-background, bg-card and text-muted-foreground, so it picks up your colours, radius and fonts and switches with dark mode. Use the theme menu above the preview to see it in the Pro themes.
Yes. Below the large breakpoint the sketched sidebar is hidden and the toolbar wraps onto several lines. The table keeps Date, To/From and Amount on phones and adds Account, Method, Receipt and Category as the screen widens. Popovers are capped at the screen width, and the Filters panel narrows its field list.