Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Talking Survey] injecter les scripts gide (entry.js) #242

Open
Tracked by #194
laurentC35 opened this issue Oct 2, 2024 · 0 comments
Open
Tracked by #194

[Talking Survey] injecter les scripts gide (entry.js) #242

laurentC35 opened this issue Oct 2, 2024 · 0 comments
Assignees

Comments

@laurentC35
Copy link
Contributor

laurentC35 commented Oct 2, 2024

Pour permettre le bon fonctionnement de l'application gide (ou de plusieurs différentes), on doit importer les scripts de chargement de l'application dans le navigateur.

cf existant https://github.com/InseeFr/Drama-Queen/blob/feat-multi-gide/drama-queen/src/utils/injectLegacyQueens.ts#L9

@laurentC35 laurentC35 self-assigned this Oct 2, 2024
@JulienCarmona JulienCarmona changed the title injecter les scripts gide (entry.js) [Talking Survey] injecter les scripts gide (entry.js) Oct 15, 2024
EmmanuelDemey added a commit that referenced this issue Oct 16, 2024
feat(#242): inject externalResources script at start
laurentC35 added a commit that referenced this issue Oct 29, 2024
* build: add env var for talking surveys

* feat(#240): add capmi app to the router rules

* feat(#242): inject externalResources script at start

* feat(#238): add global variable before initalize with Lunatic

fix: #238

* fix: types in LunaticData

* fix: types again

We use only one function to initalize surveyUnit correctly

Co-Authored-By: Quentin Ruhier <99256289+QRuhier@users.noreply.github.com>

* feat(#231): add external service-worker in condition where VITE_EXTERNAL_RESOURCES_URL is defined (#252)

fix: #231

* feat: add talking questionnaires synchro (#246)

* feat: get externalResources during synchronization

* chore: add comments & remove unused imports/exports

* fix: get external resources only for needed questionnaires

* feat: delete external resources for not needed questionnaires

* feat: delete external resources root-cache if no external questionnaire needed

* feat: handle progress bar for external resources synchro

* fix: handle promises for external resources

* perf: optimize cache lookup during external resources synchronization

* feat : handle errors on fetching external url

* chore: remove unused functions & imports

* feat: delete old external resources caches

* docs: add external resources synchronization

* refactor: simplify externalResources functions

* test: set vitest

* test: add tests for external resources synchro

* fix: import const

* ci: add test in jobs

* ci: remove condition on target branch for pull_request

* ci: fix test job

* test : fix sonar config

* docs : update external resources synchro

* docs: improve external resources synchro

* refactor: remove multiple imports + uppercase constants (#257)

* refactor : set const for imports of env var VITE_EXTERNAL_RESOURCES_URL

* refactor: uppercase constants

* refactor: regroup core exported constants

* chore: remove unused import

* fix: duplicate export

* test(sonar) : fix coverage config

* ci : adapt CI for tests & sonar

* ci: rename ci & jobs

---------

Co-authored-by: Quentin Ruhier <quentin.ruhier@insee.fr>
Co-authored-by: Quentin Ruhier <99256289+QRuhier@users.noreply.github.com>
Co-authored-by: Emmanuel DEMEY <demey.emmanuel@gmail.com>
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

No branches or pull requests

1 participant