Skip to content

Conversation

@asbjornhaland
Copy link
Contributor

@asbjornhaland asbjornhaland commented Dec 15, 2025

  • feat(analytics): add analytics module

Ref AB#65764
Ref AB#65745
Ref #3611

  • feat(cookbooks): add portal-analytics cookbook to test analytics module

Ref #3612

Why

Why is this change needed?

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

Additional context

Related issues
closes:
ref:

Checklist

* feat(analytics): add analytics module

Ref AB#65764
Ref AB#65745
Ref #3611

* feat(cookbooks): add portal-analytics cookbook to test analytics module

Ref #3612
@asbjornhaland asbjornhaland self-assigned this Dec 15, 2025
@asbjornhaland asbjornhaland requested a review from odinr as a code owner December 15, 2025 15:14
Copilot AI review requested due to automatic review settings December 15, 2025 15:14
@asbjornhaland asbjornhaland requested a review from a team as a code owner December 15, 2025 15:14
@changeset-bot
Copy link

changeset-bot bot commented Dec 15, 2025

🦋 Changeset detected

Latest commit: 8b33a12

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
portal-analytics Minor
@equinor/fusion-framework-module-analytics Minor
@equinor/fusion-framework-module-app Minor
@equinor/fusion-framework-react-app Minor
@equinor/fusion-framework-app Minor
@equinor/fusion-framework-cli Minor
@equinor/fusion-framework-legacy-interopt Major
poc-portal Patch
@equinor/fusion-framework-cookbook-app-react-ag-grid Patch
@equinor/fusion-framework-cookbook-app-react-context-custom-error Patch
@equinor/fusion-framework-cookbook-app-react-context Patch
@equinor/fusion-framework-cookbook-app-react-feature-flag Patch
portal Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added 👨🏻‍🍳 cookbooks 👾 React 💾 CLI fusion framework CLI 📚 documentation Improvements or additions to documentation 🚀 feature New feature or request 🧬 Modules labels Dec 15, 2025
Copy link
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

eikeland
eikeland previously approved these changes Dec 16, 2025
@github-actions github-actions bot added the 🐞 bug Something isn't working label Dec 16, 2025
@asbjornhaland asbjornhaland force-pushed the feat/analytics/feature branch 2 times, most recently from 87ac13d to 0b2cac4 Compare December 16, 2025 14:50
Copy link
Collaborator

@odinr odinr left a comment

Choose a reason for hiding this comment

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

we either need to improve documentation and intent or create a new issue for improving the docs. Code looks gr8 👌

missing update of vue-press with link to doc, see other packages

