diff --git a/packages/libs/components/src/components/widgets/RadioButtonGroup.tsx b/packages/libs/components/src/components/widgets/RadioButtonGroup.tsx
index 2ac93ddc0c..dd39fd1654 100755
--- a/packages/libs/components/src/components/widgets/RadioButtonGroup.tsx
+++ b/packages/libs/components/src/components/widgets/RadioButtonGroup.tsx
@@ -50,7 +50,7 @@ export default function RadioButtonGroup({
containerStyles = {},
labelPlacement,
minWidth,
- buttonColor,
+ buttonColor = 'primary',
margins,
itemMarginRight,
disabledList,
diff --git a/packages/libs/components/src/map/DonutMarker.tsx b/packages/libs/components/src/map/DonutMarker.tsx
index ddcaaea288..1d4b044767 100755
--- a/packages/libs/components/src/map/DonutMarker.tsx
+++ b/packages/libs/components/src/map/DonutMarker.tsx
@@ -237,7 +237,7 @@ function donutMarkerSVGIcon(props: DonutMarkerStandaloneProps): {
.map((o) => o.value)
.reduce((a, c) => {
return a + c;
- });
+ }, 0);
// for display, convert large value with k (e.g., 12345 -> 12k): return original value if less than a criterion
const sumLabel = props.markerLabel ?? String(fullPieValue);
diff --git a/packages/libs/coreui/src/components/grids/DataGrid/HeaderCell.tsx b/packages/libs/coreui/src/components/grids/DataGrid/HeaderCell.tsx
index 60b075686c..1590c02ea1 100644
--- a/packages/libs/coreui/src/components/grids/DataGrid/HeaderCell.tsx
+++ b/packages/libs/coreui/src/components/grids/DataGrid/HeaderCell.tsx
@@ -64,11 +64,14 @@ export default function HeaderCell({
return (
= T & {
__expandableTreeState: {
- isSelected: boolean,
- isVisible: boolean,
- isIndeterminate?: boolean,
- isExpanded?: boolean
+ isSelected: boolean;
+ isVisible: boolean;
+ isIndeterminate?: boolean;
+ isExpanded?: boolean;
};
__expandableTreeChildren: StatefulNode[];
};
@@ -113,7 +128,6 @@ const Bar = () => | ;
type ChangeHandler = (ids: string[]) => void;
export type CheckboxTreeProps = {
-
//%%%%%%%%%%% Basic expandable tree props %%%%%%%%%%%
/** Node representing root of the data to be rendered as an expandable tree */
@@ -123,7 +137,7 @@ export type CheckboxTreeProps = {
getNodeId: (node: T) => string;
/** Takes a node, called during rendering to provide the children for the current node */
- getNodeChildren: (node: T) => T[];
+ getNodeChildren: (node: T) => T[];
/** Called when the set of expanded (branch) nodes changes. The function will be called with the array of the expanded node ids. If omitted, no handler is called. */
onExpansionChange: ChangeHandler;
@@ -132,7 +146,7 @@ export type CheckboxTreeProps = {
shouldExpandDescendantsWithOneChild?: boolean;
/** Whether to expand a node if its contents are clicked */
- shouldExpandOnClick?: boolean
+ shouldExpandOnClick?: boolean;
/** Whether to show the root node or start with the array of children; optional, defaults to false */
showRoot?: boolean;
@@ -151,8 +165,8 @@ export type CheckboxTreeProps = {
/** List of selected nodes as represented by their ids, defaults to [ ] */
selectedList: string[];
- /**
- * List of filtered nodes as represented by their ids used to determine isLeafVisible node status.
+ /**
+ * List of filtered nodes as represented by their ids used to determine isLeafVisible node status.
* Refer to the documentation of the createIsLeafVisible function for a better understanding of its use and behavior.
* TL;DR: an empty array will render an empty tree whereas an undefined filteredList is ignored
* */
@@ -252,96 +266,112 @@ type TreeLinksProps = {
isFiltered: boolean;
additionalActions?: React.ReactNode[];
treeLinksStyleSpec: TreeLinksStyleSpec;
-}
+};
/**
* Renders tree links to select, clear, expand, collapse all nodes, or reset to current or default
*/
function TreeLinks({
- showSelectionLinks,
- showExpansionLinks,
- showCurrentLink,
- showDefaultLink,
- selectAll,
- selectNone,
- expandAll,
- expandNone,
- selectCurrentList,
- selectDefaultList,
- addVisible,
- removeVisible,
- selectOnlyVisible,
- isFiltered,
- additionalActions,
- treeLinksStyleSpec
+ showSelectionLinks,
+ showExpansionLinks,
+ showCurrentLink,
+ showDefaultLink,
+ selectAll,
+ selectNone,
+ expandAll,
+ expandNone,
+ selectCurrentList,
+ selectDefaultList,
+ addVisible,
+ removeVisible,
+ selectOnlyVisible,
+ isFiltered,
+ additionalActions,
+ treeLinksStyleSpec,
}: TreeLinksProps) {
-
const linkStyles = {
...treeLinksStyleSpec.links,
'&:hover': linksHoverDecoration,
- }
+ };
const filteredSelectionLinks = (
-
-
-
-
-
+
+
+
+
+
);
return (
-
);
}
}
-
class SortKeyTable extends React.Component {
-
constructor(props) {
super(props);
// Memoize the sorting. Without this, the DataTable widget will think is
// is a new table and reset the sorting. This is bad if a user has already
// sorted the table.
- this.sortValue = lodash.memoize(value => lodash.sortBy(value, 'sort_key'));
+ this.sortValue = lodash.memoize((value) =>
+ lodash.sortBy(value, 'sort_key')
+ );
}
render() {
- return
+ return (
+
+ );
}
}
-
class WolfPsortForm extends React.Component {
- inputHeader(t) {
- if(t.length > 1) {
- return
- Left: A UMAP where each point is a cell colored by the normalized expression value for this gene. Right: A histogram showing the distribution of normalized expression values for this gene over all cells.
Explore source identifiers mapped to {source_id} in cellxgene.
-
+ Left: A UMAP where each point is a cell colored by the
+ normalized expression value for this gene. Right: A histogram
+ showing the distribution of normalized expression values for this gene
+ over all cells.
+
+
+ Explore source identifiers mapped to {source_id} in cellxgene.
+
+