Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/metadata editing/restrict annotations #464

Open
wants to merge 14 commits into
base: feature/metadata-editing/develop
Choose a base branch
from
7 changes: 7 additions & 0 deletions packages/core/components/Modal/EditMetadata/index.tsx
Original file line number Diff line number Diff line change
@@ -18,16 +18,23 @@ import styles from "./EditMetadata.module.css";
// a more robust solution in the future such as login or a more secure method.
// or find a way to get this information passed in via GH secrets to the packaged
// web bundle
// TODO: Actually lets try to request this from GH or something..?
Copy link
Contributor Author

@SeanLeRoy SeanLeRoy Mar 10, 2025

Choose a reason for hiding this comment

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

TODO: Before merging - test putting this into a file we can request from the web or something at least to get it out of this level of hard-coded. (Maybe even labkey...)

Choose a reason for hiding this comment

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

The intent is to update these password quarterly, right? So at least extracting them seems smart.

const PASSWORD_TO_PROGRAM_MAP: Record<string, string> = {
S6KNQ7SW: "EMT",
HU7Y56YT: "Endothelial",
V2SYXAQK: "IntegratedNucleus",
V6B94P9Q: "Lumenoid",
SENX6787: "NucMorph",
X3794B91: "Synthoid",
};

const PROGRAM_TO_USER_MAP: Record<string, string> = {
EMT: "svc_bff_emt",
Endothelial: "svc_bff_endothelial",
IntegratedNucleus: "svc_bff_integratednucleus",
Lumenoid: "svc_bff_lumenoid",
NucMorph: "svc_bff_nucmorph",
Synthoid: "svc_bff_synthoid",
};

/**