Enhance UI and functionality for Chain Workbench and related features
Node.js build / build (20.x) (push) Waiting to run
Node.js build / build (22.x) (push) Waiting to run

- Introduced a wide two-column layout for the Chain Workbench modal, improving user experience and accessibility.
- Added new styles for workbench components, including headers, filters, and main containers, to enhance visual organization.
- Updated chain templates to allow for multiple distinct matches per template, improving flexibility in template matching.
- Enhanced documentation to clarify the new settings and commands related to the Chain Workbench and edge detection features.
- Implemented logging for better tracking of missing configurations, ensuring users are informed about any loading issues.
This commit is contained in:
Lars committed 2026-02-05 11:41:15 +01:00
1 parent c044d6e8db
commit 725adb5302
47 files changed
+4161 -646

No files matched your search

+7 -10
View File
@@ -66,17 +66,14 @@ export async function updateMappingBlocksForRelLinks(
);
// Merge rel: link mappings (from [[rel:type|link]] format) into existing mappings
// These take precedence over file content mappings (update even if already mapped)
// Key = Section-Link (mit #Abschnitt), damit Edge-Block >> [[Note#Abschnitt]] ausgibt
for (const [linkBasename, edgeType] of relLinkMappings.entries()) {
// Check if this link exists in this section
const normalizedBasename = linkBasename.split("|")[0]?.split("#")[0]?.trim() || linkBasename;
if (section.links.some(link => {
const normalizedLink = link.split("|")[0]?.split("#")[0]?.trim() || link;
return normalizedLink === normalizedBasename || link === normalizedBasename;
})) {
// Always update rel: link mappings (they represent user's explicit choice)
mappingState.existingMappings.set(normalizedBasename, edgeType);
console.log(`[UpdateMappingBlocks] Updated rel: link mapping: ${normalizedBasename} -> ${edgeType}`);
const matchingLink = section.links.find(
link => link === linkBasename || (link.split("|")[0]?.trim() === linkBasename.split("|")[0]?.trim())
);
if (matchingLink !== undefined) {
mappingState.existingMappings.set(matchingLink, edgeType);
console.log(`[UpdateMappingBlocks] Updated rel: link mapping: ${matchingLink} -> ${edgeType}`);
}
}