Skip to content

Conversation

@eriksson-daniel
Copy link
Contributor

…i Trygderetten

Copilot AI review requested due to automatic review settings October 16, 2025 09:07
Copy link

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

This PR adds support for two new case types related to reopening requests: "Begjæring om gjenopptak" (reopening request) and "Begjæring om gjenopptak i Trygderetten" (reopening request in the Appeals Court). The implementation includes new enums, templates, UI components, and routing to handle these case types throughout the application.

Key changes:

  • Added two new SaksTypeEnum values and six new UtfallEnum values for reopening request outcomes
  • Created five new document templates for reopening request workflows
  • Extended existing components to handle the new case types (filters, tables, forms, etc.)

Reviewed Changes

Copilot reviewed 52 out of 52 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
template-enums.ts Added five template IDs for reopening request documents
kodeverk.ts Added two new case types and six new outcome enums
params.ts Extended type constraints to include reopening request in Appeals Court
oppgavebehandling.ts Added two new case type interfaces to the discriminated union
field-names.ts Mapped field names for new case types
templates.ts Added template arrays and imports for reopening request documents
vedtak.ts, tilsvarsbrev-med-oversendelsesbrev.ts, orientering-om-tilsvar-direkte-til-tr.ts, ettersendelse-til-tr.ts, ekspedisjonsbrev-til-tr.ts Created new template definitions for reopening request workflows
ettersending-til-trygderetten.ts Fixed typo in template title
orientering-om-tilsvar-direkte-til-trygderetten.ts Refactored to use helper function
get-error-data.ts Added debug logging statements
sakstype-to-tag-variant.ts Extracted tag variant mapping to shared module
type.tsx, use-options.tsx Updated to use shared tag variant mapping
label-content.tsx Refactored label generation with new case type support
new-document.tsx, get-title.ts Added template mappings for new case types
Various table components Renamed column key from TypeWithAnkeITrygderetten to TypeWithTrygderetten
sakstype.tsx Added filter options for new case types
open.tsx Added routing buttons for new case types
beskrivelse.tsx, confirm-finish.tsx Added descriptive text for new case types
use-hide-kvalitetsvurdering.ts Excluded new case types from quality assessment
begjæring-om-gjenopptak-detaljer.tsx, begjæring-om-gjenopptak-i-tr-detaljer.tsx Created detail view components
klager.tsx, previous-saksbehandler.tsx, kjennelse-mottatt.tsx, sendt-til-trygderetten.tsx Extended to support new case types
behandling.tsx Added routing to detail components
router.tsx Added routes for new case types
merkantil-task-list.tsx Added path mappings for new case types
tildeling.tsx Fixed grammar for assignment from null case

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@eriksson-daniel eriksson-daniel force-pushed the begjæring branch 8 times, most recently from b5f9b7f to b0c5593 Compare October 22, 2025 12:53
@eriksson-daniel eriksson-daniel force-pushed the begjæring branch 2 times, most recently from 06478e9 to bfcb7d2 Compare October 27, 2025 10:14
@eriksson-daniel eriksson-daniel merged commit 5630cd0 into main Oct 29, 2025
5 checks passed
@eriksson-daniel eriksson-daniel deleted the begjæring branch October 29, 2025 09:48
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