Skip to content

Conversation

@frodehansen2
Copy link
Collaborator

No description provided.

@frodehansen2 frodehansen2 deployed to github-pages January 6, 2026 13:29 — with GitHub Actions Active
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 implements support for new task types related to changed participation periods in the youth program. The changes introduce three new task types: "Meldt ut" (withdrawn), "Endret start og sluttdato" (changed start and end date), and "Fjernet periode" (removed period).

Changes:

  • Introduces ParsedOppgavetype enum to replace usage of the API's Oppgavetype throughout the codebase
  • Adds three new task types with corresponding UI pages, translations, and demo scenarios
  • Refactors task parsing logic to handle the new BEKREFT_ENDRET_PERIODE API type and map it to appropriate parsed types

Reviewed changes

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

Show a summary per file
File Description
Oppgave.ts Defines new task type interfaces and enums for parsed task types
parseOppgaverElement.ts Implements parsing logic for the new period-related tasks
textUtils.tsx Updates text utilities to use ParsedOppgavetype and simplified logic
OppgavePage.tsx Adds routing for new task types
VeilederScenarioHeader.tsx Adds demo scenarios for new task types
meldt-ut/* Implements UI and translations for "Meldt ut" task
fjernet-periode/* Implements UI and translations for "Fjernet periode" task
endret-start-og-sluttdato/* Implements UI and translations for "Endret start og sluttdato" task
i18n/messages/nb.ts Adds Norwegian translations for new task types
scenarios/* Updates mock data and scenarios for testing

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

@frodehansen2 frodehansen2 marked this pull request as ready for review January 15, 2026 08:06
@frodehansen2 frodehansen2 requested a review from a team as a code owner January 15, 2026 08:07
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