-
Notifications
You must be signed in to change notification settings - Fork 0
Ung deltaker - endret periode oppgave #4003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
ParsedOppgavetypeenum to replace usage of the API'sOppgavetypethroughout 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_PERIODEAPI 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.
No description provided.