From 6a6eddb78fd542ee7953a27e7039583e7ac404a7 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Sun, 15 Sep 2024 17:40:21 -0700 Subject: [PATCH 01/53] Add import page --- components/RadioGroup.tsx | 4 +- lib/helpers.tsx | 34 +++++ lib/types.ts | 15 +- models/Species.ts | 10 +- package-lock.json | 44 ++++++ package.json | 2 + pages/_app.tsx | 32 +++-- pages/api/species/get-source-info.ts | 97 +++++++++++++ pages/api/species/migrate.ts | 36 +++++ pages/species/[code]/import.tsx | 133 ++++++++++++++++++ pages/{species-list.tsx => species/index.tsx} | 25 ++-- 11 files changed, 397 insertions(+), 35 deletions(-) create mode 100644 pages/api/species/get-source-info.ts create mode 100644 pages/api/species/migrate.ts create mode 100644 pages/species/[code]/import.tsx rename pages/{species-list.tsx => species/index.tsx} (75%) diff --git a/components/RadioGroup.tsx b/components/RadioGroup.tsx index 3400433a..83578284 100644 --- a/components/RadioGroup.tsx +++ b/components/RadioGroup.tsx @@ -22,14 +22,14 @@ const RadioGroup = ({ name, label, options, inline, help }: InputProps) => { {options.map((option) => typeof option === "string" ? ( - ) : ( -