From 8e7eb6468099a40ebba11f190cc7c4083f70b6de Mon Sep 17 00:00:00 2001 From: ivan-aksamentov Date: Thu, 29 Sep 2022 19:54:33 +0200 Subject: [PATCH] fix: show custom clade columns by default Let's flip the boolean, so that it's natural default is `false` --- packages_rs/nextclade-web/src/state/results.state.ts | 2 +- packages_rs/nextclade-web/src/types/auspice/index.d.ts | 2 +- packages_rs/nextclade/src/tree/tree.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages_rs/nextclade-web/src/state/results.state.ts b/packages_rs/nextclade-web/src/state/results.state.ts index 29c2211a0..49802ccc4 100644 --- a/packages_rs/nextclade-web/src/state/results.state.ts +++ b/packages_rs/nextclade-web/src/state/results.state.ts @@ -223,7 +223,7 @@ const cladeNodeAttrDescsStorageAtom = atom({ export const cladeNodeAttrDescsAtom = selector({ key: 'cladeNodeAttrDescs', get({ get }): CladeNodeAttrDesc[] { - return get(cladeNodeAttrDescsStorageAtom).filter(({ showInWeb }) => showInWeb) + return get(cladeNodeAttrDescsStorageAtom).filter(({ hideInWeb }) => !hideInWeb) }, set({ set, reset }, descs: CladeNodeAttrDesc[] | DefaultValue) { diff --git a/packages_rs/nextclade-web/src/types/auspice/index.d.ts b/packages_rs/nextclade-web/src/types/auspice/index.d.ts index 205050f21..52d79e2ee 100644 --- a/packages_rs/nextclade-web/src/types/auspice/index.d.ts +++ b/packages_rs/nextclade-web/src/types/auspice/index.d.ts @@ -203,7 +203,7 @@ declare module 'auspice' { name: string displayName: string description: string - showInWeb: boolean + hideInWeb: boolean } export declare interface AuspiceMetadata { diff --git a/packages_rs/nextclade/src/tree/tree.rs b/packages_rs/nextclade/src/tree/tree.rs index c0bc9a665..1a4ad872f 100644 --- a/packages_rs/nextclade/src/tree/tree.rs +++ b/packages_rs/nextclade/src/tree/tree.rs @@ -168,7 +168,7 @@ pub struct CladeNodeAttrKeyDesc { pub display_name: String, pub description: String, #[serde(default)] - pub show_in_web: bool, + pub hide_in_web: bool, } #[derive(Clone, Serialize, Deserialize, Validate, Debug)]