- Foldable left panel (user profile) and right panel (task details) - Clicking a task in the list or graph node selects it and shows details - Both views (task list + graph) always mounted via absolute inset-0 for correct canvas dimensions; tabs toggle visibility with opacity - Graph node selection animation: other nodes repel outward (charge -600), then selected node smoothly slides to center (500ms cubic ease-out), then charge restores to -120 and graph stabilizes - Graph re-fits on tab switch and panel resize via ResizeObserver - Fix UUID string IDs throughout (backend returns UUIDs, not integers) - Add TaskDetailPanel, UserPanel components - Add CLAUDE.md project documentation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
55 lines
1.9 KiB
JavaScript
55 lines
1.9 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "eventSwcLoadFailure", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return eventSwcLoadFailure;
|
|
}
|
|
});
|
|
const _shared = require("../../trace/shared");
|
|
const _packagejson = require("next/package.json");
|
|
const EVENT_PLUGIN_PRESENT = "NEXT_SWC_LOAD_FAILURE";
|
|
async function eventSwcLoadFailure(event) {
|
|
const telemetry = _shared.traceGlobals.get("telemetry");
|
|
// can't continue if telemetry isn't set
|
|
if (!telemetry) return;
|
|
let glibcVersion;
|
|
let installedSwcPackages;
|
|
try {
|
|
var _process_report;
|
|
// @ts-ignore
|
|
glibcVersion = (_process_report = process.report) == null ? void 0 : _process_report.getReport().header.glibcVersionRuntime;
|
|
} catch {}
|
|
try {
|
|
const pkgNames = Object.keys(_packagejson.optionalDependencies || {}).filter((pkg)=>pkg.startsWith("@next/swc"));
|
|
const installedPkgs = [];
|
|
for (const pkg of pkgNames){
|
|
try {
|
|
const { version } = require(`${pkg}/package.json`);
|
|
installedPkgs.push(`${pkg}@${version}`);
|
|
} catch {}
|
|
}
|
|
if (installedPkgs.length > 0) {
|
|
installedSwcPackages = installedPkgs.sort().join(",");
|
|
}
|
|
} catch {}
|
|
telemetry.record({
|
|
eventName: EVENT_PLUGIN_PRESENT,
|
|
payload: {
|
|
nextVersion: _packagejson.version,
|
|
glibcVersion,
|
|
installedSwcPackages,
|
|
arch: process.arch,
|
|
platform: process.platform,
|
|
nodeVersion: process.versions.node,
|
|
wasm: event == null ? void 0 : event.wasm,
|
|
nativeBindingsErrorCode: event == null ? void 0 : event.nativeBindingsErrorCode
|
|
}
|
|
});
|
|
// ensure this event is flushed before process exits
|
|
await telemetry.flush();
|
|
}
|
|
|
|
//# sourceMappingURL=swc-load-failure.js.map
|