Skip to content

Feature/vise hendelses id frontend#4259

Merged
stigus merged 13 commits into
masterfrom
feature/vise-hendelses-id-frontend
Jun 17, 2026
Merged

Feature/vise hendelses id frontend#4259
stigus merged 13 commits into
masterfrom
feature/vise-hendelses-id-frontend

Conversation

@stigus

@stigus stigus commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

This pull request primarily updates dependencies and improves the flexibility of the DollyTooltip component. The most significant changes are the upgrade of the @typescript-eslint packages and related dependencies, minor updates to other dependencies, and enhancements to tooltip customization and UI styling.

Dependency Upgrades:

  • @typescript-eslint Packages:
    • Upgraded all @typescript-eslint related packages from version 8.60.1 to 8.61.0 in both package.json and pnpm-lock.yaml. This includes eslint-plugin, parser, scope-manager, tsconfig-utils, type-utils, utils, visitor-keys, types, typescript-estree, and project-service. [1] [2] [3] [4] [5]
  • Other Dependency Updates:
    • Upgraded electron-to-chromium from 1.5.368 to 1.5.369, semver from 7.8.2 to 7.8.3, and side-channel from 1.1.0 to 1.1.1 in pnpm-lock.yaml. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Component Enhancements:

  • DollyTooltip Customization:
    • Extended the DollyTooltip component to accept additional props for external tooltip control, such as externalTrigger, externalMouseEnterDelay, externalMouseLeaveDelay, externalPopupVisible, and externalOnVisibleChange. This allows for more flexible usage and integration with external tooltip triggers. [1] [2]

UI Improvements:

  • PersonMiljoeinfo Styling:
    • Added new CSS classes for styling event category headers and counters, as well as improving the appearance of copyable event IDs in the PersonMiljoeinfo view.

Other:

  • Version Bump:
    • Updated the project version from 3.5.4 to 3.5.5 in package.json.

stigus added 4 commits June 10, 2026 14:58
…d persons.

- Implement HendelseIdPersonMiljoeInfo component for rendering event ID information.
- Enhance DollyTooltip to support external tooltip properties.
- Update PersonVisning to include HendelseIdPersonMiljoeInfo.
- Add useHendelseId hook for fetching event ID data.
- Update DollyEndpoints to include endpoint for fetching event IDs.
- Modify DataVisning.less for new styles related to event ID display.
- Bump version in package.json to 3.5.5.
- Update @typescript-eslint/eslint-plugin and @typescript-eslint/parser to version 8.61.0
- Upgrade electron-to-chromium to version 1.5.369
- Bump side-channel to version 1.1.1
- Update semver to version 7.8.3

#deploy-test-dolly-frontend
Copilot AI review requested due to automatic review settings June 11, 2026 07:28
@stigus stigus requested a review from a team as a code owner June 11, 2026 07:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds frontend support for viewing/copying Hendelse-ID (Kafka references) for a person (and related persons) via a new tooltip-based UI, while also extending DollyTooltip to support externally controlled rc-tooltip behavior. In addition, it bumps the app version and updates several JS dependencies (notably @typescript-eslint).

Changes:

  • Add new Hendelse-ID data fetching hook + endpoint builder, and render a new Hendelse-ID section in PersonVisning.
  • Introduce new tooltip content UI (HendelseId* components) + styling for category headers/counters and copyable Hendelse-ID.
  • Extend DollyTooltip with optional external-control props for rc-tooltip, and update TypeScript/lockfile dependencies + version.

Reviewed changes

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

Show a summary per file
File Description
apps/dolly-frontend/src/main/js/src/utils/hooks/useHendelseId.tsx New SWR hook for fetching Hendelse-ID data (optionally for related ident).
apps/dolly-frontend/src/main/js/src/service/services/dolly/DollyEndpoints.tsx Adds hendelseId() endpoint builder used by the new hook/UI.
apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonVisning.tsx Wires new Hendelse-ID section into the person view and passes related persons.
apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonMiljoeinfo/HendelseIdPersonMiljoeInfo.tsx New wrapper section (heading + explanatory text) for Hendelse-ID display.
apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonMiljoeinfo/HendelseIdDataVisning.tsx New tooltip UI to browse grouped events and copy Hendelse-ID values.
apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonMiljoeinfo/DataVisning.less Adds new styles for Hendelse-ID UI elements (category header, counter, copy row).
apps/dolly-frontend/src/main/js/src/components/ui/button/DollyTooltip.tsx Extends tooltip component to accept external-control props for rc-tooltip.
apps/dolly-frontend/src/main/js/pnpm-lock.yaml Dependency lock updates (typescript-eslint, electron-to-chromium, semver, side-channel, etc.).
apps/dolly-frontend/src/main/js/package.json Bumps version to 3.5.5 and updates @typescript-eslint/* versions.
Files not reviewed (1)
  • apps/dolly-frontend/src/main/js/pnpm-lock.yaml: Language not supported

Comment thread apps/dolly-frontend/src/main/js/src/utils/hooks/useHendelseId.tsx
stigus added 8 commits June 12, 2026 11:56
…eadability.

- Enhance styling in DataVisning.less for better layout and error indication.
- Add handling for import status messages in HendelseIdDataVisning.
- Update TidligereBestillinger to filter out invalid IDs before rendering.
- Introduce state management for hover availability in HendelseIdDataVisning.
#deploy-test-dolly-frontend
…ering and functionality.

- Implement mock responses for various scenarios in HendelseIdDataVisning tests.
- Update package dependencies to latest versions for improved stability and features.
#deploy-test-dolly-frontend
… phrase and ensure visibility of 'hovedperson'.

- Modify test to check for the presence of 'hovedperson' instead of 'Gå til hovedperson'.
#deploy-test-dolly-frontend
#deploy-test-dolly-frontend
#deploy-test-dolly-frontend

@betsytraran betsytraran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ser supert ut, bare litt småprik 🤓

- Add warning for duplicate related idents in HendelseIdDataVisning
- Change Alert component to StyledAlert for import notification
- Refactor related persons handling to ensure uniqueness
- Adjust button class for consistent styling

#deploy-test-dolly-frontend
@stigus stigus merged commit 0a1b5ba into master Jun 17, 2026
13 checks passed
@stigus stigus deleted the feature/vise-hendelses-id-frontend branch June 17, 2026 14:08
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