@ossy/consultancy 1.15.6 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ossy/consultancy",
3
3
  "description": "Consultancy feature package — employee, contract, company, and vacation resource templates for Ossy consultants",
4
- "version": "1.15.6",
4
+ "version": "1.16.0",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "module": "./src/index.js",
@@ -27,5 +27,5 @@
27
27
  "@ossy/router-react": "*",
28
28
  "react": "*"
29
29
  },
30
- "gitHead": "72d150cf20ff7ba25b328bc5b429b065c2840b2b"
30
+ "gitHead": "d9d31182be64a448d575da432af2830d909ad4b9"
31
31
  }
package/src/Definition.js CHANGED
@@ -2,13 +2,6 @@ export const Definition = {
2
2
  id: 'consultancy',
3
3
  title: 'Consultancy',
4
4
  description: 'Consultancy information and service presentation views.',
5
- module: {
6
- id: 'consultancy',
7
- enabled: true
8
- },
5
+ icon: 'abstract',
9
6
  statuses: ['beta'],
10
- workspaceServiceKey: '@ossy/consultancy',
11
- actions: [],
12
- views: ['home.page'],
13
- tasks: []
14
7
  }
@@ -1,6 +1,5 @@
1
- import React from 'react'
2
- import { useRouter } from '@ossy/router-react'
3
- import { Title, Text, View, Tags, Button } from '@ossy/design-system'
1
+ import React from 'react'
2
+ import { Title, Text, View, Tags, Button, useLocale } from '@ossy/design-system'
4
3
  import { Overview } from './Overview.jsx'
5
4
  import { DataLoader } from '@ossy/calendar'
6
5
  import { Definition } from '@ossy/consultancy'
@@ -15,7 +14,7 @@ export const metadata = {
15
14
  }
16
15
 
17
16
  export const ConsultancyPage = () => {
18
- const router = useRouter()
17
+ const { t } = useLocale()
19
18
  return (
20
19
  <View gap="m" surface="primary" style={{ padding: 'var(--space-m) var(--space-l)', height: '100%', overflowY: 'auto' }}>
21
20
 
@@ -23,24 +22,24 @@ export const ConsultancyPage = () => {
23
22
 
24
23
  <View layout="row" justifyContent="space-between" alignItems="center">
25
24
  <View layout='row' gap="s" alignItems="center">
26
- <Title>{Definition.title}</Title>
25
+ <Title>{t('consultancy.home.title')}</Title>
27
26
  {moduleStatusTags(Definition).length > 0 && (
28
27
  <Tags tags={moduleStatusTags(Definition)} size="s" />
29
28
  )}
30
29
  </View>
31
30
  <Button variant="cta" disabled={true} prefix="add">
32
- Add
31
+ {t('design-system.add')}
33
32
  </Button>
34
33
  </View>
35
34
 
36
35
  <Text style={{ maxWidth: '400px' }}>
37
- Consultancy overview
36
+ {t('consultancy.home.description')}
38
37
  </Text>
39
38
 
40
39
  </View>
41
40
 
42
41
  <View gap="m" inset="s">
43
- <Title variant="secondary">Overview</Title>
42
+ <Title variant="secondary">{t('design-system.overview')}</Title>
44
43
 
45
44
  <DataLoader content={<Overview />} />
46
45
 
@@ -0,0 +1,5 @@
1
+ {
2
+ "consultancy.home.documentTitle": "Consultancy",
3
+ "consultancy.home.title": "Consultancy",
4
+ "consultancy.home.description": "Consultancy overview"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "consultancy.home.documentTitle": "Konsultverksamhet",
3
+ "consultancy.home.title": "Konsultverksamhet",
4
+ "consultancy.home.description": "Översikt över konsultverksamheten"
5
+ }