All files / src/components/detail index.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84                                                                                                                                                                       
// Shared building blocks for resource **detail** pages — the counterpart to
// `components/collection`, which does the same job for resource *list* pages.
//
// Reach for `DetailPage` first: it owns the loading / not-found / error
// branches, the back link, the provenance banner and the edit-history
// section, so a viewer page supplies only its body. Inside that body,
// `SectionCard` is the panel, `MetaGrid` + `MetaItem` the metadata strip,
// and `StatusBadge`, `TagList`, `CopyButton`, `Modal` and `ConfirmDialog`
// the small recurring pieces. Any dialog with a form in it is a `Modal`:
// hand-rolled overlays centre a panel taller than the viewport and lose its
// top off the screen.
//
// The individual parts stay exported for a page that genuinely differs —
// `ToolViewer`, say, which renders two different resource types.
 
export { default as DetailPage } from "./DetailPage";
export type { DetailPageProps } from "./DetailPage";
 
export { default as DetailTabs, useDetailTab } from "./DetailTabs";
export type { DetailTabsProps } from "./DetailTabs";
 
export { default as SectionCard } from "./SectionCard";
export type { SectionCardProps, SectionCardVariant } from "./SectionCard";
 
export { default as MetaItem, MetaGrid } from "./MetaItem";
export type { MetaItemProps, MetaGridProps } from "./MetaItem";
 
export { default as Skeleton, SkeletonLines } from "./Skeleton";
export type { SkeletonLinesProps } from "./Skeleton";
 
export { default as CopyButton } from "./CopyButton";
export type { CopyButtonProps } from "./CopyButton";
 
export { default as ConfirmDialog, Strong } from "./ConfirmDialog";
export type { ConfirmDialogProps } from "./ConfirmDialog";
 
export {
  default as Modal,
  ModalActions,
  useBodyScrollLock,
  useModalBehaviour,
} from "./Modal";
export type { ModalProps, ModalActionsProps, ModalSize } from "./Modal";
 
export { default as MeterBar } from "./MeterBar";
export type { MeterBarProps, MeterTone } from "./MeterBar";
 
export { default as TagList } from "./TagList";
export type { TagListProps } from "./TagList";
 
export {
  default as StatusBadge,
  STATUS_TONE_CLASSES,
  STATUS_TONE_RING,
  LIFECYCLE_STATUS,
  RUN_STATUS,
  SWARM_RUN_STATUS,
  SWARM_TASK_STATUS,
  EVALUATION_STATUS,
  EVIDENCE_CONFIDENCE,
  ASSURANCE_STATUS,
  RISK_LEVEL,
  REVIEW_STATUS,
  INVITE_STATUS,
  RULE_STATE,
  REGRESSION_VERDICT,
  GATE_STATUS,
  GOVERNANCE_OUTCOME,
  HITL_OUTCOME,
  QUALITY_CHECK,
  RETRIEVAL_STAGE,
  BUDGET_STATUS,
  MEMORY_STATE,
  DECISION_SECTION,
  DECISION_VERDICT,
} from "./StatusBadge";
export type { StatusBadgeProps, StatusTone, StatusScale } from "./StatusBadge";
 
export {
  default as useResourceId,
  decodeResourceId,
  encodeResourceId,
} from "./useResourceId";