@ossy/storage 3.20.1 → 3.26.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/ResourcesPage.jsx +37 -7
- package/src/SalesSection.jsx +1 -1
- package/src/TaskRunDialog.jsx +1 -1
- package/src/graph.helpers.js +8 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/storage",
|
|
3
3
|
"description": "Analytics module — workspace analytics for website traffic",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.26.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"module": "./src/index.js",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"ramda": "*",
|
|
32
32
|
"react": "*"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "0df308a330150a890b9dd4d6ffc2e9f28bd31966"
|
|
35
35
|
}
|
package/src/ResourcesPage.jsx
CHANGED
|
@@ -671,15 +671,45 @@ export const ResourcesPage = () => {
|
|
|
671
671
|
gap="xs"
|
|
672
672
|
style={{ height: '100%', minHeight: 0, flex: '1 1 auto' }}
|
|
673
673
|
>
|
|
674
|
-
{/*
|
|
675
|
-
|
|
674
|
+
{/* Grid split so the detail panel stretches to the remaining page height.
|
|
675
|
+
Compact: panel replaces the list under 900px, matching ListPanelLayout. */}
|
|
676
|
+
<style href="@ossy/storage/list-panel-compact" precedence="high">{`
|
|
677
|
+
[data-storage-list-panel][data-layout="row"] {
|
|
678
|
+
display: grid;
|
|
679
|
+
grid-template-columns: minmax(0, 1fr);
|
|
680
|
+
grid-template-rows: minmax(0, 1fr);
|
|
681
|
+
align-items: stretch;
|
|
682
|
+
height: 100%;
|
|
683
|
+
min-height: 0;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
[data-storage-list-panel][data-storage-has-panel="true"][data-layout="row"] {
|
|
687
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
[data-storage-list-panel] > [data-storage-list],
|
|
691
|
+
[data-storage-list-panel] > [data-resource-panel] {
|
|
692
|
+
height: 100%;
|
|
693
|
+
max-height: 100%;
|
|
694
|
+
min-height: 0;
|
|
695
|
+
min-width: 0;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
[data-storage-list-panel] > [data-resource-panel] {
|
|
699
|
+
width: 100%;
|
|
700
|
+
}
|
|
701
|
+
|
|
676
702
|
@media (max-width: 900px) {
|
|
703
|
+
[data-storage-list-panel][data-storage-has-panel="true"][data-layout="row"] {
|
|
704
|
+
grid-template-columns: minmax(0, 1fr);
|
|
705
|
+
}
|
|
706
|
+
|
|
677
707
|
[data-storage-list-panel][data-storage-has-panel="true"] > [data-storage-list] {
|
|
678
708
|
display: none;
|
|
679
709
|
}
|
|
680
710
|
|
|
681
711
|
[data-storage-list-panel][data-storage-has-panel="true"] > [data-resource-panel] {
|
|
682
|
-
width: 100
|
|
712
|
+
width: 100%;
|
|
683
713
|
}
|
|
684
714
|
}
|
|
685
715
|
`}</style>
|
|
@@ -741,7 +771,7 @@ export const ResourcesPage = () => {
|
|
|
741
771
|
style={{
|
|
742
772
|
width: '1px',
|
|
743
773
|
height: '16px',
|
|
744
|
-
background: 'var(--separator
|
|
774
|
+
background: 'var(--separator)',
|
|
745
775
|
flexShrink: 0,
|
|
746
776
|
}}
|
|
747
777
|
/>
|
|
@@ -896,7 +926,7 @@ export const ResourcesPage = () => {
|
|
|
896
926
|
gap: 'var(--space-m)',
|
|
897
927
|
minHeight: '40px',
|
|
898
928
|
flexShrink: 0,
|
|
899
|
-
borderBottom: '1px solid var(--separator
|
|
929
|
+
borderBottom: '1px solid var(--separator)',
|
|
900
930
|
}}
|
|
901
931
|
>
|
|
902
932
|
<Text variant="small">
|
|
@@ -1075,7 +1105,7 @@ export const ResourcesPage = () => {
|
|
|
1075
1105
|
gap: 'var(--space-m)',
|
|
1076
1106
|
minHeight: '40px',
|
|
1077
1107
|
flexShrink: 0,
|
|
1078
|
-
borderTop: '1px solid var(--separator
|
|
1108
|
+
borderTop: '1px solid var(--separator)',
|
|
1079
1109
|
}}
|
|
1080
1110
|
>
|
|
1081
1111
|
<Text variant="small">
|
|
@@ -1115,7 +1145,7 @@ export const ResourcesPage = () => {
|
|
|
1115
1145
|
</View>
|
|
1116
1146
|
</View.Item>
|
|
1117
1147
|
|
|
1118
|
-
<ResourcePanel resourceId={selectedResourceId} onClose={clearSelectedResourceId} />
|
|
1148
|
+
<ResourcePanel width="100%" resourceId={selectedResourceId} onClose={clearSelectedResourceId} />
|
|
1119
1149
|
|
|
1120
1150
|
</View>
|
|
1121
1151
|
|
package/src/SalesSection.jsx
CHANGED
|
@@ -35,7 +35,7 @@ export default ({
|
|
|
35
35
|
<View justifyContent="center" alignItems="center">
|
|
36
36
|
<Icon name={x.icon} size="m" />
|
|
37
37
|
</View>
|
|
38
|
-
<Text variant="small" style={{
|
|
38
|
+
<Text variant="small" weight="bold" style={{ textAlign: 'center' }}>{x.title}</Text>
|
|
39
39
|
<Text variant="small" style={{ textAlign: 'center' }}>{x.text}</Text>
|
|
40
40
|
</View>
|
|
41
41
|
))}
|
package/src/TaskRunDialog.jsx
CHANGED
|
@@ -90,7 +90,7 @@ export function TaskRunDialog ({ task, resource, isVisible, onConfirm, onClose }
|
|
|
90
90
|
|
|
91
91
|
return (
|
|
92
92
|
<View key={input.name} gap="xs">
|
|
93
|
-
<Text variant="small"
|
|
93
|
+
<Text variant="small" weight="bold">
|
|
94
94
|
{label}
|
|
95
95
|
{input.required && (
|
|
96
96
|
<Text as="span" variant="small" style={{ color: 'var(--palette-danger)' }}> *</Text>
|
package/src/graph.helpers.js
CHANGED
|
@@ -12,14 +12,14 @@ export const NODE_R = 18 // node circle radius (px at scale 1)
|
|
|
12
12
|
* The hue-rotate trick keeps them visually distinct while staying on-brand.
|
|
13
13
|
*/
|
|
14
14
|
export const GRAPH_COLORS = [
|
|
15
|
-
'var(--
|
|
16
|
-
'color-mix(in srgb, var(--
|
|
17
|
-
'color-mix(in srgb, var(--
|
|
18
|
-
'color-mix(in srgb, var(--
|
|
19
|
-
'color-mix(in srgb, var(--
|
|
20
|
-
'color-mix(in srgb, var(--
|
|
21
|
-
'color-mix(in srgb, var(--
|
|
22
|
-
'color-mix(in srgb, var(--
|
|
15
|
+
'var(--surface-accent)',
|
|
16
|
+
'color-mix(in srgb, var(--surface-accent) 80%, hsl(270deg 70% 60%))',
|
|
17
|
+
'color-mix(in srgb, var(--surface-accent) 60%, hsl(150deg 60% 50%))',
|
|
18
|
+
'color-mix(in srgb, var(--surface-accent) 50%, hsl(30deg 80% 55%))',
|
|
19
|
+
'color-mix(in srgb, var(--surface-accent) 40%, hsl(330deg 70% 55%))',
|
|
20
|
+
'color-mix(in srgb, var(--surface-accent) 70%, hsl(200deg 65% 50%))',
|
|
21
|
+
'color-mix(in srgb, var(--surface-accent) 30%, hsl(60deg 75% 50%))',
|
|
22
|
+
'color-mix(in srgb, var(--surface-accent) 55%, hsl(0deg 70% 55%))',
|
|
23
23
|
]
|
|
24
24
|
|
|
25
25
|
/**
|