The harness for @workspace.sh/table-gtk, as apps/web is for
table-ui: GTK4 and libadwaita through GTKX, reading
.table folders from disk with table-app's loader.
It shows the repo's fixtures, or the .table folders named on the command
line, with the open table's views listed under it in the sidebar. Every
layout draws (table with sheets, groups and totals; board; gallery; list;
calendar). Table cells edit in place, rows are added and deleted, and
every edit is saved to the .table folder a moment later. The examples
are copies in ~/.local/share/table-demo/examples, so the repo's fixtures
never change; folders named on the command line are edited where they
are.
Needs Node 24, GTK 4 and libadwaita (Fedora: sudo dnf install gtk4 libadwaita), and Rust (cargo) to build: npm run build compiles the formula engine for this machine.
cd apps/linux
npm install # not a root workspace member: a Mac never fetches GTK bindings
npm run codegen # bindings for this machine's GTK and libadwaita
npm run dev # the demo, with fast refresh
npm start -- ~/Documents/crm.table # a build, on your own tables--open=crm/deals#Pipeline starts on a table, and optionally a view, named as the app shows it (or by its id). A
.table named while the app is running opens in its window.
npm run build
./scripts/install-user.sh # for this user; nothing needs root
./scripts/install-user.sh --uninstallA single-file .table then opens in Table on a double-click, with its
icon. A .table folder is a folder to a file manager (a directory has
no type of its own on Linux), so it opens from its menu: Open With →
Table. That's offered only where a file manager is already the default
for folders, so Table never becomes what opens every folder. The script
points at this checkout's build and Node: run it again after moving
either.
npm run check # typecheck, lint, tests, build (covers packages/gtk too)
SCHEME=dark npm run shot -- out.png --open=household-budget/budget#Sheetshot runs the build on a headless sway and saves a screenshot (needs
sway and grim). A visual change isn't done until it's been looked at.
packages/gtkis linked in as afile:dependency, and Vite keeps the link's path (preserveSymlinks), so its@gtkx/*imports resolve from this app'snode_modules. GTKX's build refuses bindings it can't reach from the importing file's own path.- The other packages are read from their TypeScript source by alias
(
vite.config.ts), as the web demo reads them through thesourcecondition.tsconfig.jsonmaps the same paths. - Nothing here may import
react-native,react-strict-dom,react-domor thetable-uiviews: the lint rules say so. Logic both renderers need goes intable-ui/sharedortable-app.