- 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>
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "resolveTitle", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return resolveTitle;
|
|
}
|
|
});
|
|
function resolveTitleTemplate(template, title) {
|
|
return template ? template.replace(/%s/g, title) : title;
|
|
}
|
|
function resolveTitle(title, stashedTemplate) {
|
|
let resolved;
|
|
const template = typeof title !== "string" && title && "template" in title ? title.template : null;
|
|
if (typeof title === "string") {
|
|
resolved = resolveTitleTemplate(stashedTemplate, title);
|
|
} else if (title) {
|
|
if ("default" in title) {
|
|
resolved = resolveTitleTemplate(stashedTemplate, title.default);
|
|
}
|
|
if ("absolute" in title && title.absolute) {
|
|
resolved = title.absolute;
|
|
}
|
|
}
|
|
if (title && typeof title !== "string") {
|
|
return {
|
|
template,
|
|
absolute: resolved || ""
|
|
};
|
|
} else {
|
|
return {
|
|
absolute: resolved || title || "",
|
|
template
|
|
};
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=resolve-title.js.map
|