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/wise-dingos-wish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@platforma-open/milaboratories.clonotype-browser-3.model": patch
"@platforma-open/milaboratories.clonotype-browser-3.ui": patch
---

SDK update
6 changes: 6 additions & 0 deletions model/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ export const platforma = BlockModelV3.create(blockDataModel)
columns: [...splitSnapshots, ...nonSplitDirect, ...linked],
primaryJoinType: "full",
tableState: ctx.data.overlapTableState,
labelsOptions: {
formatters: { linker: () => undefined },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Returning undefined from the linker formatter typically instructs the SDK to use the default label formatting. If the intention is to suppress the linker name in the column headers (e.g., to keep them concise), you should return an empty string '' instead. Additionally, this configuration is duplicated in the sampleTable definition; consider extracting it to a shared constant to maintain consistency and reduce duplication.

Suggested change
formatters: { linker: () => undefined },
formatters: { linker: () => '' },
References
  1. Avoid complex and duplicated logic for ensuring unique column labels. Simplify the implementation, for example, by refactoring it into a single function that adds a numeric suffix to duplicates.

},
displayOptions: {
visibility: [
{
Expand Down Expand Up @@ -202,6 +205,9 @@ export const platforma = BlockModelV3.create(blockDataModel)
],
},
},
labelsOptions: {
formatters: { linker: () => undefined },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

As with the overlapTable definition, if the goal is to hide the linker name, return '' instead of undefined. This configuration is duplicated and should ideally be refactored into a shared constant.

Suggested change
formatters: { linker: () => undefined },
formatters: { linker: () => '' },
References
  1. Avoid complex and duplicated logic for ensuring unique column labels. Simplify the implementation, for example, by refactoring it into a single function that adds a numeric suffix to duplicates.

},
tableState: ctx.data.sampleTableState,
});
})
Expand Down
Loading
Loading