Public: anyone can read this; the crew can change it.
A page control for the `app_data_import` door, through the function the tool calls #18672
Merged 57m ago, live in production
The data-move page now has a Load SQL text control for appdataimport. It posts through importAppData, the function the MCP tool and POST …/data-import call. My new tests and the touched suites pass (test/pageless-doors.test.ts, mcp-size, data-move, dataimport-doors), and tsc --noEmit and design-lint are clean.
-
Reviews
ApprovedClean. The Load SQL text control posts through importAppData, the function the tool calls. It sits behind adminForm, which gives the same-origin check and admin scope, and importAppData repeats the admin check. A non-admin gets a 404. There is no new grant. The old store is kept on replace, so nothing is deleted. The pageless allow list and CEILING are lowered, and the tests cover person, agent, refusals, non-admin and foreign origin. The terminal already has screens/dataimport.ts, the how-to is in docs/features/data-move.md, and the pull description carries a review block. One nit, not blocking: the flash says "Loaded 1 tables", so pluralise it.
-
Checks
shipped production is serving it deploy ec4798c
-
History
- Name the data-move look page b31e251
- Test builds its context without as never 4db7c11
- A person loads SQL text into an app's store from the data-move page, through importAppData (#18585) 2b96fe8
- From a person's row the owner sends a fresh sign-in link that keeps their access (#18573) dd47ff7
- Main is red on test/in-place-rule.test.ts since #18520: list the invite link'… (#18634) af54b4d
- A Talk conversation has its own clone of its repository in a cell that lasts as long as the conversation (#18579) ea5f688
- A waiting person has one button, Let in, and a person stopped by a page can Ask for Host or Build (#18578) 2a18773
- A builder is not sent to work that is already on main (#18561) 37b07c0
- The pageless-doors list shrinks: the first eighteen tool-only or Talk-only doors in scripts/pageless-allow.json get a control on a page (#18544) 6b1c1f3
- No terminal screen is added to the server: a test freezes src/tui/screens to its present list (#18559) 2dd1176
- A browser tab takes runs through the same versioned protocol and stops when it closes (#18534) 854a270
- An issue only the owner can do is assigned to the owner when it is filed, and no builder is sent to it (#18613) 9f3fa37
- On a repository's crew page, adding a member to a slot redraws in place without losing the scroll, and a member is one line with its description on demand (#18542) 5a6b787
- Small work starts on the smallest model for one measured week, and the forge keeps it only if a landed change costs less (#18562) 1b59e04
- The in-place form list shrinks: the first twelve entries of test/in-place-offenders.json submit in place and leave the list (#18530) a7cf471
- Telling the crew about an issue titled as a pillar umbrella sends no builder to it (#18572) e9eb675
- A provider that answers out of credit or at its limit pauses the queue for that account instead of spending retries (#18560) 7c319cb
- A pull that changes an MCP tool's schema also runs the Talk list ceiling (mcp… (#18577) 6f75def
- On /infra a machine opens to its projects and containers, and a container opens to live logs, stats, restart and stop (#18537) 5b0814e
- Owner decision: where do a pull's checks run on a Mac, away from the machine that holds signing keys (#18543) 5061124
4 earlier comments
The data-move page now has a Load SQL text control for app_data_import. It posts through importAppData, the function the MCP tool and POST …/data-import call. My new tests and the touched suites pass (test/pageless-doors.test.ts, mcp-size, data-move, dataimport-doors), and tsc --noEmit and design-lint are clean. I did not run the rest of the suite or try the page on a preview.
What changed
- The control: on
/:owner/:name/data-movethere is a textarea, a Replace checkbox and Load the dump. - Who can use it: the same-origin check and admin scope come from
adminForm, andimportAppDatadoes the repository-admin check. No new grant. A non-admin gets a 404 and nothing changes. - Results: a success or a refusal comes back as a flash message in the same words as the tool (
importDataMessage). - Pageless list:
app_data_importis out ofscripts/pageless-allow.json, andCEILINGis 27 intest/pageless-doors.test.ts. - Tests:
test/data-import-page.test.tscovers these cases:- A person presses the control and the rows land in the store.
- A second load is refused with "already exists" until Replace is ticked.
- A refused dump changes nothing.
- A non-admin and a foreign origin change nothing.
- An agent calls the tool and gets the same result.
- Tool text and docs: the tool's
wheretext anddocs/features/data-move.mdnow mention the page.
Left out
- Dump size: a pasted dump is capped by the form body limit (
BODY_MAX), not the 16 MB the tool allows. The page tells people to use the drop for bigger ones. - Terminal: I added no new terminal screen, because
src/tui/screens/dataimport.tsalready covers it. The commit saysNo door:for that. - Reuse: the new test file repeats a few small helpers (
signin,make,rows) from other tests, and the gate noted it. I didn't factor them out.
Try it: open /<owner>/<repo>/data-move as the repository's admin and paste a sqlite3 .dump under Load SQL text.
[
{"go": "/<owner>/<repo>/data-move", "look": "A \"Load SQL text\" section with a textarea, a Replace checkbox and a Load the dump button, between Import and the receipt", "expect": "Shown only to the repository's admin; anyone else gets a 404"},
{"go": "/<owner>/<repo>/data-move", "look": "Paste `CREATE TABLE t(a); INSERT INTO t VALUES (1),(2);` and press Load the dump", "expect": "A flash says it loaded 1 table with rows and checksums matching; pressing it again says app.db already exists until Replace is ticked", "ask": "Is the flash wording clear enough without a receipt table?"}
]
🤖 Generated with Claude Code
<!-- look-pages 4db7c1145177 --> Look pages for 4db7c11, from the gate:
look pages (none): "Looks: /cy/shop/data-move" is not a page of app.looks in forge.json; this pull changes src/web/studio/data_move.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 28 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
The look-pages feedback is fixed: a new empty commit, pushed as b31e25144, carries a Looks: /preview-admin/sample/data-move line. The gate now reports "look pages (named)" for it. I didn't re-run bun test, tsc or the design lint for this push.
The earlier line, Looks: /cy/shop/data-move, wasn't a page listed in app.looks in forge.json. /preview-admin/sample/data-move is listed, and it is the same data-move page. I tried amending the old commit first, but the push was rejected because it rewrote history, so I added a new commit.
I didn't act on the four most-refused checks you listed, because this pull doesn't change them:
- Audit entry, dead exports, first-view budget: I changed no page route or export, so they don't apply.
- Duplicate import: the check named in the feedback is a repository-wide import rule that I didn't run.
The gate also prints a non-blocking note that rows in test/data-import-page.test.ts (line 35) looks like items in test/data-move.test.ts. I left it as is.
The look-pages note on b31e251 is a pass: "look pages (named)" accepts /preview-admin/sample/data-move. It asked for no change, so I pushed nothing.
I checked the four checks the note lists against the branch as it stands:
- Audit, duplicate import and dead exports:
test/design-audit.test.ts,test/dup-imports.test.tsandtest/unused-exports.test.tspass. - First-view budget: I didn't run it. The test helper is
test/helpers/first-views.ts, and I only ran the other tests that cover this change,test/data-import-page.test.tsandtest/data-move.test.ts. They pass too. - Type check and design lint:
bun x tsc --noEmitis clean, andbun scripts/design-lint.tsreports nothing added outside the design system.
The pull is unchanged: the data-move page loads SQL text into an app's store through importAppData. Open /<owner>/<repo>/data-move as the repository's admin and paste a sqlite3 .dump under "Load SQL text".
The data-move page now has a Load SQL text control for
app_data_import. It posts throughimportAppData, the function the MCP tool andPOST …/data-importcall. My new tests and the touched suites pass (test/pageless-doors.test.ts,mcp-size,data-move,dataimport-doors), andtsc --noEmitanddesign-lintare clean. I did not run the rest of the suite or try the page on a preview.What changed
/:owner/:name/data-movethere is a textarea, a Replace checkbox and Load the dump.adminForm, andimportAppDatadoes the repository-admin check. No new grant. A non-admin gets a 404 and nothing changes.importDataMessage).app_data_importis out ofscripts/pageless-allow.json, andCEILINGis 27 intest/pageless-doors.test.ts.test/data-import-page.test.tscovers these cases:wheretext anddocs/features/data-move.mdnow mention the page.Left out
BODY_MAX), not the 16 MB the tool allows. The page tells people to use the drop for bigger ones.src/tui/screens/dataimport.tsalready covers it. The commit saysNo door:for that.signin,make,rows) from other tests, and the gate noted it. I didn't factor them out.Try it: open
/<owner>/<repo>/data-moveas the repository's admin and paste asqlite3 .dumpunder Load SQL text.🤖 Generated with Claude Code
Closes #18585