@asbjornhaland asbjornhaland requested a review from odinr December 17, 2025 10:19
@github-actions
Copy link
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 5.21% 55583 / 1065254
🔵 Statements 5.21% 55583 / 1065254
🔵 Functions 43.56% 559 / 1283
🔵 Branches 62.86% 982 / 1562
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
cookbooks/portal-analytics/dev-server.config.ts 0% 0% 0% 0% 1-62
cookbooks/portal-analytics/middleware/logs.ts 0% 0% 0% 0% 1-85
cookbooks/portal-analytics/src/AppLoader.tsx 0% 0% 0% 0% 1-122
cookbooks/portal-analytics/src/Portal.tsx 0% 0% 0% 0% 1-67
cookbooks/portal-analytics/src/Router.tsx 0% 0% 0% 0% 1-78
cookbooks/portal-analytics/src/framworkConfig.ts 0% 100% 100% 0% 2-115
cookbooks/portal-analytics/src/index.tsx 0% 0% 0% 0% 1-48
cookbooks/portal-analytics/src/schema.ts 0% 0% 0% 0% 1-45
cookbooks/portal-analytics/src/types.ts 100% 100% 100% 100%
cookbooks/portal-analytics/src/useAppContextNavigation.ts 0% 0% 0% 0% 1-138
cookbooks/portal-analytics/src/ContextSelector/ContextSelector.tsx 0% 0% 0% 0% 1-72
cookbooks/portal-analytics/src/ContextSelector/index.ts 0% 0% 0% 0% 1
cookbooks/portal-analytics/src/ContextSelector/useContextResolver.ts 0% 0% 0% 0% 1-285
cookbooks/portal-analytics/src/components/EquinorLoader.tsx 0% 100% 100% 0% 2-30
cookbooks/portal-analytics/src/components/ErrorViewer.tsx 0% 0% 0% 0% 1-31
cookbooks/portal-analytics/src/components/FusionLogo.tsx 0% 0% 0% 0% 1-64
cookbooks/portal-analytics/src/components/Header.tsx 0% 0% 0% 0% 1-43
cookbooks/portal-analytics/src/components/LogReader.tsx 0% 0% 0% 0% 1-157
packages/app/src/configure-modules.ts 0% 100% 100% 0% 3-95
packages/cli/src/lib/dev-server.ts 0% 0% 0% 0% 1-9
packages/modules/analytics/src/AnalyticsConfigurator.interface.ts 100% 100% 100% 100%
packages/modules/analytics/src/AnalyticsConfigurator.ts 0% 0% 0% 0% 1-116
packages/modules/analytics/src/AnalyticsProvider.interface.ts 100% 100% 100% 100%
packages/modules/analytics/src/AnalyticsProvider.ts 0% 0% 0% 0% 1-118
packages/modules/analytics/src/enable-analytics.ts 0% 100% 100% 0% 3-27
packages/modules/analytics/src/index.ts 0% 0% 0% 0% 1-11
packages/modules/analytics/src/module.ts 0% 100% 100% 0% 4-53
packages/modules/analytics/src/types.ts 100% 100% 100% 100%
packages/modules/analytics/src/adapters/AnalyticsAdapter.interface.ts 100% 100% 100% 100%
packages/modules/analytics/src/adapters/ConsoleAnalyticsAdapter.ts 0% 100% 100% 0% 7-17
packages/modules/analytics/src/adapters/FusionAnalyticsAdapter.ts 0% 100% 100% 0% 4-61
packages/modules/analytics/src/adapters/index.ts 0% 0% 0% 0% 1-3
packages/modules/analytics/src/collectors/AnalyticsCollector.interface.ts 100% 100% 100% 100%
packages/modules/analytics/src/collectors/AppLoadedCollector.ts 0% 0% 0% 0% 1-74
packages/modules/analytics/src/collectors/AppSelectedCollector.ts 0% 0% 0% 0% 1-53
packages/modules/analytics/src/collectors/BaseCollector.ts 0% 100% 100% 0% 4-65
packages/modules/analytics/src/collectors/ContextSelectedCollector.ts 0% 0% 0% 0% 1-56
packages/modules/analytics/src/collectors/index.ts 0% 0% 0% 0% 1-4
packages/modules/analytics/src/collectors/utils/extractAppMetadata.ts 0% 0% 0% 0% 1-45
packages/modules/analytics/src/collectors/utils/extractContextMetadata.ts 0% 0% 0% 0% 1-27
packages/modules/analytics/src/logExporters/index.ts 0% 0% 0% 0% 1-2
packages/modules/analytics/src/logExporters/fusionOTLPLogExporter/FusionOTLPLogExporter.ts 0% 100% 100% 0% 3-41
packages/modules/analytics/src/logExporters/fusionOTLPLogExporter/HttpClientExporterTransport.ts 0% 100% 100% 0% 5-89
packages/modules/app/src/app/events.ts 100% 100% 100% 100%
packages/react/app/src/analytics/index.ts 0% 0% 0% 0% 1
packages/react/app/src/analytics/useTrackFeature.ts 0% 0% 0% 0% 1-54
Generated in workflow #11420 for commit 8b33a12 by the Vitest Coverage Report Action

@odinr odinr merged commit d38cd60 into main Dec 18, 2025
7 of 9 checks passed
@odinr odinr deleted the feat/analytics/feature branch December 18, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working 💾 CLI fusion framework CLI 👨🏻‍🍳 cookbooks 📚 documentation Improvements or additions to documentation 🚀 feature New feature or request 🧬 Modules 👾 React

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants