Skip to content
Open
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
6 changes: 6 additions & 0 deletions .changeset/shaggy-worlds-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@platforma-open/milaboratories.clonotype-browser-3.model": minor
"@platforma-open/milaboratories.clonotype-browser-3.ui": minor
---

Support block label
10 changes: 5 additions & 5 deletions model/src/column_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
PColumnDataUniversal,
PColumnSpec,
PlRef,
RenderCtx,
RenderCtxBase,
} from '@platforma-sdk/model';
import { Annotation, canonicalizeJson, deriveLabels, isLabelColumn } from '@platforma-sdk/model';

Expand Down Expand Up @@ -192,7 +192,7 @@ export interface LinkerInfo<_TArgs, _TUiState> {
* @returns Array of linker information objects
*/
export function findLinkerOptions<TArgs, TUiState>(
ctx: RenderCtx<TArgs, TUiState>,
ctx: RenderCtxBase<TArgs, TUiState>,
anchor: PlRef,
anchorSpec: PColumnSpec,
): LinkerInfo<TArgs, TUiState>[] {
Expand Down Expand Up @@ -247,7 +247,7 @@ export interface LinkedColumnsResult {
* @returns Object containing linker columns and linked columns, or undefined if not available
*/
export function getLinkedColumns<TArgs, TUiState>(
ctx: RenderCtx<TArgs, TUiState>,
ctx: RenderCtxBase<TArgs, TUiState>,
anchor: PlRef,
anchorSpec: PColumnSpec,
): LinkedColumnsResult | undefined {
Expand Down Expand Up @@ -323,7 +323,7 @@ export interface LinkedColumnEntry {
* @returns Record of linked column entries keyed by anchor name, or undefined if not available
*/
export function getLinkedColumnsForArgs<TArgs, TUiState>(
ctx: RenderCtx<TArgs, TUiState>,
ctx: RenderCtxBase<TArgs, TUiState>,
anchor: PlRef,
anchorSpec: PColumnSpec,
): Record<string, LinkedColumnEntry> | undefined {
Expand Down Expand Up @@ -437,7 +437,7 @@ export function getLinkedColumnsForArgs<TArgs, TUiState>(
* @param columns - The existing columns array to append linked columns to
*/
export function addLinkedColumnsToArray<TArgs, TUiState>(
ctx: RenderCtx<TArgs, TUiState>,
ctx: RenderCtxBase<TArgs, TUiState>,
anchor: PlRef,
anchorSpec: PColumnSpec,
columns: PColumn<PColumnDataUniversal>[],
Expand Down
14 changes: 7 additions & 7 deletions model/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export const platforma = BlockModel.create('Heavy')
};
})

.output('overlapTable', (ctx) => {
.outputWithStatus('overlapTable', (ctx) => {
if (ctx.args.inputAnchor === undefined)
return undefined;

Expand Down Expand Up @@ -330,7 +330,7 @@ export const platforma = BlockModel.create('Heavy')
);
})

.output('sampleTable', (ctx) => {
.outputWithStatus('sampleTable', (ctx) => {
if (ctx.args.inputAnchor === undefined)
return undefined;

Expand Down Expand Up @@ -394,7 +394,7 @@ export const platforma = BlockModel.create('Heavy')
return [createPlDataTableSheet(ctx, anchor.spec.axesSpec[0], samples)];
})

.output('statsTable', (ctx) => {
.outputWithStatus('statsTable', (ctx) => {
const allColumns = [];
const annotationStatsPf = ctx.prerun?.resolve({ field: 'annotationStatsPf', assertFieldType: 'Input', allowPermanentAbsence: true });
if (annotationStatsPf && annotationStatsPf.getIsReadyOrError()) {
Expand Down Expand Up @@ -463,12 +463,12 @@ export const platforma = BlockModel.create('Heavy')

.title((ctx) => {
return ctx.args.annotationSpec.steps.length > 0
? `Clonotype Annotation - ${ctx.args.annotationSpec.title}`
: ctx.args.datasetTitle
? `Clonotype Browser - ${ctx.args.datasetTitle}`
: 'Clonotype Browser';
? 'Clonotype Annotation'
: 'Clonotype Browser';
})

.subtitle((ctx) => ctx.args.datasetTitle ?? 'Select Dataset')

.done(2);

export type Platforma = typeof platforma;
Expand Down
Loading