Skip to content

Commit

Permalink
chore(portals-my-pages): Move libs (#16370)
Browse files Browse the repository at this point in the history
* Move

* Fix eslintrc extend path

* Update jest path

* Update jest path

* jest config root dir

* test

* root dir

* Core

* Cleanup

* Update system e2e import

* Test l n o

* Test l n o 2

* Update paths

* Fix paths

* fix import

* move introwrapper

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and jonnigs committed Nov 26, 2024
1 parent 32943d6 commit 542d8c7
Show file tree
Hide file tree
Showing 1,062 changed files with 2,133 additions and 1,607 deletions.
24 changes: 12 additions & 12 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/apps/application-system/ @island-is/norda-applications
/apps/web*/ @island-is/juni @island-is/stefna
/libs/application/ @island-is/norda-applications
/libs/service-portal/ @island-is/hugsmidjan
/libs/portals/my-pages/ @island-is/hugsmidjan
/libs/portals/admin/ @island-is/aranja
/libs/portals/core/ @island-is/aranja @island-is/hugsmidjan
/libs/shared/connected/ @island-is/stefna
Expand All @@ -36,13 +36,13 @@
/libs/clients/rsk/ @island-is/juni
/libs/clients/zendesk/ @island-is/juni
/libs/icelandic-names-registry/ @island-is/juni
/libs/service-portal/petitions/ @island-is/juni
/libs/service-portal/signature-collection/ @island-is/juni
/libs/service-portal/education/ @island-is/juni @island-is/hugsmidjan
/libs/service-portal/education-career/ @island-is/juni @island-is/hugsmidjan
/libs/service-portal/education-degree/ @island-is/juni @island-is/hugsmidjan
/libs/service-portal/education-license/ @island-is/juni @island-is/hugsmidjan
/libs/service-portal/education-student-assessment/ @island-is/juni @island-is/norda @island-is/hugsmidjan
/libs/portals/my-pages/petitions/ @island-is/juni
/libs/portals/my-pages/signature-collection/ @island-is/juni
/libs/portals/my-pages/education/ @island-is/juni @island-is/hugsmidjan
/libs/portals/my-pages/education-career/ @island-is/juni @island-is/hugsmidjan
/libs/portals/my-pages/education-degree/ @island-is/juni @island-is/hugsmidjan
/libs/portals/my-pages/education-license/ @island-is/juni @island-is/hugsmidjan
/libs/portals/my-pages/education-student-assessment/ @island-is/juni @island-is/norda @island-is/hugsmidjan
/libs/clients/driving-license/ @island-is/juni
/libs/clients/judicial-administration/ @island-is/juni
/libs/application/templates/announcement-of-death/ @island-is/juni
Expand Down Expand Up @@ -104,9 +104,9 @@ libs/clients/rsk/relationships/
/libs/clients/sessions @island-is/aranja
/libs/portals/shared-modules/delegations @island-is/aranja
/libs/portals/admin/ids-admin @island-is/aranja
/libs/service-portal/consent @island-is/aranja
/libs/service-portal/restrictions @island-is/aranja
/libs/service-portal/sessions @island-is/aranja
/libs/portals/my-pages/consent @island-is/aranja
/libs/portals/my-pages/restrictions @island-is/aranja
/libs/portals/my-pages/sessions @island-is/aranja
/apps/native/app/ @island-is/aranja-app
codemagic.yaml @island-is/aranja-app
/apps/web/public/.well-known/ @island-is/aranja-app
Expand Down Expand Up @@ -230,7 +230,7 @@ codemagic.yaml
/libs/application/template-api-modules/src/lib/modules/templates/data-protection-complaint/ @island-is/norda
/libs/shared/form-fields/ @island-is/norda @island-is/island-ui

/libs/service-portal/applications/ @island-is/norda-applications
/libs/portals/my-pages/applications/ @island-is/norda-applications
/libs/portals/admin/application-system/ @island-is/norda-applications
/libs/api/domains/application/ @island-is/norda-applications
/libs/api/domains/payment/ @island-is/norda-applications
Expand Down
4 changes: 2 additions & 2 deletions apps/portals/my-pages/src/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { AuthProvider } from '@island.is/auth/react'
import { ApolloProvider } from '@apollo/client'
import { client } from '@island.is/service-portal/graphql'
import { client } from '@island.is/portals/my-pages/graphql'
import { LocaleProvider } from '@island.is/localization'
import { defaultLanguage } from '@island.is/shared/constants'
import { ServicePortalPaths } from '@island.is/service-portal/core'
import { ServicePortalPaths } from '@island.is/portals/my-pages/core'
import { FeatureFlagProvider } from '@island.is/react/feature-flags'
import { ApplicationErrorBoundary, PortalRouter } from '@island.is/portals/core'
import { modules } from '../lib/modules'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { zIndex } from '@island.is/service-portal/constants'
import { zIndex } from '@island.is/portals/my-pages/constants'
import { style } from '@vanilla-extract/css'

export const container = style({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Cookies from 'js-cookie'
import { AlertBanner, Box, Stack } from '@island.is/island-ui/core'
import { AlertBannerVariants } from '@island.is/island-ui/core'
import { AlertBannerType } from '@island.is/service-portal/graphql'
import { AlertBannerType } from '@island.is/portals/my-pages/graphql'
import { forwardRef } from 'react'
import * as styles from './Banners.css'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ServicePortalNavigationItem,
m,
useDynamicRoutesWithNavigation,
} from '@island.is/service-portal/core'
} from '@island.is/portals/my-pages/core'
import { theme } from '@island.is/island-ui/theme'

import { isDefined } from '@island.is/shared/utils'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Box, Icon, Text } from '@island.is/island-ui/core'
import { useLocale } from '@island.is/localization'
import { m } from '@island.is/service-portal/core'
import { m } from '@island.is/portals/my-pages/core'
import * as styles from './DocumentsEmpty.css'

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion apps/portals/my-pages/src/components/Greeting/Greeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '@island.is/island-ui/core'
import { useLocale } from '@island.is/localization'
import { useAuth } from '@island.is/auth/react'
import { m } from '@island.is/service-portal/core'
import { m } from '@island.is/portals/my-pages/core'
import * as styles from './Greeting.css'

