-
Notifications
You must be signed in to change notification settings - Fork 9
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
IS-3073: Be om oppfølgingsplan ved flere arbeidsgivere #1635
Conversation
|
||
const texts = { | ||
aktivForesporsel: | ||
"Obs! Det ble bedt om oppfølgingsplan fra denne arbeidsgiveren", | ||
"Obs! Det ble bedt om oppfølgingsplan fra denne arbeidsgiveren", // TODO: Adjust to multiple arbeidsgivere ? |
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.
Må vi endre ordlyden eller logikken rundt når denne vises når vi støtter flere arbeidsgivere?
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.
Jeg tenker det, og kanskje det etterhvert dukker opp et historikk-behov her?
Evt burde vi nok populere historikk-siden med dette ganske snart også 🤔 Må ikke glemme å holde den vedlike.
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.
Lurt med historikk ja 👍
Den aktiv forspørsel-advarselen vises jo nå hvis det finnes en forespørsel for det aktive oppfølgingstilfellet. Så kunne i først omgang bare endret teksten til det, evt vise navn på arbeidsgiveren det er forespurt fra.
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.
Tilpasset alert til å inkludere navn på virksomhet nå 👍
28fc97f
to
485fdb8
Compare
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.
Denne ble litt stor etter hvert så flyttet det som går direkte på BeOmOppfolgingsplan
-funksjonalitet til BeOmOppfolgingsplanTest
Det er også noe med logikken for når man kan be om oppfølgingsplan vi kanskje må se på her. Nå er |
925abdc
to
36cd72b
Compare
36cd72b
to
516ccf6
Compare
<Controller | ||
name="narmesteLeder" | ||
control={control} |
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.
Hva hjelper Controller
oss med?
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.
Vil helst ha NarmesteLederRelasjonDTO
som type på skjemafeltet, men <Radio>
kan ikke ha NarmesteLederRelasjonDTO
som type på value
. Derfor må vi finne nærmeste leder basert på value i onChange
under og sette denne som verdi i field.onChange(selectedNarmesteLeder);
Ut i fra det jeg fant på nettet og chatgpt virket <Controller>
som måten å gjøre det på når man vil ha en custom onChange
:)
Jeg tenker det høres ut som noe vi vil legge opp til ja, at vi sjekker hvor du har aktiv oppfølgingsplan fra. Det må kanskje på plass først? |
|
411adda
to
e20ffcb
Compare
Hva har blitt lagt til✨🌈
Legger til valg av arbeidsgiver når det er flere aktive nærmeste ledere for det aktive oppfølgingstilfellet.
![image](https://private-user-images.githubusercontent.com/79838644/411579758-8640b793-84d0-4945-9f53-8f3a73b24ced.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2Mjg2NzUsIm5iZiI6MTczOTYyODM3NSwicGF0aCI6Ii83OTgzODY0NC80MTE1Nzk3NTgtODY0MGI3OTMtODRkMC00OTQ1LTlmNTMtOGYzYTczYjI0Y2VkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE0MDYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1ZmM0ZjI5NmFiMjRlYzAxNjkxYjc2NGEzMDZiYmI1NmEyZTNmNjA3NGQ3ZmRjM2Q1MTg3OTcyOGE1MDhlYjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.sUP0bs3N01r0RQwpr1kU4PJDyPS6wsm9tBwjkx6z9yI)
Når det bare er én nærmeste leder blir det som før, dvs valget vises ikke:
Dersom det er flere vises radio-knapper med validering:
![image](https://private-user-images.githubusercontent.com/79838644/411580559-97f69dd1-989e-4ad1-9c9a-7a69299fb10d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2Mjg2NzUsIm5iZiI6MTczOTYyODM3NSwicGF0aCI6Ii83OTgzODY0NC80MTE1ODA1NTktOTdmNjlkZDEtOTg5ZS00YWQxLTljOWEtN2E2OTI5OWZiMTBkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE0MDYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTViZDIxYmZhY2U1MWM0YWEzYWU5Y2MwODlkNGQxYzFkNjgyNWY2OWY0MTE5NDI5OTM0NzhmYTI3NjMzYjY1MWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.rDhofuNodPRVGmJGmrbj4vgl7iElnQZ5l7p9Q2adtfQ)
![image](https://private-user-images.githubusercontent.com/79838644/411580645-cd6e5b3d-75b3-4a62-be23-40c20eb97424.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2Mjg2NzUsIm5iZiI6MTczOTYyODM3NSwicGF0aCI6Ii83OTgzODY0NC80MTE1ODA2NDUtY2Q2ZTViM2QtNzViMy00YTYyLWJlMjMtNDBjMjBlYjk3NDI0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE0MDYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3Yjk4YzE1MmUxMWNlMzIxNGYzOWVkMTM2MDBhZmY5N2EyMmU1ZjI5M2IyNjM0NjhkNTVkYjlhZWM5YWJiZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.bIrfsn3ELBxFIg8_3ZvIUiD2bQ5VWEd1YhZVkkpUIb4)
Tanker? Burde vi f.eks vise radio-knapp uansett om det er én eller flere?
TODO