Genesis

Packages

@marktiderman/genesis-data

0.5.0Primitive · Data

Genesis Data workspace UI — a table sidebar and a sheet grid with version-checked, audited cell edits, as the signed-in user. See packages/data/README.md + docs/DATA.md.

**Genesis Data**, the editor UI: a sidebar of the tables the signed-in user may see, and a sheet of the selected one where a cell is edited in place. Every save is checked against the version of the row it was read at and committed with its audit entry, and the outcome is on screen: "Saved", with the audit entry, or "Not saved" and why.

Built on genesis-ui's `ResourcePage` and `DataTable` (DATA.md decision 21). Routing and URL state come from your app through an adapter (decision 23), and sign-in fills a slot.

pnpm add @marktiderman/genesis-data

READMEChangelognpm

@marktiderman/genesis-data
Genesis Data workspace UI — a table sidebar and a sheet grid with version-checked, audited cell edits, as the signed-in user. See packages/data/README.md + docs/DATA.md.

Components (22)

  • ActivityPanelBeta

    The studio's activity panel: recent changes, with undo.

  • BulkEditDialogBeta

    Set one field on every selected row: all of them change, or none do.

  • CalendarViewBeta

    A month of the table's rows, placed by a date field and drawn by Genesis UI's EventCalendar. One request per month grid (a `gte`/`lt` range on the field covering the month's whole weeks, so the days shown from the months either side are ...

  • DataStudioExperimental

    Genesis Data: a sidebar of the tables this user may see, and a sheet of the selected one where a cell is edited in place. Every edit carries the version it was read at, so a stale edit is refused rather than saved over someone else's, an...

  • ExportButtonBeta

    The studio toolbar's export button, with its progress.

  • FieldIconBeta

    An icon for the field's type, as Airtable shows in each column header.

  • FilterBuilderBeta

    Filters by field, with the operators that fit each field's type.

  • GroupPickerBeta

    Group rows by a field with few distinct values.

  • HideFieldsBeta

    Which fields the grid shows.

  • ImportDialogBeta

    CSV import (DATA.md P2): map the file's columns to fields, check every row against the database with a dry run, then add them all in one transaction. Nothing is coerced or dropped: a value that won't convert is listed, with the database'...

  • KanbanViewBeta

    A board of the table's rows, one column per value of `field`. Each column is paged on its own (50 cards, then "Load more"), with the same filters, search and sort as the table. Moving a card is a version-checked update of `field`, so a c...

  • NewRowButtonBeta

    The studio toolbar's new row button, disabled with a reason when not allowed.

  • PillBeta

    A value drawn as a tinted pill.

  • RecordPanelBeta

    One record, in a side panel: its fields as a form, the records it links to and from, and its audit history. The URL names it, so the link copies.

  • RelationPickerBeta

    Pick a linked row by searching the target resource on the server, so it works for a table of any size; shows each row by its label field.

  • SearchBoxBeta

    Search every text field, as you type.

  • SheetViewBeta

    The spreadsheet view of a table (DATA.md P2). A paste across rows is saved in ONE transaction through `updateMany`: every row changes, at the version it was read, or none does, and the failing cells are marked.

  • SortBuilderBeta

    Sort by several fields, first one first.

  • TableTabsBeta

    Table tabs across the top, as Airtable shows a base's tables.

  • ViewFieldPickerBeta

    Which field lays out the board or the calendar.

  • ViewsPanelBeta

    The left column: how to look at this table, and the views you've saved.

  • ViewSwitchBeta

    Switch between the table, the spreadsheet grid, a board and a calendar.

Hooks (2)

  • useHistoryRouter

    For an app with no router: keeps the studio's state in the current page's query string through the History API.

  • useMemoryRouter

    A router held in memory, for tests and embedded previews.

Other exports (3)

createSearchParamsRouter · locationFromSearchParams · searchParamsFromLocation

And 7 types.