const Greeting: FC<React.PropsWithChildren<{}>> = () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/portals/my-pages/src/components/Header/Header.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
SERVICE_PORTAL_HEADER_HEIGHT_LG,
SERVICE_PORTAL_HEADER_HEIGHT_SM,
zIndex,
} from '@island.is/service-portal/constants'
} from '@island.is/portals/my-pages/constants'
import { theme, themeUtils } from '@island.is/island-ui/theme'

export const header = style({
Expand Down
4 changes: 2 additions & 2 deletions apps/portals/my-pages/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import {
LinkResolver,
ServicePortalPaths,
m,
} from '@island.is/service-portal/core'
import { DocumentsPaths } from '@island.is/service-portal/documents'
} from '@island.is/portals/my-pages/core'
import { DocumentsPaths } from '@island.is/portals/my-pages/documents'
import { UserLanguageSwitcher, UserMenu } from '@island.is/shared/components'
import { useEffect, useRef, useState } from 'react'
import { Link } from 'react-router-dom'
Expand Down
11 changes: 7 additions & 4 deletions apps/portals/my-pages/src/components/Layout/FullWidthLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ import {
m,
ModuleAlertBannerSection,
TabNavigation,
} from '@island.is/service-portal/core'
} from '@island.is/portals/my-pages/core'
import * as styles from './Layout.css'
import { useLocale } from '@island.is/localization'
import { PortalNavigationItem } from '@island.is/portals/core'
import { IntroHeader, ServicePortalPaths } from '@island.is/service-portal/core'
import {
IntroHeader,
ServicePortalPaths,
} from '@island.is/portals/my-pages/core'
import { Link, matchPath, useNavigate } from 'react-router-dom'
import { DocumentsPaths } from '@island.is/service-portal/documents'
import { DocumentsPaths } from '@island.is/portals/my-pages/documents'
import { theme } from '@island.is/island-ui/theme'
import { useAuth } from '@island.is/auth/react'
import { DocumentsScope } from '@island.is/auth/scopes'
import { FinancePaths } from '@island.is/service-portal/finance'
import { FinancePaths } from '@island.is/portals/my-pages/finance'

