Enhance interview configuration and wizard functionality
- Added parsing for new edging configuration options in interview profiles, including mode, wrapper callout type, title, and folded state. - Updated the InterviewWizardModal to support post-run edging, allowing for semantic mapping based on the new edging settings. - Enhanced the unresolved link handler to pass plugin instance and settings for improved graph schema loading and post-run edging functionality. - Improved error handling and user notifications for semantic mapping processes, ensuring better feedback during execution.
This commit is contained in:
1 parent
a6ce268b04
commit
5ed06e6b9a
6 files changed
+263
-6
No files matched your search
@@ -118,6 +118,25 @@ function parseProfile(
|
||||
profile.defaults = raw.defaults as Record<string, unknown>;
|
||||
}
|
||||
|
||||
// Parse edging config
|
||||
if (raw.edging && typeof raw.edging === "object") {
|
||||
const edgingRaw = raw.edging as Record<string, unknown>;
|
||||
profile.edging = {};
|
||||
|
||||
if (edgingRaw.mode === "none" || edgingRaw.mode === "post_run" || edgingRaw.mode === "inline_micro") {
|
||||
profile.edging.mode = edgingRaw.mode;
|
||||
}
|
||||
if (typeof edgingRaw.wrapperCalloutType === "string") {
|
||||
profile.edging.wrapperCalloutType = edgingRaw.wrapperCalloutType;
|
||||
}
|
||||
if (typeof edgingRaw.wrapperTitle === "string") {
|
||||
profile.edging.wrapperTitle = edgingRaw.wrapperTitle;
|
||||
}
|
||||
if (typeof edgingRaw.wrapperFolded === "boolean") {
|
||||
profile.edging.wrapperFolded = edgingRaw.wrapperFolded;
|
||||
}
|
||||
}
|
||||
|
||||
// Parse steps
|
||||
if (Array.isArray(raw.steps)) {
|
||||
for (let i = 0; i < raw.steps.length; i++) {
|
||||
|
||||
@@ -15,6 +15,12 @@ export interface InterviewProfile {
|
||||
group?: string;
|
||||
defaults?: Record<string, unknown>;
|
||||
steps: InterviewStep[];
|
||||
edging?: {
|
||||
mode?: "none" | "post_run" | "inline_micro"; // Semantic mapping mode (default: "none")
|
||||
wrapperCalloutType?: string; // Override wrapper callout type
|
||||
wrapperTitle?: string; // Override wrapper title
|
||||
wrapperFolded?: boolean; // Override wrapper folded state
|
||||
};
|
||||
}
|
||||
|
||||
export type InterviewStep =
|
||||
|
||||
Reference in new issue
Block a user