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

Legg til arbiedsgiverkort #34

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open

Legg til arbiedsgiverkort #34

wants to merge 36 commits into from

Conversation

joarau
Copy link
Contributor

@joarau joarau commented Mar 14, 2025

No description provided.

joarau and others added 30 commits March 10, 2025 15:38
Co-authored-by: Vilde Stefferud <[email protected]>
Co-authored-by: Vilde Stefferud <[email protected]>
@Wiklem Wiklem requested a review from Copilot March 14, 2025 15:23
Copy link

@Copilot 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 introduces a new employer card feature to the rekrutteringstreff application, allowing users to add and display employers associated with an event. Key changes include:

  • Addition of new components (Arbeidsgivere, LeggTilArbeidsgiverModal, and updates to RekrutteringstreffDetaljerKort) to handle employer listing and creation.
  • Implementation of new API hooks and endpoints (useRekrutteringstreffArbeidsgivere and leggtilNyArbeidsgiver) with corresponding Mirage mocks.
  • Integration of the new employer functionality into the overall tab-based layout for rekrutteringstreff.

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
app/rekrutteringstreff/[rekrutteringstreffId]/components/arbeidsgivere/Arbeidsgivere.tsx New component for displaying a list of employers.
app/rekrutteringstreff/[rekrutteringstreffId]/components/LeggTilArbeidsgiverModal.tsx New modal component for adding an employer.
app/rekrutteringstreff/[rekrutteringstreffId]/RekrutteringstreffContext.tsx Context provider updates to support employer operations.
app/rekrutteringstreff/[rekrutteringstreffId]/components/om-treffet/OmTreffet.tsx Minor updates integrating employer-related UI.
app/api/rekrutteringstreff/[...slug]/useArbeidsgivere.tsx New hook for fetching employers with an endpoint issue.
app/api/rekrutteringstreff/[...slug]/ny-arbeidsgiver/leggTilNyArbeidsgiver.ts Endpoint and API call updates for adding a new employer.
app/rekrutteringstreff/[rekrutteringstreffId]/components/RekrutteringstreffDetaljerKort.tsx Updated card UI to include the new LeggTilArbeidsgiverModal.
app/rekrutteringstreff/[rekrutteringstreffId]/Rekrutteringstreff.tsx Updated tabbed interface to incorporate employer functionality.
mocks/* Updates to Mirage mocks to support the new API endpoints.

Comment on lines +13 to +14
`${RekrutteringstreffAPI.internUrl}/${id}/arbeidsgivere}`;

Copy link
Preview

Copilot AI Mar 14, 2025

Choose a reason for hiding this comment

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

The endpoint string has an extra closing brace. It should be corrected to remove the trailing '}' to correctly form the URL.

Suggested change
`${RekrutteringstreffAPI.internUrl}/${id}/arbeidsgivere}`;
`${RekrutteringstreffAPI.internUrl}/${id}/arbeidsgivere`;

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
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.

3 participants