feat: add integrabook for visual integration testing#878
Merged
Conversation
There was a problem hiding this comment.
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.mdand provides defaults viaintegrabook/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.
04a6fbd to
5b3b7a9
Compare
4f43e8b to
5925fbd
Compare
There was a problem hiding this comment.
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.
ff5f7b0 to
39eee9e
Compare
39eee9e to
4d5da1d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
also done: sync push /integrabook sur https://github.com/incubateur-ademe/impactco2-integrabook