From 5efdd8d5a133fdad73ef232db240645db1ea930f Mon Sep 17 00:00:00 2001 From: Macgregor Aubertin-Young Date: Fri, 6 Dec 2024 14:14:46 -0800 Subject: [PATCH 1/5] remove alert banners from animal and telemetry page --- app/src/features/surveys/animals/AnimalPage.tsx | 3 --- app/src/features/surveys/telemetry/TelemetryPage.tsx | 3 --- database/src/seeds/03_basic_project_survey_setup.ts | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/features/surveys/animals/AnimalPage.tsx b/app/src/features/surveys/animals/AnimalPage.tsx index b8418906ad..07058fdb2d 100644 --- a/app/src/features/surveys/animals/AnimalPage.tsx +++ b/app/src/features/surveys/animals/AnimalPage.tsx @@ -1,11 +1,9 @@ import CircularProgress from '@mui/material/CircularProgress'; import Stack from '@mui/material/Stack'; import Box from '@mui/system/Box'; -import { SystemAlertBanner } from 'features/alert/banner/SystemAlertBanner'; import { useBiohubApi } from 'hooks/useBioHubApi'; import { useAnimalPageContext, useProjectContext, useSurveyContext } from 'hooks/useContext'; import useDataLoader from 'hooks/useDataLoader'; -import { SystemAlertBannerEnum } from 'interfaces/useAlertApi.interface'; import { useEffect } from 'react'; import { AnimalHeader } from './AnimalHeader'; import { AnimalListContainer } from './list/AnimalListContainer'; @@ -58,7 +56,6 @@ export const SurveyAnimalPage = () => { survey_id={surveyContext.surveyId} survey_name={surveyContext.surveyDataLoader.data.surveyData.survey_details.survey_name} /> - { @@ -74,7 +72,6 @@ export const TelemetryPage = () => { survey_id={surveyContext.surveyId} survey_name={surveyContext.surveyDataLoader.data.surveyData.survey_details.survey_name} /> - {/* Telematry List */} diff --git a/database/src/seeds/03_basic_project_survey_setup.ts b/database/src/seeds/03_basic_project_survey_setup.ts index 29af40b074..4e7d1c48cf 100644 --- a/database/src/seeds/03_basic_project_survey_setup.ts +++ b/database/src/seeds/03_basic_project_survey_setup.ts @@ -25,7 +25,7 @@ const identitySources = ['IDIR', 'BCEIDBUSINESS', 'BCEIDBASIC']; /** * Add spatial transform - * + *a * @export * @param {Knex} knex * @return {*} {Promise} @@ -52,7 +52,7 @@ export async function seed(knex: Knex): Promise { } // Insert system alerts - for (let i = 0; i < 8; i++) { + for (let i = 0; i < 50; i++) { await knex.raw(`${insertSystemAlert()}`); } From 4e2275ae6607ef9f6af29b725a354fb3291a7ee6 Mon Sep 17 00:00:00 2001 From: Macgregor Aubertin-Young Date: Fri, 6 Dec 2024 20:10:10 -0800 Subject: [PATCH 2/5] undo change to db seed --- database/src/seeds/03_basic_project_survey_setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/src/seeds/03_basic_project_survey_setup.ts b/database/src/seeds/03_basic_project_survey_setup.ts index 4e7d1c48cf..79587fe4c8 100644 --- a/database/src/seeds/03_basic_project_survey_setup.ts +++ b/database/src/seeds/03_basic_project_survey_setup.ts @@ -52,7 +52,7 @@ export async function seed(knex: Knex): Promise { } // Insert system alerts - for (let i = 0; i < 50; i++) { + for (let i = 0; i < 8; i++) { await knex.raw(`${insertSystemAlert()}`); } From 7fd46fbfbc5fa35a392d80165ec0590291fae989 Mon Sep 17 00:00:00 2001 From: Macgregor Aubertin-Young Date: Tue, 10 Dec 2024 16:07:24 -0800 Subject: [PATCH 3/5] ignore-skip From d9d4111af90c1dbf0a182fe5bec09ab6e33bc4e2 Mon Sep 17 00:00:00 2001 From: Macgregor Aubertin-Young Date: Tue, 10 Dec 2024 16:08:37 -0800 Subject: [PATCH 4/5] remove typo --- database/src/seeds/03_basic_project_survey_setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/src/seeds/03_basic_project_survey_setup.ts b/database/src/seeds/03_basic_project_survey_setup.ts index 79587fe4c8..29af40b074 100644 --- a/database/src/seeds/03_basic_project_survey_setup.ts +++ b/database/src/seeds/03_basic_project_survey_setup.ts @@ -25,7 +25,7 @@ const identitySources = ['IDIR', 'BCEIDBUSINESS', 'BCEIDBASIC']; /** * Add spatial transform - *a + * * @export * @param {Knex} knex * @return {*} {Promise} From 9b08d7223416563632a810ac9ca35b9bb3781d06 Mon Sep 17 00:00:00 2001 From: Macgregor Aubertin-Young Date: Tue, 10 Dec 2024 16:08:45 -0800 Subject: [PATCH 5/5] ignore-skip