interface FullWidthLayoutWrapperProps {
activeParent?: PortalNavigationItem
Expand Down
4 changes: 2 additions & 2 deletions apps/portals/my-pages/src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import AuthOverlay from '../Loaders/AuthOverlay/AuthOverlay'
import { useLocation } from 'react-router-dom'
import { useNamespaces } from '@island.is/localization'
import { GlobalAlertBannerSection } from '../AlertBanners/GlobalAlertBannerSection'
import { useAlertBanners } from '@island.is/service-portal/graphql'
import { useAlertBanners } from '@island.is/portals/my-pages/graphql'
import { useMeasure } from 'react-use'
import { useDynamicRoutesWithNavigation } from '@island.is/service-portal/core'
import { useDynamicRoutesWithNavigation } from '@island.is/portals/my-pages/core'
import { useActiveModule } from '@island.is/portals/core'
import { MAIN_NAVIGATION } from '../../lib/masterNavigation'
import FullWidthLayout from './FullWidthLayout'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ServicePortalNavigationItem,
ModuleAlertBannerSection,
GoBack,
} from '@island.is/service-portal/core'
} from '@island.is/portals/my-pages/core'
import { useLocale } from '@island.is/localization'
import { useWindowSize } from 'react-use'
import SidebarLayout from './SidebarLayout'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { style } from '@vanilla-extract/css'
import { theme, themeUtils } from '@island.is/island-ui/theme'
import { SERVICE_PORTAL_HEADER_HEIGHT_LG } from '@island.is/service-portal/constants'
import { SERVICE_PORTAL_HEADER_HEIGHT_LG } from '@island.is/portals/my-pages/constants'
const top = SERVICE_PORTAL_HEADER_HEIGHT_LG
const sidebarWidth = {
desktop: '318px',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { keyframes, style } from '@vanilla-extract/css'
import { zIndex } from '@island.is/service-portal/constants'
import { zIndex } from '@island.is/portals/my-pages/constants'

const overlayAnimation = keyframes({
'0%': {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useAuth } from '@island.is/auth/react'
import { Text } from '@island.is/island-ui/core'
import { useLocale } from '@island.is/localization'
import { m } from '@island.is/service-portal/core'
import { m } from '@island.is/portals/my-pages/core'

import * as styles from './AuthOverlay.css'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { Box, Button } from '@island.is/island-ui/core'
import { useLocale } from '@island.is/localization'
import { theme } from '@island.is/island-ui/theme'
import { useWindowSize } from 'react-use'
import { m } from '@island.is/service-portal/core'
import { m } from '@island.is/portals/my-pages/core'
import NotificationMenu from './NotificationMenu'
import { MenuTypes } from '../Header/Header'
import * as styles from './Notifications.css'
import {
useGetUserNotificationsOverviewQuery,
useMarkAllNotificationsAsSeenMutation,
} from '@island.is/service-portal/information'
} from '@island.is/portals/my-pages/information'

interface Props {
setMenuState: (val: MenuTypes) => void
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC, useRef } from 'react'
import { Box, Text } from '@island.is/island-ui/core'
import { dateFormat } from '@island.is/shared/constants'
import { LinkResolver } from '@island.is/service-portal/core'
import { LinkResolver } from '@island.is/portals/my-pages/core'
import format from 'date-fns/format'
import cn from 'classnames'
import * as styles from './Notifications.css'
Expand All @@ -10,11 +10,11 @@ import {
NotificationMetadata,
NotificationSender,
} from '@island.is/api/schema'
import { AvatarImage } from '@island.is/service-portal/documents'
import { AvatarImage } from '@island.is/portals/my-pages/documents'
import {
COAT_OF_ARMS,
resolveLink,
} from '@island.is/service-portal/information'
} from '@island.is/portals/my-pages/information'

interface Props {
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import {
ModalBase,
Text,
} from '@island.is/island-ui/core'
import { LinkResolver } from '@island.is/service-portal/core'
import { LinkResolver } from '@island.is/portals/my-pages/core'
import {
GetUserNotificationsOverviewQuery,
InformationPaths,
} from '@island.is/service-portal/information'
} from '@island.is/portals/my-pages/information'
import { sharedMessages } from '@island.is/shared/translations'
import { useLocale, useNamespaces } from '@island.is/localization'
import { theme } from '@island.is/island-ui/theme'
import { useWindowSize } from 'react-use'
import { m } from '@island.is/service-portal/core'
import { m } from '@island.is/portals/my-pages/core'
import NotificationLine from './NotificationLine'
import cn from 'classnames'
import * as styles from './Notifications.css'
Expand Down
2 changes: 1 addition & 1 deletion apps/portals/my-pages/src/components/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Suspense } from 'react'
import { Outlet } from 'react-router-dom'
import { UserProfileLocale } from '@island.is/shared/components'
import { UserOnboarding } from '@island.is/service-portal/information'
import { UserOnboarding } from '@island.is/portals/my-pages/information'
import { Layout } from './Layout/Layout'

