From 6d0e7c19408941953f9ad95a567a903fcfed22ea Mon Sep 17 00:00:00 2001 From: David Schultz Date: Tue, 31 Oct 2023 11:55:12 -0500 Subject: [PATCH] add docs link on the main menu (#68) * add docs link on the main menu * update dependencies*.log files(s) * fix tests --------- Co-authored-by: github-actions --- cypress/integration/groups.spec.js | 2 +- cypress/integration/home.spec.js | 1 + cypress/integration/insts.spec.js | 2 +- dependencies-from-Dockerfile.log | 4 ++-- user_mgmt/static/main.js | 7 ++++++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/cypress/integration/groups.spec.js b/cypress/integration/groups.spec.js index 3d5b502..c42552c 100644 --- a/cypress/integration/groups.spec.js +++ b/cypress/integration/groups.spec.js @@ -11,7 +11,7 @@ context('Groups Page', () => { }) cy.get('#nav .active').contains('groups', {matchCase: false}) - cy.get('#nav li').should('have.length', 2) + cy.get('#nav li').should('have.length', 3) cy.get('[data-test="administered-groups"]').contains('groupA', {matchCase: false}) cy.get('[data-test="administered-groups"]').within(() => { diff --git a/cypress/integration/home.spec.js b/cypress/integration/home.spec.js index d7b17ca..031256f 100644 --- a/cypress/integration/home.spec.js +++ b/cypress/integration/home.spec.js @@ -8,6 +8,7 @@ context('Home Page', () => { cy.get('#nav .active').contains('home', {matchCase: false}) cy.get('#nav li').contains('institutions', {matchCase: false}).should('not.exist') + cy.get('#nav li').contains('docs', {matchCase: false}) cy.get('.account .login-link').should('contain', 'Sign in') diff --git a/cypress/integration/insts.spec.js b/cypress/integration/insts.spec.js index 0ddf5ea..3b03750 100644 --- a/cypress/integration/insts.spec.js +++ b/cypress/integration/insts.spec.js @@ -10,7 +10,7 @@ context('Institutions Page', () => { }) cy.get('#nav .active').contains('institutions', {matchCase: false}) - cy.get('#nav li').should('have.length', 2) + cy.get('#nav li').should('have.length', 3) cy.get('.approvals [data-test="userC"]').should('exist') cy.get('.approvals [data-test="approve"]').should('exist').click() diff --git a/dependencies-from-Dockerfile.log b/dependencies-from-Dockerfile.log index fdb11f1..0492df3 100644 --- a/dependencies-from-Dockerfile.log +++ b/dependencies-from-Dockerfile.log @@ -1,6 +1,6 @@ aio-pika==9.3.0 aiormq==6.7.7 -cachetools==5.3.1 +cachetools==5.3.2 certifi==2023.7.22 cffi==1.16.0 charset-normalizer==3.3.1 @@ -24,7 +24,7 @@ typing_extensions==4.8.0 Unidecode==1.3.7 urllib3==2.0.7 -e /app -wipac-dev-tools==1.7.0 +wipac-dev-tools==1.7.1 wipac-keycloak-rest-services==1.4.45 wipac-rest-tools==1.6.0 yarl==1.9.2 diff --git a/user_mgmt/static/main.js b/user_mgmt/static/main.js index 79c6f6e..9dc5679 100644 --- a/user_mgmt/static/main.js +++ b/user_mgmt/static/main.js @@ -58,7 +58,11 @@ Vue.component('navpage', { this.current = to.params.route next() }, - template: '
  • {{ name }}
  • ' + template: ` +
  • + {{ name }} + {{ name }} +
  • ` }); Vue.component('account', { @@ -208,6 +212,7 @@ export default async function vue_startup(keycloak){ { path: '/groups', name: 'Groups', component: Groups, props: {keycloak: keycloak}, meta: { requiresAuth: true, requiresGroupAdmin: true } }, + { path: 'https://docs.icecube.aq/Madison-account/user-workflow/', name: 'Docs' }, { path: '*', name: '404', component: Error404, props: true } ];