@ossy/storage 3.21.0 → 3.27.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/storage",
3
3
  "description": "Analytics module — workspace analytics for website traffic",
4
- "version": "3.21.0",
4
+ "version": "3.27.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": "f3eeb810cfdd6eb8be7951eb767669fa29a1b3d8"
34
+ "gitHead": "f72042c42723468c010d0d9744ad69257143d0b9"
35
35
  }
@@ -115,6 +115,11 @@ export const ResourcesPage = () => {
115
115
  const sdk = useSdk()
116
116
  const app = useApp()
117
117
  const { data: workspace = {} } = sdk.read(GetWorkspace)
118
+ const { data: integrationList } = sdk.read({ id: '@ossy/platform/actions/list-integrations' })
119
+ const connectedIntegrationIds = useMemo(
120
+ () => (Array.isArray(integrationList?.integrations) ? integrationList.integrations : []),
121
+ [integrationList],
122
+ )
118
123
  const [overlay, setOverlay] = useState(Overlays.None)
119
124
  const [viewMode, setViewMode] = useState(ViewMode.List)
120
125
  const [addMenuOpen, setAddMenuOpen] = useState(false)
@@ -490,7 +495,7 @@ export const ResourcesPage = () => {
490
495
  {t('storage.resources.move')}
491
496
  </ContextMenu.Item>,
492
497
  ...(() => {
493
- const matchingTasks = tasksForResource(taskCatalog, resource)
498
+ const matchingTasks = tasksForResource(taskCatalog, resource, { connectedIntegrationIds })
494
499
  .filter(task => !task.package || isServiceEntitled(workspace?.services, task.package))
495
500
  if (!matchingTasks.length) return []
496
501
  return [
@@ -523,7 +528,7 @@ export const ResourcesPage = () => {
523
528
  ]
524
529
  }
525
530
 
526
- }), [displayResources, activePath, storageHomeHref, openLocation, onMoveResource, onUploadFiles, onRemoveResource, setSelectedResourceId, t, messages, taskCatalog, runResourceTask])
531
+ }), [displayResources, activePath, storageHomeHref, openLocation, onMoveResource, onUploadFiles, onRemoveResource, setSelectedResourceId, t, messages, taskCatalog, runResourceTask, workspace, connectedIntegrationIds])
527
532
 
528
533
  // Server already sorted + paginated.
529
534
  const visibleResources = filterResources
@@ -771,7 +776,7 @@ export const ResourcesPage = () => {
771
776
  style={{
772
777
  width: '1px',
773
778
  height: '16px',
774
- background: 'var(--separator-primary)',
779
+ background: 'var(--separator)',
775
780
  flexShrink: 0,
776
781
  }}
777
782
  />
@@ -926,7 +931,7 @@ export const ResourcesPage = () => {
926
931
  gap: 'var(--space-m)',
927
932
  minHeight: '40px',
928
933
  flexShrink: 0,
929
- borderBottom: '1px solid var(--separator-primary)',
934
+ borderBottom: '1px solid var(--separator)',
930
935
  }}
931
936
  >
932
937
  <Text variant="small">
@@ -1105,7 +1110,7 @@ export const ResourcesPage = () => {
1105
1110
  gap: 'var(--space-m)',
1106
1111
  minHeight: '40px',
1107
1112
  flexShrink: 0,
1108
- borderTop: '1px solid var(--separator-primary)',
1113
+ borderTop: '1px solid var(--separator)',
1109
1114
  }}
1110
1115
  >
1111
1116
  <Text variant="small">
@@ -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={{ fontWeight: 'bold', textAlign: 'center' }}>{x.title}</Text>
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
  ))}
@@ -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" style={{ fontWeight: 600 }}>
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>
@@ -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(--color-accent)',
16
- 'color-mix(in srgb, var(--color-accent) 80%, hsl(270deg 70% 60%))',
17
- 'color-mix(in srgb, var(--color-accent) 60%, hsl(150deg 60% 50%))',
18
- 'color-mix(in srgb, var(--color-accent) 50%, hsl(30deg 80% 55%))',
19
- 'color-mix(in srgb, var(--color-accent) 40%, hsl(330deg 70% 55%))',
20
- 'color-mix(in srgb, var(--color-accent) 70%, hsl(200deg 65% 50%))',
21
- 'color-mix(in srgb, var(--color-accent) 30%, hsl(60deg 75% 50%))',
22
- 'color-mix(in srgb, var(--color-accent) 55%, hsl(0deg 70% 55%))',
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
  /**