export const Root = () => (
Expand Down
4 changes: 2 additions & 2 deletions apps/portals/my-pages/src/components/Sidemenu/Sidemenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import {
ServicePortalPaths,
useDynamicRoutesWithNavigation,
} from '@island.is/service-portal/core'
} from '@island.is/portals/my-pages/core'
import * as styles from './Sidemenu.css'
import { sharedMessages } from '@island.is/shared/translations'
import { useLocale, useNamespaces } from '@island.is/localization'
Expand All @@ -19,7 +19,7 @@ import { theme } from '@island.is/island-ui/theme'
import { useWindowSize } from 'react-use'
import cn from 'classnames'
import SidemenuItem from './SidemenuItem'
import { m } from '@island.is/service-portal/core'
import { m } from '@island.is/portals/my-pages/core'

interface Props {
setSideMenuOpen: (status: boolean) => void
Expand Down
2 changes: 1 addition & 1 deletion apps/portals/my-pages/src/components/Sticky/Sticky.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React, {
useState,
} from 'react'
import { theme } from '@island.is/island-ui/theme'
import { SERVICE_PORTAL_HEADER_HEIGHT_LG } from '@island.is/service-portal/constants'
import { SERVICE_PORTAL_HEADER_HEIGHT_LG } from '@island.is/portals/my-pages/constants'
interface Props {
top?: number
constantSticky?: boolean
Expand Down
34 changes: 17 additions & 17 deletions apps/portals/my-pages/src/lib/masterNavigation.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import { PortalNavigationItem, m } from '@island.is/portals/core'
import { restrictionsNavigation } from '@island.is/service-portal/restrictions'
import { documentsNavigation } from '@island.is/service-portal/documents'
import { financeNavigation } from '@island.is/service-portal/finance'
import { applicationsNavigation } from '@island.is/service-portal/applications'
import { assetsNavigation } from '@island.is/service-portal/assets'
import { educationNavigation } from '@island.is/service-portal/education'
import { restrictionsNavigation } from '@island.is/portals/my-pages/restrictions'
import { documentsNavigation } from '@island.is/portals/my-pages/documents'
import { financeNavigation } from '@island.is/portals/my-pages/finance'
import { applicationsNavigation } from '@island.is/portals/my-pages/applications'
import { assetsNavigation } from '@island.is/portals/my-pages/assets'
import { educationNavigation } from '@island.is/portals/my-pages/education'
import {
companyNavigation,
informationNavigation,
} from '@island.is/service-portal/information'
import { licenseNavigation } from '@island.is/service-portal/licenses'
import { occupationalLicensesNavigation } from '@island.is/service-portal/occupational-licenses'
import { airDiscountNavigation } from '@island.is/service-portal/air-discount'
import { healthNavigation } from '@island.is/service-portal/health'
} from '@island.is/portals/my-pages/information'
import { licenseNavigation } from '@island.is/portals/my-pages/licenses'
import { occupationalLicensesNavigation } from '@island.is/portals/my-pages/occupational-licenses'
import { airDiscountNavigation } from '@island.is/portals/my-pages/air-discount'
import { healthNavigation } from '@island.is/portals/my-pages/health'
import {
delegationsNavigation,
delegationsNavigationChildren,
} from '@island.is/portals/shared-modules/delegations'
import { sessionsNavigation } from '@island.is/service-portal/sessions'
import { consentNavigation } from '@island.is/service-portal/consent'
import { ServicePortalPaths } from '@island.is/service-portal/core'
import { socialInsuranceMaintenanceNavigation } from '@island.is/service-portal/social-insurance-maintenance'
import { lawAndOrderNavigation } from '@island.is/service-portal/law-and-order'
import { companySignatureCollectionNavigation } from '@island.is/service-portal/signature-collection'
import { sessionsNavigation } from '@island.is/portals/my-pages/sessions'
import { consentNavigation } from '@island.is/portals/my-pages/consent'
import { ServicePortalPaths } from '@island.is/portals/my-pages/core'
import { socialInsuranceMaintenanceNavigation } from '@island.is/portals/my-pages/social-insurance-maintenance'
import { lawAndOrderNavigation } from '@island.is/portals/my-pages/law-and-order'
import { companySignatureCollectionNavigation } from '@island.is/portals/my-pages/signature-collection'

export const rootNavigationItem: PortalNavigationItem = {
name: m.overview,
Expand Down
Loading

0 comments on commit 542d8c7

Please sign in to comment.