Skip to content

Fix ADT packaging, v2 preview cache-busting, and asset migration#70

Merged
nicpottier merged 2 commits intomainfrom
adt-fixes
Feb 18, 2026
Merged

Fix ADT packaging, v2 preview cache-busting, and asset migration#70
nicpottier merged 2 commits intomainfrom
adt-fixes

Conversation

@nicpottier
Copy link
Contributor

This PR migrates runner assets from assets/web to assets/adt, adds the JS/module activity asset set, and updates API/pipeline paths accordingly. It fixes quiz text-catalog ID collisions by moving quiz question IDs to *_que and keeps catalog data fresh during packaging and preview rendering. It updates v2 preview/open links to use cache-busted /adt/v-... routes, adds optional version-segment handling in the ADT static route, and adds a preview re-package control in the v2 sidebar. It also builds the ADT JS bundle from base.js during packaging, ensures quiz pages are emitted even when their anchor page has no rendered sections, and expands package-web tests to verify bundle generation plus quiz insertion edge cases.

…ovements

- Rename assets/web → assets/adt and update all references
- Fix quiz flash/disappear bug: use _que suffix for question text catalog IDs
  to avoid data-id collision between section and question elements
- Always build text catalog fresh during packaging; persist only if changed
- Build text catalog on-the-fly in preview route for accurate quiz data
- Add dynamic quiz page rendering to adt-preview route
- Move repackage button from PreviewView content area to sidebar nav
- Add page_number to quiz entries in pages.json
- Add esbuild JS bundle build step to packaging pipeline
- Remove pre-built bundle in favor of esbuild-based bundling
@nicpottier nicpottier merged commit 5578a45 into main Feb 18, 2026
1 check passed
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.

1 participant