@seliseblocks/genesis-os 4.2.4 → 4.2.5

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.
@@ -9192,10 +9192,13 @@ function useProjectOverviewRedirect({
9192
9192
  };
9193
9193
  }
9194
9194
  var INLINE_LIMIT = 3;
9195
- var ProjectCard = ({ project, projects }) => {
9195
+ var ProjectCard = ({
9196
+ project,
9197
+ projects,
9198
+ isShared
9199
+ }) => {
9196
9200
  const navigate = reactRouter.useNavigate();
9197
9201
  const { setTenantGroup, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
9198
- const { user } = chunkVAKGHXK6_cjs.useAuthStore();
9199
9202
  const { handleClick, isDisabled, isFetching } = useProjectOverviewRedirect({
9200
9203
  tenantGroupId: project.tenantGroupId
9201
9204
  });
@@ -9233,15 +9236,25 @@ var ProjectCard = ({ project, projects }) => {
9233
9236
  const hasOverflow = projects.length > INLINE_LIMIT;
9234
9237
  const visibleProjects = hasOverflow ? projects.slice(0, INLINE_LIMIT) : projects;
9235
9238
  const overflowCount = projects.length - INLINE_LIMIT;
9236
- const isOwner = user?.sub === project?.createdBy;
9237
9239
  return /* @__PURE__ */ jsxRuntime.jsxs(Card, { className: "border-border/60 bg-card hover:border-primary/30 group flex h-40 flex-col overflow-hidden rounded-xl border p-4 shadow-sm transition-all duration-200 hover:shadow-md", children: [
9238
9240
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex items-start justify-between gap-2", children: [
9239
9241
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(CardTitle, { className: "line-clamp-3 break-all text-base font-semibold leading-snug", children: project.name }) }),
9240
9242
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
9241
9243
  RenderAlternatively,
9242
9244
  {
9243
- condition: isOwner,
9244
- whenTrue: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
9245
+ condition: isShared,
9246
+ whenTrue: /* @__PURE__ */ jsxRuntime.jsxs(
9247
+ Badge,
9248
+ {
9249
+ variant: "outline",
9250
+ className: "flex items-center gap-1 shrink-0",
9251
+ children: [
9252
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UsersRound, { size: 16 }),
9253
+ "Shared"
9254
+ ]
9255
+ }
9256
+ ),
9257
+ whenFalse: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
9245
9258
  /* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
9246
9259
  Button,
9247
9260
  {
@@ -9255,18 +9268,7 @@ var ProjectCard = ({ project, projects }) => {
9255
9268
  }
9256
9269
  ) }),
9257
9270
  /* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: "Configure Project" })
9258
- ] }),
9259
- whenFalse: /* @__PURE__ */ jsxRuntime.jsxs(
9260
- Badge,
9261
- {
9262
- variant: "outline",
9263
- className: "flex items-center gap-1 shrink-0",
9264
- children: [
9265
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UsersRound, { size: 16 }),
9266
- "Shared"
9267
- ]
9268
- }
9269
- )
9271
+ ] })
9270
9272
  }
9271
9273
  ) })
9272
9274
  ] }),
@@ -9371,7 +9373,8 @@ var SelfProject = ({ canCreateProject = false }) => {
9371
9373
  ProjectCard,
9372
9374
  {
9373
9375
  project: project.projects[0],
9374
- projects: project.projects
9376
+ projects: project.projects,
9377
+ isShared: project.isShared
9375
9378
  }
9376
9379
  )
9377
9380
  },
@@ -12714,5 +12717,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
12714
12717
  exports.useRightSidePanel = useRightSidePanel;
12715
12718
  exports.useSortQueryParams = useSortQueryParams;
12716
12719
  exports.useWizardStepper = useWizardStepper;
12717
- //# sourceMappingURL=chunk-WOKUPQ7C.cjs.map
12718
- //# sourceMappingURL=chunk-WOKUPQ7C.cjs.map
12720
+ //# sourceMappingURL=chunk-T2NGZE5W.cjs.map
12721
+ //# sourceMappingURL=chunk-T2NGZE5W.cjs.map