Automates the production manager's manual workflow of checking xTuple WO Schedule + Kit Material Shortage for FA department work orders. Two tabs: WO Shortages (detail per WO + shortage line with customer name, YYYY-MM-DD dates) and Critical Parts (aggregated parts blocking near-term shipments with QOH from MPE warehouse). Nav button added to all pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2.1 KiB
2.1 KiB
name, description
| name | description |
|---|---|
| prepare-for-launch | Prepares the app for production launch by moving from sandbox to production (GoLive) database and related steps. Use when the user asks to prepare for launch, move to production, switch to GoLive, or launch the app. |
Prepare for Launch
Use this skill when preparing to launch the app: moving all data sources from sandbox to the production (xTuple_GoLive) database and performing launch checklist steps.
Launch checklist (run in order)
- Switch all queries to xTuple_GoLive (see below).
- Add or run any other launch steps you need (e.g. env/config, final checks).
Step 1: Move every query to xTuple_GoLive
Ensure every DB query in the app uses the production datasource xTuple_GoLive instead of xTuple_Sandbox.
How to do it
-
Find all query metadata files
Underpages/, each query has ametadata.jsoninpages/<PageName>/queries/<query_name>/metadata.json. -
In each
metadata.json, locate the datasource block insideunpublishedAction:"datasource": { "id": "xTuple_Sandbox", "isAutoGenerated": false, "name": "xTuple_Sandbox", "pluginId": "postgres-plugin" } -
Replace both
"id"and"name"fromxTuple_SandboxtoxTuple_GoLive:"datasource": { "id": "xTuple_GoLive", "isAutoGenerated": false, "name": "xTuple_GoLive", "pluginId": "postgres-plugin" } -
Verify
- No query under
pages/**/queries/**/metadata.jsonshould referencexTuple_Sandbox. - Search the repo for
xTuple_Sandbox; the only remaining references should be the datasource definition (e.g.datasources/xTuple_Sandbox.json) and any docs/skills that describe sandbox as the default (e.g. add-query skill).
- No query under
Scope
- Update every query that currently uses
xTuple_Sandbox. Queries already usingxTuple_GoLivecan be left unchanged. - Do not change the add-query (or other) skills that say to use Sandbox by default; those are for day-to-day development. This skill is only for the one-time (or repeated) launch prep.