@@ -33,6 +33,12 @@ const GAME_ASSET_CATALOG_SCHEMA = "html-js-gaming.game-asset-catalog";
3333const GAME_ASSET_CATALOG_VERSION = 1 ;
3434const WORKSPACE_LAUNCH_SIGNATURE_STORAGE_KEY = "toolboxaid.toolsPlatform.launchSignature" ;
3535const TOOL_STATE_STORAGE_KEY_PREFIX = "toolboxaid." ;
36+ const STANDARDIZED_TOOL_HEADER_IDS = new Set ( [
37+ "vector-map-editor" ,
38+ "vector-asset-studio" ,
39+ "sprite-editor" ,
40+ "state-inspector"
41+ ] ) ;
3642const PRESERVED_TOOL_STATE_KEYS = new Set ( [
3743 HEADER_EXPANDED_STORAGE_KEY ,
3844 WORKSPACE_LAUNCH_SIGNATURE_STORAGE_KEY
@@ -1168,6 +1174,14 @@ function renderHeaderMarkup(currentTool, isHeaderExpanded) {
11681174 const description = currentTool
11691175 ? currentTool . description
11701176 : "Registry-driven, engine-themed entry surface for vector maps, vector assets, tilemaps, parallax scenes, and sprite workspaces." ;
1177+ const useStandardizedToolHeader = ! isLanding
1178+ && Boolean ( currentTool ?. id )
1179+ && STANDARDIZED_TOOL_HEADER_IDS . has ( currentTool . id ) ;
1180+ const standardizedToolName = normalizeTextValue ( currentTool ?. name ) || title ;
1181+ const standardizedToolShortDescription = normalizeTextValue ( currentTool ?. shortDescription ) ;
1182+ const standardizedHeaderText = standardizedToolShortDescription
1183+ ? `${ standardizedToolName } — ${ standardizedToolShortDescription } `
1184+ : standardizedToolName ;
11711185 const meta = isLanding
11721186 ? `${ getToolRegistry ( ) . filter ( ( entry ) => entry . active === true && entry . visibleInToolsList === true ) . length } active tools | hubCommon.css theme`
11731187 : "Shared shell, engine theme, and workspace context applied from the active tool registry" ;
@@ -1177,16 +1191,18 @@ function renderHeaderMarkup(currentTool, isHeaderExpanded) {
11771191 <div class="tools-platform-frame__accordion-content">
11781192 <div class="tools-platform-frame__accordion-summary">
11791193 <div class="tools-platform-frame__summary-copy">
1180- <h1 class="tools-platform-frame__title" >${ escapeHtml ( title ) } </h1>
1181- <h2 class="tools-platform-frame__eyebrow">First-Class Tools Surface</h2>
1194+ <h1 class="tools-platform-frame__title${ useStandardizedToolHeader ? " tools-platform-frame__title--single-line" : "" } " ${ useStandardizedToolHeader ? ` title=" ${ escapeHtml ( standardizedHeaderText ) } "` : "" } >${ escapeHtml ( useStandardizedToolHeader ? standardizedHeaderText : title ) } </h1>
1195+ ${ useStandardizedToolHeader ? "" : ' <h2 class="tools-platform-frame__eyebrow">First-Class Tools Surface</h2>' }
11821196 </div>
11831197 <div class="tools-platform-frame__summary-meta">
11841198 <div class="tools-platform-frame__meta">${ escapeHtml ( meta ) } </div>
11851199 </div>
11861200 </div>
1201+ ${ useStandardizedToolHeader ? "" : `
11871202 <div class="tools-platform-frame__topline">
11881203 <p class="tools-platform-frame__description">${ escapeHtml ( description ) } </p>
11891204 </div>
1205+ ` }
11901206 ${ showNavThroughTiles ? `
11911207 <div class="tools-platform-frame__bottomline">
11921208 ${ ! isLanding ? `<hr class="tools-platform-frame__divider" />` : "" }
0 commit comments