Skip to content

feat: add integrabook for visual integration testing#878

Merged
lsagetlethias merged 1 commit into
mainfrom
feat/integrabook
Apr 13, 2026
Merged

feat: add integrabook for visual integration testing#878
lsagetlethias merged 1 commit into
mainfrom
feat/integrabook

Conversation

@lsagetlethias
Copy link
Copy Markdown
Member

@lsagetlethias lsagetlethias commented Apr 13, 2026

also done: sync push /integrabook sur https://github.com/incubateur-ademe/impactco2-integrabook

Copilot AI review requested due to automatic review settings April 13, 2026 11:54
Comment thread integrabook/detecteur.html Fixed
Comment thread integrabook/detecteur.html Fixed
Comment thread integrabook/detecteur.html Fixed
Comment thread integrabook/detecteur.html Fixed
Comment thread integrabook/legacy.html Fixed
Comment thread integrabook/detecteur.html Fixed
Comment thread integrabook/legacy.html Fixed
Comment thread integrabook/shared.js Fixed
Comment thread integrabook/shared.js Dismissed
Comment thread integrabook/webcomponent.html Fixed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new “Intégrabook” static HTML mini-site to support visual/cross-origin integration testing of Impact CO2 embeds (iframe/script, direct iframes, web component, and REST API calls).

Changes:

  • Adds a set of integration-test pages (modules + integration methods) under integrabook/.
  • Adds shared utilities (shared.js) and styling (shared.css) to provide a config bar, parameter editors, code snippets, and live render zones.
  • Documents usage and configuration in integrabook/README.md and provides defaults via integrabook/config.js.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
integrabook/index.html Navigation hub for all integrabook test pages
integrabook/shared.js Shared helpers (config bar, param editor, iframe/script injection, API fetch)
integrabook/shared.css Shared UI styling for the integrabook pages
integrabook/config.js Default base URL / theme / language configuration
integrabook/README.md How to serve and use the integrabook pages
integrabook/api.html REST API tester page for multiple endpoints
integrabook/transport.html Transport embed tests (iframe.js, direct iframe, REST API)
integrabook/comparateur.html Comparateur embed tests (iframe.js, direct iframe)
integrabook/alimentation.html Alimentation embed tests (iframe.js, direct iframe, REST API)
integrabook/chauffage.html Chauffage embed tests (iframe.js, direct iframe, REST API)
integrabook/livraison.html Livraison embed tests (iframe.js, direct iframe, etiquette variants)
integrabook/habillement.html Habillement embed tests (iframe.js, direct iframe, osez-changer)
integrabook/quiz.html Quiz embed tests (iframe.js, direct iframe, infographie variant)
integrabook/infographie.html Infographie + detecteur embed tests (iframe.js, direct iframe)
integrabook/detecteur.html Detection script tests (sync/async) + iframe loader
integrabook/legacy.html Legacy ID-based integration scenarios
integrabook/webcomponent.html Web component integration page for <etiquette-ico2>

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread integrabook/shared.js Outdated
Comment thread integrabook/shared.js Outdated
Comment thread integrabook/shared.js Outdated
Comment thread integrabook/transport.html Outdated
Comment thread integrabook/webcomponent.html
Comment thread integrabook/api.html Outdated
Comment thread integrabook/README.md Outdated
Comment thread integrabook/shared.js Fixed
Comment thread integrabook/shared.js Fixed
Comment thread integrabook/shared.js Fixed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread integrabook/shared.js
Comment thread integrabook/shared.js
Comment thread integrabook/shared.js
Comment thread integrabook/infographie.html
Comment thread integrabook/detecteur.html
@lsagetlethias lsagetlethias force-pushed the feat/integrabook branch 4 times, most recently from ff5f7b0 to 39eee9e Compare April 13, 2026 15:19
@lsagetlethias lsagetlethias merged commit fe8d768 into main Apr 13, 2026
4 of 5 checks passed
@lsagetlethias lsagetlethias deleted the feat/integrabook branch April 13, 2026 15:21
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.

3 participants