Skip to content

feat: [DHIS2-21176] Analytics table hooks list#864

Open
henrikmv wants to merge 4 commits intodevfrom
hv/feat/DHIS2-21176_AnalyticsTableHooksList
Open

feat: [DHIS2-21176] Analytics table hooks list#864
henrikmv wants to merge 4 commits intodevfrom
hv/feat/DHIS2-21176_AnalyticsTableHooksList

Conversation

@henrikmv
Copy link
Copy Markdown
Contributor

@henrikmv henrikmv commented Apr 12, 2026

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 12, 2026

Deploy Preview for dhis2-maintenance-app-beta ready!

Name Link
🔨 Latest commit 23a9e0c
🔍 Latest deploy log https://app.netlify.com/projects/dhis2-maintenance-app-beta/deploys/69dbed49dd84f40008756145
😎 Deploy Preview https://deploy-preview-864.maintenance-app-beta.netlify.dhis2.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@henrikmv henrikmv changed the base branch from master to dev April 12, 2026 19:07
@henrikmv henrikmv requested a review from Copilot April 12, 2026 19:07
Copy link
Copy Markdown

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.

Pull request overview

Adds support for listing Analytics Table Hooks in the app, including view configuration, schema/mocks, and standard list-page tests.

Changes:

  • Introduces a new analyticsTableHooks List page wired into the existing lazy-route mechanism.
  • Adds a Zod list schema + test builder support for generating mock analytics table hook items.
  • Registers list view column configuration and adds translations for newly surfaced fields.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/testUtils/builders.ts Adds testAnalyticsTableHook builder using the new list schema for list tests.
src/pages/analyticsTableHooks/List.tsx Implements the List route component via DefaultSectionList.
src/pages/analyticsTableHooks/List.spec.tsx Adds default list test suite for the new section using schema + builder.
src/pages/analyticsTableHooks/form/index.ts Exposes the analytics table hook list schema for reuse.
src/pages/analyticsTableHooks/form/analyticsTableHookSchema.ts Defines the Zod schema for analytics table hook list items (incl. enums + default list columns).
src/lib/sectionList/listViews/sectionListViewsConfig.ts Registers analyticsTableHook list column configuration (default + additional available columns).
src/lib/constants/translatedModelProperties.ts Adds translations for analyticsTableType, phase, resourceTableType, and sql.
src/mocks/schema/analyticsTableHooksSchema.json Adds mocked schema JSON used by list tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants