Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Commit 78db999

Browse files
authored
chore: adopt hightide 0.1.4 for tasks (#1238)
* chore: apply changes and attribute-renaming to several files * chore: update translation * chore: update card design * chore: make changes to properties * fix: fix lint
1 parent e70d2d7 commit 78db999

79 files changed

Lines changed: 736 additions & 804 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

customer/components/ContractList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Languages } from '@helpwave/hightide'
1+
import type { Translation } from '@helpwave/hightide'
22
import type { PropsForTranslation } from '@helpwave/hightide'
33
import { useTranslation } from '@helpwave/hightide'
44
import { useContractsForProductsQuery } from '@/api/mutations/contract_mutations'
@@ -12,7 +12,7 @@ type ContractListTranslation = {
1212
show: string,
1313
}
1414

15-
const defaultContractListTranslations: Record<Languages, ContractListTranslation> = {
15+
const defaultContractListTranslations: Translation<ContractListTranslation> = {
1616
en: {
1717
contracts: 'Contracts',
1818
noContracts: 'No Contracts',

customer/components/layout/MobileNavigationOverlay.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Languages } from '@helpwave/hightide'
1+
import type { Translation } from '@helpwave/hightide'
22
import { languagesLocalNames } from '@helpwave/hightide'
33
import { useLanguage } from '@helpwave/hightide'
44
import { useRouter } from 'next/router'
@@ -16,7 +16,7 @@ import { SolidButton } from '@helpwave/hightide'
1616

1717
type MobileNavigationOverlayTranslation = { navigation: string, logout: string }
1818

19-
const defaultMobileNavigationOverlayTranslation: Record<Languages, MobileNavigationOverlayTranslation> = {
19+
const defaultMobileNavigationOverlayTranslation: Translation<MobileNavigationOverlayTranslation> = {
2020
en: {
2121
navigation: 'Navigation',
2222
logout: 'Logout'

customer/components/layout/NavigationSidebar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { Languages } from '@helpwave/hightide'
21
import { languagesLocalNames } from '@helpwave/hightide'
32
import { useLanguage } from '@helpwave/hightide'
43
import clsx from 'clsx'
@@ -16,7 +15,7 @@ import { useTranslation } from '@helpwave/hightide'
1615
import { OIDC_PROVIDER } from '@/api/config'
1716

1817
export type NavItem = {
19-
name: Record<Languages, string>,
18+
name: Translation<string>,
2019
icon?: ReactNode,
2120
url: string,
2221
isExternal?: boolean,

customer/components/layout/Page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import type { HeaderProps } from '@/components/layout/Header'
77
import { Header } from '@/components/layout/Header'
88
import Link from 'next/link'
99
import { Helpwave } from '@helpwave/hightide'
10-
import type { Languages } from '@helpwave/hightide'
10+
import type { Translation } from '@helpwave/hightide'
1111
import { useTranslation } from '@helpwave/hightide'
1212
import { Menu, MessageCircleQuestionIcon, Package, Receipt, Section, Settings } from 'lucide-react'
1313
import Head from 'next/head'
1414
import { MobileNavigationOverlay } from '@/components/layout/MobileNavigationOverlay'
1515

1616
type PageTranslation = { customer: string }
1717

18-
const defaultPageTranslationTranslation: Record<Languages, PageTranslation> = {
18+
const defaultPageTranslationTranslation: Translation<PageTranslation> = {
1919
en: {
2020
customer: 'customer',
2121
},

customer/components/pages/create-organization.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Languages } from '@helpwave/hightide'
1+
import type { Translation } from '@helpwave/hightide'
22
import { useTranslation, type PropsForTranslation } from '@helpwave/hightide'
33
import { Page } from '@/components/layout/Page'
44
import titleWrapper from '@/utils/titleWrapper'
@@ -11,7 +11,7 @@ type CreateOrganizationTranslation = {
1111
createOrganizationDescription: string,
1212
}
1313

14-
const defaultCreateOrganizationTranslations: Record<Languages, CreateOrganizationTranslation> = {
14+
const defaultCreateOrganizationTranslations: Translation<CreateOrganizationTranslation> = {
1515
en: {
1616
createOrganization: 'Create Organization',
1717
createOrganizationDescription: 'You must create a Organization to use our Service.'

customer/components/pages/login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Languages } from '@helpwave/hightide'
1+
import type { Translation } from '@helpwave/hightide'
22
import { useTranslation, type PropsForTranslation } from '@helpwave/hightide'
33
import { Page } from '@/components/layout/Page'
44
import titleWrapper from '@/utils/titleWrapper'
@@ -12,7 +12,7 @@ type LoginTranslation = {
1212
register: string,
1313
}
1414

15-
const defaultLoginTranslations: Record<Languages, LoginTranslation> = {
15+
const defaultLoginTranslations: Translation<LoginTranslation> = {
1616
en: {
1717
login: 'Login',
1818
email: 'Email',

customer/pages/404.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Helpwave } from '@helpwave/hightide'
22
import type { NextPage } from 'next'
33
import Link from 'next/link'
4-
import type { Languages } from '@helpwave/hightide'
4+
import type { Translation } from '@helpwave/hightide'
55
import type { PropsForTranslation } from '@helpwave/hightide'
66
import { useTranslation } from '@helpwave/hightide'
77
import titleWrapper from '@/utils/titleWrapper'
@@ -14,7 +14,7 @@ type NotFoundTranslation = {
1414
homePage:string,
1515
}
1616

17-
const defaultNotFoundTranslation: Record<Languages, NotFoundTranslation> = {
17+
const defaultNotFoundTranslation: Translation<NotFoundTranslation> = {
1818
en: {
1919
notFound: '404 - Page not found',
2020
notFoundDescription1: 'This is definitely not the page you\'re looking for',

customer/pages/auth/callback.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import type { NextPage } from 'next'
4-
import type { Languages } from '@helpwave/hightide'
4+
import type { Translation } from '@helpwave/hightide'
55
import { useTranslation, type PropsForTranslation } from '@helpwave/hightide'
66
import { Page } from '@/components/layout/Page'
77
import titleWrapper from '@/utils/titleWrapper'
@@ -18,7 +18,7 @@ type AuthCallbackTranslation = {
1818
home: string,
1919
}
2020

21-
const defaultAuthCallbackTranslations: Record<Languages, AuthCallbackTranslation> = {
21+
const defaultAuthCallbackTranslations: Translation<AuthCallbackTranslation> = {
2222
en: {
2323
callback: 'Authentication-Callback',
2424
authenticationFailure: 'There was an error during authentication.',

customer/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { NextPage } from 'next'
2-
import type { Languages } from '@helpwave/hightide'
2+
import type { Translation } from '@helpwave/hightide'
33
import { useTranslation, type PropsForTranslation } from '@helpwave/hightide'
44
import { Page } from '@/components/layout/Page'
55
import titleWrapper from '@/utils/titleWrapper'
@@ -13,7 +13,7 @@ type DashboardTranslation = {
1313
dashboard: string,
1414
}
1515

16-
const defaultDashboardTranslations: Record<Languages, DashboardTranslation> = {
16+
const defaultDashboardTranslations: Translation<DashboardTranslation> = {
1717
en: {
1818
dashboard: 'Dashboard'
1919
},

customer/pages/invoices/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { NextPage } from 'next'
2-
import { type Languages } from '@helpwave/hightide'
2+
import { type Translation } from '@helpwave/hightide'
33
import { useTranslation, type PropsForTranslation } from '@helpwave/hightide'
44
import { Page } from '@/components/layout/Page'
55
import titleWrapper from '@/utils/titleWrapper'
@@ -37,7 +37,7 @@ type InvoicesTranslation = {
3737
allPayed: string,
3838
} & InvoiceStatusTranslation & ProductPlanTypeTranslation
3939

40-
const defaultInvoicesTranslations: Record<Languages, InvoicesTranslation> = {
40+
const defaultInvoicesTranslations: Translation<InvoicesTranslation> = {
4141
en: {
4242
...defaultInvoiceStatusTranslation.en,
4343
...defaultProductPlanTypeTranslation.en,

0 commit comments

Comments
 (0)