equinor / equinor/fusion-framework
Fire lifecycle event when widget modules are loaded
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 10
- Avg merge
- 19h 40m
- Merged PRs (30d)
- 150
Description
## Context
`packages/widget/src/configure-widget-modules.ts` has commented-out code and a `// TODO - fire event when widget is loaded` note, mirroring the `onAppModulesLoaded` event dispatch already implemented in `packages/app/src/configure-modules.ts`.
## Task
Implement an equivalent lifecycle event (e.g. `onWidgetModulesLoaded`) dispatched from `configureWidgetModules`, uncommenting/adapting the existing draft code, once the appropriate manifest/key field for widgets is confirmed.
_Filed while resolving `fusion-lint`'s `no-todo-without-issue` rule — see `packages/widget/src/configure-widget-modules.ts`._
Contributor guide
Research direction
Compare packages/widget/src/configure-widget-modules.ts with packages/app/src/configure-modules.ts, including the commented draft and the existing onAppModulesLoaded dispatch. Confirm the appropriate widget manifest/key field, then implement the equivalent event from configureWidgetModules. Done means the lifecycle event is dispatched after widget modules load and the no-todo-without-issue lint concern is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100