Repository navigation
fix(starter-kits): typed nav links, persistent Vue layouts, Vue browser test plugins, and empty old input - #39
Merged
Conversation
…rowser test plugins - NavLink takes the typed props of a route Link in the React and Vue kits, so params are checked against the route. - The app and settings layouts write their links inline, in place of NavItem arrays. - Vue pages attach their layout with defineOptions, so the layout and its flash toasts stay mounted across visits. - The Vue kit registers the browser, session and auth browser client plugins, as the React kit does. - The api providers cast the paginator metadata: the guard of @adonisjs/http-transformers does not list pageName, which Lucid 22.5 added. Claude-Session: https://claude.ai/code/session_01TEEvhcHLnHEEa4Qd5eGJs4
…idation error The bodyparser turns an empty field into null, and the session flashes it as the old input. The field components read it with `||`, so an empty old value fell back to the saved value. The input and textarea controls now use the saved value only when there is no old input. Claude-Session: https://claude.ai/code/session_01TEEvhcHLnHEEa4Qd5eGJs4
start/view.ts imports the icon set at runtime, so an install with --omit=dev failed to boot with "Cannot find package '@iconify-json/lucide'". Claude-Session: https://claude.ai/code/session_01TEEvhcHLnHEEa4Qd5eGJs4
The SQLite file was hard-coded to tmp/db.sqlite3, and the test runner did not migrate, so specs that truncate the database ran on, and wiped, the development database. Each kit now reads the file name from DB_DATABASE, .env.test points it at tmp/test.sqlite3, and the test runner migrates it before the first test. Claude-Session: https://claude.ai/code/session_01TEEvhcHLnHEEa4Qd5eGJs4
ankur-arch
added a commit
to thetutlage/prisma-examples
that referenced
this pull request
Nov 20, 2026
…w screens - Pass `module: infra/module.ts` to prisma/cloud-deploy-action. The action defaults to `module.ts` in the project root and passes it as `--entry`, which overrides prisma.config.ts, so deploy on push could not find the module after it moved to infra/. - Drop the unused `pull-requests: write` permission from the workflow. - Put the task title back after a network or server failure, and only when the input is still empty, so a draft typed during the request is kept. - Wrap the task forms below 480px so they fit narrow screens. - Sync nav_link, the app and settings layouts and the api provider with the current React starter kit (adonisjs/starter-kits#39). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 20, 2026
ankur-arch
added a commit
to prisma/prisma-examples
that referenced
this pull request
Nov 20, 2026
* feat(compute/adonisjs): use the AdonisJS React starter kit Replace the Hypermedia app with the React (Inertia) starter kit. Keep the Bun setup, the Composer module and the deploy workflow. Use Node.js 26 in the workflow and the README. Pass the environment to the migration process in bin/compute.ts, because Bun does not pass the variables that the file sets at runtime. * feat(compute/adonisjs): optimistic task updates and an infra folder Show a new task and remove a deleted task before the server answers. Inertia restores the list when the request fails. Move module.ts and service.ts to infra/. * fix(compute/adonisjs): deploy workflow entry, form recovery and narrow screens - Pass `module: infra/module.ts` to prisma/cloud-deploy-action. The action defaults to `module.ts` in the project root and passes it as `--entry`, which overrides prisma.config.ts, so deploy on push could not find the module after it moved to infra/. - Drop the unused `pull-requests: write` permission from the workflow. - Put the task title back after a network or server failure, and only when the input is still empty, so a draft typed during the request is kept. - Wrap the task forms below 480px so they fit narrow screens. - Sync nav_link, the app and settings layouts and the api provider with the current React starter kit (adonisjs/starter-kits#39). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Ankur Datta <64993082+ankur-arch@users.noreply.github.com> Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes found while applying Flow feature packs (auth, workspaces) to fresh React and Vue apps.
Changes
NavLink(React, Vue). It takes the typed props of a routeLink, sorouteParams/paramsare checked against the route name. Before, it took only a route name, so a route with params could not use it.Linkprops type, so that part is marked/* @vue-ignore */.paramsarrives as an attribute, and vue-tsc still checks it at each call site.NavLinkinline. TheNavItemarrays are removed. An array of mixed routes cannot type their params.defineOptions({ layout }), as the React pages do withPage.layout. A layout in the template mounts again on each visit, and the flash toast of a redirect is lost.tests/bootstrap.tsregistersbrowserClient,sessionBrowserClientandauthBrowserClient, as the React kit does.typecheckfailed: theisLucidPaginatorMetaDataguard of@adonisjs/http-transformers2.3.2 does not listpageName, which Lucid 22.5 added. The provider casts the value. The real fix belongs in@adonisjs/http-transformers.null, and the field components read the old input with||, so it fell back to the saved value.input/controlandtextarea/controlnow use the saved value only when there is no old input.field/rootand the checkbox and radio groups pass the old value as it is.start/view.tsimports@iconify-json/lucide, but it was a dev dependency, so an install with--omit=devfailed to boot. It moves todependencies.tmp/db.sqlite3and the test runner did not migrate, so specs that truncate the database ran on, and wiped, the development database. Each kit reads the file name fromDB_DATABASE,.env.testsets it totest.sqlite3, andtests/bootstrap.tsmigrates before the first test.Checks
inertia-react,inertia-vue:npm run typecheckandnpm run lintpass.api,api-monorepobackend:tsc --noEmitpasses.tmp/test.sqlite3was created, and the development database still had its user.npm install --omit=devand booted it. Before:Cannot find package '@iconify-json/lucide'. After: the home page returns 200.NavLink, with a throwaway route/probe/:slug: a missing param, a wrong param and an unknown route name each fail vue-tsc.node ace buildcompiles the component. A throwaway browser test renderedhref="/probe/a", kept theclass, and put noparamsattribute on the anchor.NavLink, and the Vue app (49 specs) with these persistent layouts. The Vue app used an earlier, untypedNavLink, so the typed VueNavLinkis checked only by the throwaway route and test above.