Repository navigation
Gallery 0.4.0
Databases arrive: a new built-in block that shows one set of records as a table, a board, a list, cards, a calendar or a chart.
Install or update: npm i -g @heycys/gallery (Node 22.13 or newer), then gallery skill install to bring the skill up to date. To add the skill alone, give gallery-skill-0.4.0.zip (below) to your agent and ask it to install it.
Databases (多维表格)
- A new built-in block. Type 多维表格 after "/": one set of records seen as a table, a board, a list, cards, a calendar or a chart, each view with its own filters, sorts, grouping and totals. Columns can be text, number, select, multi-select, date, checkbox, URL or formula; records can be edited in their details, exported as CSV, and charts can take your colors.
- Plain HTML in the file. Edits are written back into the table and a bit of JSON in the HTML file, one undo step each. An agent writes a database as ordinary HTML; a table with no JSON reads as columns of words by its header.
- Records have bodies. A record's details hold a real Gallery body below its properties (headings, lists, images, the "/" menu, the handle), stored in the file as that record's slot. Copying a database carries the bodies, and
gallery read, the Markdown export andgallery checkknow them. - Agents can use them. The skill has a new reference on databases.
gallery checkpoints out an agent's slips and prints one line per database saying what each view shows, so an agent can check its work without a browser;gallery readnumbers records and its--format jsongives the records and why one is read-only. - Wide databases. A 宽多维表格 switch in 更多, in an export's display menu and in each database's block menu; a wide database keeps one width across its views.
- The bundled pack's board and chart blocks are replaced by the database's board and chart views.
Tables
- Switching back to a document puts the caret back in the table cell it was in, and a table half scrolled past the top no longer makes the page jump.
- An inserted row or column takes the color, alignment and bold its neighbours all share.
- Pasting into a cell keeps line breaks, empty lines, formatting and lists; multi-line text from other programs goes in line by line, and a cell's content pasted into a paragraph keeps its lines.
- Each table has its own 宽表格 (wide) switch in its block menu, which takes precedence over the page's.
- Automatic column widths keep columns of numbers and long identifiers whole.
- The drawn scrollbars are one component that moves with the content on the browser's own scroll timeline; at an end they give like a rubber band and spring back.
- On screens where rows fall between pixels (e.g. Windows at 225%), a wide table no longer gains a sliver of vertical scroll that stopped the wheel.
Editing and the workbench
- Dragging a page from the sidebar into a document inserts its page block where you let go.
- Reordering by dragging goes by the dragged item itself, everywhere: database tabs, board columns and cards, filter and sort rows, table rows and columns, the tabs block, the writing preferences' tabs. Board cards lift and the others slide aside.
- Tabs block: tabs lift when dragged, the "+" is round, new tabs are named 选项 1, 选项 2….
- Dragging the sidebar's width is smooth again and stops where you let go.
- Sections holding a wide block keep their right-hand bar at the text's edge, dotted across the wide block.
- File blocks can take a text color and a background; menus' fades reach the card's edge; the presentation view's pointer has a rounded icon; 编辑图表 opens with one title.
Tested on Windows 11 (Chrome and Edge) and macOS 27 (Chrome). Reports from other systems and browsers are welcome.