Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 4 additions & 100 deletions apps/editor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions apps/editor/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@ function AppInner() {
onSaveToServer={tenantId ? handleSaveToServer : undefined}
isPublishedToOpenCase={activeFrameworkId ? publishedFrameworkIds.has(activeFrameworkId) : false}
onArchiveFramework={tenantId && activeFrameworkId ? handleArchiveFramework : undefined}
onImportFromRegistry={tenantId ? async (registryUrl) => {
return api.previewRegistryFramework({ tenantId, registryUrl })
} : undefined}
/>
</EditorProvider>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export type CaseDocumentSnapshot = {
lastChangeDateTime?: string
/** Link to the CFLicense governing this framework */
licenseURI?: { title?: string; identifier?: string; uri: string }
/** Namespaced extension data (e.g. ext:opencase — CTID, import provenance, layout) */
extensions?: Record<string, unknown>
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export function mapCaseSnapshotToDomainFramework(snapshot: CasePackageSnapshot):
statusEndDate: doc.statusEndDate,
lastChangeDateTime: doc.lastChangeDateTime,
licenseURI: doc.licenseURI,
extensions: doc.extensions as Record<string, unknown> | undefined,
}

const items: Framework['items'] = new Map()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ export function normalizeCasePackageResponse(res: unknown): CasePackageSnapshot
statusEndDate: asString(doc.statusEndDate),
lastChangeDateTime: asString(doc.lastChangeDateTime),
licenseURI,
extensions: asRecord(doc.extensions) ?? undefined,
},
items,
associations,
Expand Down
Loading