Skip to content
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

OK-670: Henkilöittäin haku ja suodatus #51

Merged
merged 14 commits into from
Nov 8, 2024

Conversation

pretseli
Copy link
Contributor

@pretseli pretseli commented Nov 6, 2024

Oletko lisännyt tarvittavat yksikkö- tai ui-testit toiminnallisuudelle? Kyllä
Oletko tarkistanut ja päivittänyt riippuvuudet? En
Oletko kokeillut toimiiko käyttöliittymä mobiilissa landscape moodissa? Kyllä
Oletko testannut että lisäämäsi toiminto on saavutettava? Kyllä

@pretseli pretseli force-pushed the OK-670-henkiloittain-suodatus branch from c68c804 to ba8dcb9 Compare November 6, 2024 12:12
@pretseli pretseli marked this pull request as ready for review November 6, 2024 12:48
<InfoItem label={t('henkilo.hakemus-oid')} value={hakemus.hakemusOid} />
<InfoItem
label={t('henkilo.lahiosoite')}
value={`${hakemus.lahiosoite}, ${hakemus.postinumero}`}

Choose a reason for hiding this comment

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

Sisältääkö tuo postinumero myös postitoimipaikan?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ei sisällä. Lisäsin tuohon vasta helpoimmat jutut, koska henkilöittäin-näkymän sisällön näyttämiselle on eri tiketti, jonka teen tämän jälkeen.

@@ -90,5 +90,13 @@ export const THEME_OVERRIDES: ThemeOptions = {
}),
},
},
MuiFormHelperText: {

Choose a reason for hiding this comment

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

Jos tää on yleisempi vois jossain kohti laittaa design system -kirjastoon?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kyllä, siinä vaiheessa kun sinne lisätään jokin komponentti jossa tätä käytetään.


const MINIMIZED_PANEL_WIDTH = '60px';

const StyledPanel = styled('aside')({

Choose a reason for hiding this comment

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

Vastaavaan ois valmis Muin Drawer-komponentti mut sinänsä tämäkin ajaa asian.
Nyt paljastan pihallaoloni mutta mikäs palikka tuo 'aside' on?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lonkalta heitän, että on aika paljon työläämpää yrittää vääntää Mui:n Drawer näyttämään ja toimimaan silleen kuin tässä halutaan.
Aside on vain semanttinen HTML-elementti: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside
Nyt kun tarkemmin lueskelin, niin ei ehkä sittenkään ole aivan oikea elementti tähän. Ehkä vaihdan tuon jossain vaiheessa vain div:ksi.

@@ -5,6 +5,53 @@ import VALINTAKOKEET from '@tests/e2e/fixtures/valintakokeet.json';
import VALINTAKOEOSALLISTUMISET from '@tests/e2e/fixtures/valintakoeosallistumiset.json';
import HAKEMUKSET from '@tests/e2e/fixtures/hakeneet.json';

const HAKEMUKSET_BY_OID = {

Choose a reason for hiding this comment

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

👍 kiva että vähennetty testidatan copypastea

await Promise.all([
henkiloSearchInput.fill('123456-123X'),
page.waitForRequest((request) =>
request.url().includes('henkilotunnus=123456-123X'),

Choose a reason for hiding this comment

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

Tässä on nyt assertoitu että se hakuehto tulee searchParamseihin mutta ei sitä että listaus suodattuu sen perusteella (toki apin palauttama asia pitää sitten mockata)

@pretseli pretseli merged commit c917b4c into main Nov 8, 2024
5 checks passed
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