Skip to content

Conversation

Copy link

Copilot AI commented Jan 4, 2026

The Sourcetrail project config omitted .html, preventing HTML assets from appearing when browsing wallet_core.srctrlprj, and the wasm sample lacked a service worker for offline/cache handling.

  • Configuration
    • Added .html to <source_extensions> in wallet_core.srctrlprj so HTML files are indexed for viewing.
  • Wasm sample
    • Registered a service worker in samples/wasm/index.html with success/error logging.
    • Added samples/wasm/service-worker.js (cache-first fetch with offline fallback) and updated .gitignore to include it.

Example:

<source_extensions>
    <source_extension>.cpp</source_extension>
    <source_extension>.cxx</source_extension>
    <source_extension>.cc</source_extension>
    <source_extension>.html</source_extension>
</source_extensions>
Original prompt

On wallet_core.srctrlprj, view html


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Add HTML view functionality in wallet_core Include HTML files in wallet_core Sourcetrail project Jan 4, 2026
Copilot AI requested a review from xcomment January 4, 2026 03:41
@xcomment xcomment marked this pull request as ready for review January 5, 2026 23:03
@xcomment
Copy link
Owner

@copilot Submitting will post a pull request comment

@xcomment
Copy link
Owner

@copilot register service worker

Copy link
Author

Copilot AI commented Jan 16, 2026

@copilot register service worker

Service worker is now registered in the wasm sample with cache-first handling and offline fallback (69b7f36).

Copilot AI changed the title Include HTML files in wallet_core Sourcetrail project Include HTML files and register service worker for wasm sample Jan 16, 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.

2 participants