Skip to content

Conversation

@bdahle
Copy link
Contributor

@bdahle bdahle commented Nov 17, 2025

Oppsummering av hva som er gjort

  • Støtter arbeidslivssenter-sider i kontorside-malen
  • Rydder også litt i styling og stories for kontorsidene generelt

Henger sammen med navikt/nav-enonicxp#2486

Testing

Testes i dev

@bdahle bdahle linked an issue Nov 17, 2025 that may be closed by this pull request
@bdahle bdahle changed the title Arbeidslivssenter v3 Arbeidslivssenter-sider Nov 17, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

👀 Visual changes detected

Please review the screenshot changes before merging.

@bdahle bdahle marked this pull request as ready for review November 20, 2025 15:48
@bdahle bdahle force-pushed the arbeidslivssenter-v3 branch from b331e92 to d353d39 Compare November 25, 2025 10:28
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 4, 2025

Copy link
Contributor

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 adds support for Arbeidslivssenter (ALS) office pages to the existing office page template. It introduces conditional rendering based on office type and adds new components for ALS-specific features.

Key Changes

  • Added support for ALS office type alongside existing office (LOKAL) and HMS types
  • Introduced new components: Kontaktskjema (contact form) and LinkedIn section for ALS pages
  • Restructured phone and organization information display logic
  • Updated translations for ALS-specific content across all languages (nb/nn/en)

Reviewed changes

Copilot reviewed 22 out of 36 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/nextjs/src/types/content-props/dynamic-page-props.ts Added optional linkedin field to OfficePageProps
packages/nextjs/src/translations/default.ts Added Norwegian translations for ALS-specific content
packages/nextjs/src/translations/nn.ts Added Nynorsk translations for ALS-specific content
packages/nextjs/src/translations/en.ts Split phone time and information translations
packages/nextjs/src/components/pages/office-page/officeDetails/phonePoster/PhonePoster.tsx Added ALS-specific logic for phone information display
packages/nextjs/src/components/pages/office-page/officeDetails/officeInformation/OfficeInformation.tsx Restructured organization and office number display
packages/nextjs/src/components/pages/office-page/officeDetails/kontaktskjema/Kontaktskjema.tsx New component for ALS contact form section
packages/nextjs/src/components/pages/office-page/officeDetails/OfficeDetails.tsx Integrated Kontaktskjema and conditional heading for ALS
packages/nextjs/src/components/pages/office-page/office-page-header/OfficePageHeader.tsx Added ALS tagline support
packages/nextjs/src/components/pages/office-page/linkedIn/LinkedIn.tsx New component for LinkedIn follow section
packages/nextjs/src/components/pages/office-page/OfficePage.tsx Added ALS type handling and LinkedIn component integration
packages/nextjs/src/components/pages/office-page/*.module.scss Updated styling for improved layout and spacing
packages/nextjs/package.json Bumped @navikt/nav-office-reception-info to 1.4.4

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<Heading level="2" size="large" className={styles.header}>
{getOfficeTranslations('youFindUsHere')}
<Heading level="2" size="large">
{officeData.type == 'ALS'
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

Use strict equality operator (===) instead of loose equality (==). This prevents potential type coercion issues.

Copilot uses AI. Check for mistakes.
/>
)}
<PhonePoster officeData={officeData} />
{officeData.type == 'ALS' && <Kontaktskjema />}
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

Use strict equality operator (===) instead of loose equality (==). This prevents potential type coercion issues.

Suggested change
{officeData.type == 'ALS' && <Kontaktskjema />}
{officeData.type === 'ALS' && <Kontaktskjema />}

Copilot uses AI. Check for mistakes.
return (
<div className={styles.kontaktskjema}>
<Heading level="3" size="small" spacing>
Kontaktskjema
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

The heading "Kontaktskjema" is hardcoded in Norwegian. It should use a translation key instead to support all languages (nb/nn/en). Consider adding a translation like getOfficeTranslations('contactForm') and adding the corresponding entries to translation files.

Suggested change
Kontaktskjema
{getOfficeTranslations('contactForm')}

Copilot uses AI. Check for mistakes.
<div className={styles.linkedinWrapper}>
<div className={styles.linkedIn}>
<Heading level="2" size="large" spacing>
Følg oss på LinkedIn
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

The heading "Følg oss på LinkedIn" is hardcoded in Norwegian. It should use a translation key instead to support all languages (nb/nn/en). Consider adding a translation like getOfficeTranslations('followUsOnLinkedIn') and adding the corresponding entries to translation files.

Copilot uses AI. Check for mistakes.
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.

Arbeidslivssenter-sider i ny mal

3 participants