From f4b28e1eaa4350bb7ccd8b31a33e6b3106febb55 Mon Sep 17 00:00:00 2001 From: Corey Cox <69321580+amc-corey-cox@users.noreply.github.com> Date: Wed, 8 May 2024 12:43:43 -0500 Subject: [PATCH] Monarch-app - how to page (#597) ### Related issues - Closes #400 - Closes #670 - Closes #567 ### Summary - adds a HowTo page that has expanded information on how to use the Monarch tools ### Checks - [ X ] All tests have passed (or issues created for failing tests) --------- Co-authored-by: glass-ships --- .github/dependabot.yaml | 10 + .github/workflows/publish-backend.yaml | 2 +- .gitignore | 3 + backend/tests/api/test_api.py | 6 +- frontend/src/global/icons.ts | 1 + frontend/src/pages/PageHome.vue | 4 + frontend/src/pages/about/PageHowTo.vue | 248 ++++++++++++++++++ frontend/src/pages/node/AssociationsTable.vue | 1 + frontend/src/router/index.ts | 5 + 9 files changed, 276 insertions(+), 4 deletions(-) create mode 100644 .github/dependabot.yaml create mode 100644 frontend/src/pages/about/PageHowTo.vue diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 000000000..11eb34579 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,10 @@ +# Set update schedule for GitHub Actions + +version: 2 +updates: + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" \ No newline at end of file diff --git a/.github/workflows/publish-backend.yaml b/.github/workflows/publish-backend.yaml index ec628e245..548b0207b 100644 --- a/.github/workflows/publish-backend.yaml +++ b/.github/workflows/publish-backend.yaml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: "3.10" diff --git a/.gitignore b/.gitignore index bdf343d4f..e00be6847 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ scripts/pubs_report.txt ### Test/Coverage ignore .coverage + +### IDE ignores +.vscode/* diff --git a/backend/tests/api/test_api.py b/backend/tests/api/test_api.py index f1dd3a3ab..606ecd015 100644 --- a/backend/tests/api/test_api.py +++ b/backend/tests/api/test_api.py @@ -30,10 +30,10 @@ def test_redoc(): def test_releases(): - response = client.get("/v3/api/releases?limit=1") + response = client.get("/v3/api/releases?limit=2") assert response.status_code == 200 - assert response.json()[0]["version"] == "latest" - + releases = [release["version"] for release in response.json()] + assert [i in ["latest", "previous"] for i in releases] def test_release_metadata(): response = client.get("/v3/api/releases?release=latest") diff --git a/frontend/src/global/icons.ts b/frontend/src/global/icons.ts index 281ffbd32..8f035e516 100644 --- a/frontend/src/global/icons.ts +++ b/frontend/src/global/icons.ts @@ -79,6 +79,7 @@ const icons = [ fas.faTable, fas.faUpload, fas.faUsers, + fas.faUserGear, fas.faXmark, ]; diff --git a/frontend/src/pages/PageHome.vue b/frontend/src/pages/PageHome.vue index d32802606..189e79bcb 100644 --- a/frontend/src/pages/PageHome.vue +++ b/frontend/src/pages/PageHome.vue @@ -15,6 +15,10 @@ + + + + What is Monarch? diff --git a/frontend/src/pages/about/PageHowTo.vue b/frontend/src/pages/about/PageHowTo.vue new file mode 100644 index 000000000..4522a0530 --- /dev/null +++ b/frontend/src/pages/about/PageHowTo.vue @@ -0,0 +1,248 @@ + + + + + diff --git a/frontend/src/pages/node/AssociationsTable.vue b/frontend/src/pages/node/AssociationsTable.vue index 65e622d15..31cf6ba98 100644 --- a/frontend/src/pages/node/AssociationsTable.vue +++ b/frontend/src/pages/node/AssociationsTable.vue @@ -281,6 +281,7 @@ const { isLoading, isError, } = useQuery( + // eslint-disable-next-line @typescript-eslint/no-unused-vars async function (fresh: boolean) /** * whether to perform "fresh" search, without filters/pagination/etc. true when * search text changes, false when filters/pagination/etc change. diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index ee83ad215..591e51f78 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -123,6 +123,11 @@ export const routes: RouteRecordRaw[] = [ name: "Outreach", component: asyncRoute("about/PageOutreach"), }, + { + path: "/how-to", + name: "HowTo", + component: asyncRoute("about/PageHowTo"), + }, /** resources page */ {