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

1481 implement similar positions on recruitmentapplicationformpage #1596

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

Snorre98
Copy link
Contributor

@Snorre98 Snorre98 commented Nov 3, 2024

What

  • Created backend and frontend for fetching positions from tags. This makes it possible to fetch positions similar to each other.

  • Modified seed script to create more realisitc tags.

  • Fixes some rendering issues on RecruitmentApplicationFromPage

  • Bette styling will be done in another PR. The entire page should get a glow-up.
    bilde

Why

Fetching similar positions is a feature on Samf3

closes #1481

@Snorre98 Snorre98 linked an issue Nov 3, 2024 that may be closed by this pull request
@Snorre98 Snorre98 self-assigned this Nov 3, 2024
Copy link
Contributor

@Mathias-a Mathias-a left a comment

Choose a reason for hiding this comment

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

Ikke testa, tror ikke det funker, men kan da ikke være så ille heller

Copy link
Contributor

Choose a reason for hiding this comment

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

Kan kanskje være litt forvirrende om navn og tags ikke stemmer? Ikke så farlig for meg assa

Comment on lines +1360 to +1361
recruitment_id = self.kwargs.get('id')
tags_param = self.request.query_params.get('tags')
Copy link
Contributor

Choose a reason for hiding this comment

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

Funker det ikke å bruke getlist her?

Comment on lines 611 to 612
} as const; No newline at end of file
} as const;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

Comment on lines +178 to +201
{recruitmentPositionsForGang && recruitmentPositionsForGang.length > 0 && (
<div className={styles.other_positions}>
<h2 className={styles.sub_header}>
{t(KEY.recruitment_otherpositions)} {dbT(recruitmentPosition?.gang, 'name')}
</h2>
{recruitmentPositionsForGang.map((pos) => (
<Button
key={pos.id}
display="pill"
theme="outlined"
onClick={() => {
navigate({
url: reverse({
pattern: ROUTES.frontend.recruitment_application,
urlParams: { positionId: pos.id, gangId: pos.gang.id },
}),
});
}}
>
{dbT(pos, 'name')}
</Button>
))}
</div>
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Dette kan flyttes ut i en konstant

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.

Implement similar positions on RecruitmentApplicationFormPage
2 participants