Skip to content

[feature] Interactive training#221

Merged
adrianq merged 81 commits intodevelopmentfrom
feature/interactive-training
Feb 26, 2026
Merged

[feature] Interactive training#221
adrianq merged 81 commits intodevelopmentfrom
feature/interactive-training

Conversation

@gqcorneby
Copy link
Copy Markdown
Contributor

@gqcorneby gqcorneby commented Nov 21, 2025

📌 References

📝 Implementation

Interactive training module

  • create provider wrapper to handle interactive training
  • add event listeners and map event to page content
  • create a path listener that's independent from router library

Configurations

  • add Page bindings (configuration that maps pages to specific identifiers and events)
  • add container config (dialog or side panel)

Additional Notes

  • when more than one page is mapped to an event, concat in the same order as pages
  • content relative document paths are transformed to use api path
  • fixed bug: everything after an embedded pdf disappears. Need to explicitly add a close open pdf tag

📹 Screenshots/Screen capture

2025-11-21.13-37-43.mp4

🔥 How to test it? (If there is any special consideration or the reviewer does not know how to test it)

Actual component testing can be done here using this branch of CPR
https://github.com/EyeSeeTea/central-planning-reporting/pull/487

  • in this branch of training app, run yarn build-lib
  • in the CPR branch, run yarn add ../training-app/dist

📑 Others

  • Any change in the API repo? If so, what branch/PR?
  • Any change in the GUI library? If so, what branch/PR?

@bundlemon
Copy link
Copy Markdown

bundlemon Bot commented Nov 21, 2025

BundleMon

No change in files bundle size

Groups updated (1)
Status Path Size Limits
Build Folder
./**/*
13.06MB (-819.74KB -5.78%) +20%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@gqcorneby gqcorneby requested a review from adrianq November 21, 2025 06:03
@gqcorneby
Copy link
Copy Markdown
Contributor Author

Adding collapse mode "mini" where side panel is always visible

2026-02-18.20-49-13.mp4

# Conflicts:
#	i18n/en.pot
#	i18n/es.po
#	i18n/fr.po
#	src/domain/entities/TrainingModule.ts
#	src/domain/helpers/TrainingModuleHelpers.ts
#	src/domain/usecases/GetConfigUseCase.ts
#	src/webapp/components/home/Modules.tsx
#	src/webapp/components/home/Root.tsx
#	src/webapp/components/landing-page-list-table/LandingPageListTable.tsx
#	src/webapp/components/module-creation-wizard/steps/ContentsStep.tsx
#	src/webapp/components/module-list-table/ModuleListTable.tsx
#	src/webapp/pages/home/HomePage.tsx
#	src/webapp/pages/settings/SettingsPage.tsx
@adrianq adrianq merged commit 3d333cf into development Feb 26, 2026
6 checks 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.

3 participants