mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-28 00:02:42 +00:00
feat: add session recording to wmill app dev (#10457)
* feat: add session recording to wmill app dev * fix: harden dev recorder shell, bundle staleness guard and save route * fix: keep dev-server recordings out of the raw app sync diff * style: drop em dashes from new cli comments * fix: tighten dev recorder save route origin, naming and io * test: pin that only the root recordings folder is skipped * fix: survive an oversized recording upload and match paths on windows * fix: keep the app at the root and settle runnables stranded by a reload * fix: make the recorder bundle hash stable on a crlf checkout * docs: state the preflight-free content type the origin check guards * test: build the sync-skip fixture with the platform separator * docs: align the origin-guard test comment with the code * chore: mark generated .gen.ts files as generated
This commit is contained in:
@@ -141,6 +141,7 @@ import { isExecutionModeAnonymous } from "../app/app.ts";
|
||||
import {
|
||||
APP_BACKEND_FOLDER,
|
||||
generateAppLocksInternal,
|
||||
RECORDINGS_FOLDER,
|
||||
} from "../app/app_metadata.ts";
|
||||
import {
|
||||
isFlowPath,
|
||||
@@ -1867,9 +1868,16 @@ export async function elementsToMap(
|
||||
}
|
||||
|
||||
if (isRawAppFile(path)) {
|
||||
const suffix = path.split(getFolderSuffix("raw_app") + SEP).pop();
|
||||
// FSFSElement builds paths with the platform separator, while the checks
|
||||
// below are written with "/": without normalizing, none of them match on
|
||||
// Windows and the push collector's own exclusions become perpetual diffs.
|
||||
const suffix = path
|
||||
.split(getFolderSuffix("raw_app") + SEP)
|
||||
.pop()
|
||||
?.replaceAll(SEP, "/");
|
||||
if (
|
||||
suffix?.startsWith("dist/") ||
|
||||
suffix?.startsWith(RECORDINGS_FOLDER + "/") ||
|
||||
suffix == "wmill.d.ts" ||
|
||||
suffix == "package-lock.json" ||
|
||||
suffix == "DATATABLES.md"
|
||||
|
||||
Reference in New Issue
Block a user