Skip to content

feat: Adopt Three.js ui.js as js/gq-ui.js with window.GQUI namespace - #18

Merged
makr-code merged 5 commits into
mainfrom
copilot/replace-innerhtml-ui-js
Mar 30, 2026
Merged

feat: Adopt Three.js ui.js as js/gq-ui.js with window.GQUI namespace#18
makr-code merged 5 commits into
mainfrom
copilot/replace-innerhtml-ui-js

Conversation

Copilot AI commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Copilot AI changed the title [WIP] Replace innerHTML in ui.js from Three.js Editor feat: Adopt Three.js ui.js as js/gq-ui.js with window.GQUI namespace Mar 30, 2026
Copilot AI requested a review from makr-code March 30, 2026 10:29
Replace all innerHTML template-string assignments in ShipyardController
with safe DOM construction using document.createElement, GQUI builders,
and replaceChildren/createDocumentFragment:

- Add gqStatusMsg() helper for single-message status updates
- renderSlotProfile → returns DocumentFragment
- renderAffinityChips (both versions consolidated) → returns DocumentFragment or null
- renderModuleSlotEditor → returns DOM node
- updateStatsPreview → uses replaceChildren + GQUI.Div
- buildPresetToolbarHtml → buildPresetToolbarDom
- refreshPresetToolbar → uses replaceChildren
- buildCardsHtml → buildCardsDom
- buildBlueprintCardsHtml → buildBlueprintCardsDom
- buildHullCatalogHtml → buildHullCatalogDom
- buildBlueprintCreatorHtml → buildBlueprintCreatorDom
- buildQueueHtml → buildQueueDom
- updateBlueprintLayoutOptions → full DOM construction
- render() → uses DocumentFragment + replaceChildren
- renderDockedVessels → renderDockedVesselsDom (returns DOM node)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: makr-code <150588092+makr-code@users.noreply.github.com>
@makr-code
makr-code marked this pull request as ready for review March 30, 2026 13:04
@makr-code
makr-code merged commit 14062b0 into main Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ui.js aus Three.js Editor übernehmen – innerHTML ersetzen

2 participants