@ossy/timesheets 1.9.7 → 1.10.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 +2 -2
- package/src/Definition.js +1 -7
- package/src/en.translations.json +5 -0
- package/src/sv.translations.json +5 -0
- package/src/timesheets.page.jsx +7 -10
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/timesheets",
|
|
3
3
|
"description": "Analytics module — workspace analytics for website traffic",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.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": "
|
|
30
|
+
"gitHead": "d9d31182be64a448d575da432af2830d909ad4b9"
|
|
31
31
|
}
|
package/src/Definition.js
CHANGED
|
@@ -2,12 +2,6 @@ export const Definition = {
|
|
|
2
2
|
id: 'timesheets',
|
|
3
3
|
title: 'Timesheets',
|
|
4
4
|
description: 'Time tracking, reporting, and worklog summaries.',
|
|
5
|
-
|
|
6
|
-
id: 'timesheets',
|
|
7
|
-
enabled: true
|
|
8
|
-
},
|
|
5
|
+
icon: 'calendar',
|
|
9
6
|
statuses: ['beta'],
|
|
10
|
-
actions: ['timesheets.create', 'timesheets.update', 'timesheets.remove'],
|
|
11
|
-
views: ['home.page', 'timesheets.list'],
|
|
12
|
-
tasks: ['timesheets.aggregate']
|
|
13
7
|
}
|
package/src/timesheets.page.jsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
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 { Timesheet } from './Timesheet.jsx'
|
|
5
4
|
import { DataLoader } from '@ossy/calendar'
|
|
6
5
|
import { Definition } from '@ossy/timesheets'
|
|
@@ -15,7 +14,7 @@ export const metadata = {
|
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
export const TimesheetsPage = () => {
|
|
18
|
-
const
|
|
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,26 +22,24 @@ export const TimesheetsPage = () => {
|
|
|
23
22
|
|
|
24
23
|
<View layout="row" justifyContent="space-between" alignItems="center">
|
|
25
24
|
<View layout='row' gap="s" alignItems="center">
|
|
26
|
-
<Title>{
|
|
25
|
+
<Title>{t('timesheets.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
|
-
|
|
31
|
+
{t('design-system.add')}
|
|
33
32
|
</Button>
|
|
34
33
|
</View>
|
|
35
34
|
|
|
36
35
|
<Text style={{ maxWidth: '400px' }}>
|
|
37
|
-
|
|
38
|
-
You can create new timesheets,
|
|
39
|
-
edit existing ones, and delete timesheets that you no longer need.
|
|
36
|
+
{t('timesheets.home.description')}
|
|
40
37
|
</Text>
|
|
41
38
|
|
|
42
39
|
</View>
|
|
43
40
|
|
|
44
41
|
<View gap="m" inset="s">
|
|
45
|
-
<Title variant="secondary">
|
|
42
|
+
<Title variant="secondary">{t('design-system.overview')}</Title>
|
|
46
43
|
|
|
47
44
|
<DataLoader content={<Timesheet />} />
|
|
48
45
|
|