From c091f466bac9cad7e4ac07dbb9dff8fb8f786e94 Mon Sep 17 00:00:00 2001 From: Ashwini Sukale Date: Fri, 19 Jun 2026 17:02:40 +0530 Subject: [PATCH 01/11] Fixed accessibility issues --- app/components/cc-license.hbs | 20 +- app/components/doi-list.hbs | 138 +++++++------- app/components/model-search.hbs | 1 + app/components/organization-list.hbs | 45 ++--- app/components/provider-list.hbs | 75 ++++---- app/components/repository-list.hbs | 55 +++--- app/styles/local.css | 175 +++++++++++++++++- app/templates/contacts/index.hbs | 5 +- app/templates/prefixes/index.hbs | 41 ++-- .../providers/show/contacts/index.hbs | 2 + .../providers/show/prefixes/index.hbs | 18 +- .../datacite-styles/doi/globals/_colors.scss | 2 +- 12 files changed, 406 insertions(+), 171 deletions(-) diff --git a/app/components/cc-license.hbs b/app/components/cc-license.hbs index 55bb4475c..246bf6cd3 100644 --- a/app/components/cc-license.hbs +++ b/app/components/cc-license.hbs @@ -1,9 +1,23 @@ - + {{#each this.licenseLogo as |license|}} {{#if license.class}} - {{license.tooltip.text}} + {{else}} {{license.logo}} {{/if}} {{/each}} - + \ No newline at end of file diff --git a/app/components/doi-list.hbs b/app/components/doi-list.hbs index 4dec54076..c4360d0b6 100644 --- a/app/components/doi-list.hbs +++ b/app/components/doi-list.hbs @@ -115,12 +115,12 @@ {{#each this.model.meta.states as |state|}}
  • {{#if this.model.query.state}} - - + + {{else}} - - + + {{/if}}
    @@ -134,8 +134,8 @@ {{/each}} {{else}}
  • - - + +
    {{titleize this.model.query.state}} @@ -161,15 +161,16 @@ {{#each this.model.meta.resourceTypes as |resourceType|}}
  • {{#if this.model.query.resource-type-id}} - - + + {{else}} - + {{/if}}
    @@ -183,8 +184,8 @@ {{/each}} {{else}}
  • - - + +
    {{humanize (underscore this.model.query.resource-type-id)}} @@ -211,12 +212,12 @@ {{#each this.model.meta.published as |year|}}
  • {{#if this.model.query.published}} - - + + {{else}} - - + + {{/if}}
    @@ -230,8 +231,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.published}} @@ -257,12 +258,12 @@ {{#each this.model.meta.created as |year|}}
  • {{#if this.model.query.created}} - - + + {{else}} - - + + {{/if}}
    @@ -276,8 +277,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.created}} @@ -307,12 +308,12 @@ {{#each this.model.meta.registered as |year|}}
  • {{#if this.model.query.registered}} - - + + {{else}} - - + + {{/if}}
    @@ -326,8 +327,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.registered}} @@ -362,12 +363,12 @@ {{#each this.model.meta.clients as |client|}}
  • {{#if this.model.query.client-id}} - - + + {{else}} - - + + {{/if}}
    @@ -381,8 +382,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.client-id}} @@ -414,15 +415,16 @@ {{#if (not-eq affiliation.id affiliation.title)}}
  • {{#if this.model.query.affiliation-id}} - - + + {{else}} - + {{/if}}
    @@ -437,8 +439,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.affiliation-id}} @@ -465,12 +467,12 @@ {{#each this.model.meta.prefixes as |prefix|}}
  • {{#if this.model.query.prefix}} - - + + {{else}} - - + + {{/if}}
    @@ -484,8 +486,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.prefix}} @@ -512,15 +514,16 @@ {{#each this.model.meta.certificates as |certificate|}}
  • {{#if this.model.query.certificate}} - - + + {{else}} - + {{/if}}
    @@ -534,8 +537,8 @@ {{/each}} {{else}}
  • - - + +
    {{titleize this.model.query.certificate}} @@ -562,15 +565,16 @@ {{#each this.model.meta.schemaVersions as |schemaVersion|}}
  • {{#if this.model.query.schema-version}} - - + + {{else}} - + {{/if}}
    @@ -584,8 +588,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.schema-version}} @@ -614,12 +618,12 @@ {{#each this.model.meta.sources as |source|}}
  • {{#if this.model.query.source}} - - + + {{else}} - - + + {{/if}}
    @@ -633,8 +637,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.source}} @@ -668,15 +672,17 @@ - + {{else}} - + {{/if}}
    @@ -690,8 +696,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.link-check-status}} diff --git a/app/components/model-search.hbs b/app/components/model-search.hbs index 314e8edb8..eb8cad6e6 100644 --- a/app/components/model-search.hbs +++ b/app/components/model-search.hbs @@ -5,6 +5,7 @@ @value={{this.query}} class="form-control" placeholder={{if this.placeholder this.placeholder "Type to search..."}} + aria-label={{if this.ariaLabel this.ariaLabel "Search"}} @escape-press={{action 'clear'}} @enter={{action 'doSearch'}} /> diff --git a/app/components/organization-list.hbs b/app/components/organization-list.hbs index 5515e0d69..bacf3156b 100644 --- a/app/components/organization-list.hbs +++ b/app/components/organization-list.hbs @@ -37,12 +37,12 @@ {{#each this.model.organizations.meta.years as |year|}}
  • {{#if this.model.organizations.query.year}} - - + + {{else}} - - + + {{/if}}
    @@ -56,8 +56,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.year}} @@ -83,12 +83,12 @@ {{#each this.model.organizations.meta.regions as |region|}}
  • {{#if this.model.organizations.query.region}} - - + + {{else}} - - + + {{/if}}
    @@ -102,8 +102,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.region}} @@ -140,15 +140,17 @@ - + {{else}} - + {{/if}}
    @@ -162,8 +164,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.organization-type}} @@ -193,15 +195,16 @@ {{#each this.model.organizations.meta.focusAreas as |focusArea|}}
  • {{#if this.model.organizations.query.focus-area}} - - + + {{else}} - + {{/if}}
    @@ -215,8 +218,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.organizations.query.focus-area}} diff --git a/app/components/provider-list.hbs b/app/components/provider-list.hbs index 214e700cb..6fe338b03 100644 --- a/app/components/provider-list.hbs +++ b/app/components/provider-list.hbs @@ -34,12 +34,12 @@ {{#each this.model.meta.years as |year|}}
  • {{#if this.model.query.year}} - - + + {{else}} - - + + {{/if}}
    @@ -53,8 +53,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.year}} @@ -80,12 +80,12 @@ {{#each this.model.meta.regions as |region|}}
  • {{#if this.model.query.region}} - - + + {{else}} - - + + {{/if}}
    @@ -99,8 +99,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.region}} @@ -127,15 +127,16 @@ {{#each this.model.meta.memberTypes as |memberType|}}
  • {{#if this.model.query.member-type}} - - + + {{else}} - + {{/if}}
    @@ -149,8 +150,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.member-type}} @@ -179,15 +180,17 @@ - + {{else}} - + {{/if}}
    @@ -201,8 +204,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.non-profit-status}} @@ -231,15 +234,17 @@ - + {{else}} - + {{/if}}
    @@ -253,8 +258,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.organization-type}} @@ -280,15 +285,16 @@ {{#each this.model.meta.focusAreas as |focusArea|}}
  • {{#if this.model.query.focus-area}} - - + + {{else}} - + {{/if}}
    @@ -302,8 +308,8 @@ {{/each}} {{else}}
  • - - + +
    {{this.model.query.focus-area}} @@ -333,16 +339,18 @@ - + {{else}} - + {{/if}}
    @@ -359,8 +367,9 @@ - +
    {{this.model.query.has-required-contacts}} diff --git a/app/components/repository-list.hbs b/app/components/repository-list.hbs index eacd75cec..752ba52c3 100644 --- a/app/components/repository-list.hbs +++ b/app/components/repository-list.hbs @@ -111,12 +111,12 @@ {{#each this.model.repositories.meta.years as |year|}}
  • {{#if this.model.repositories.query.year}} - - + + {{else}} - - + + {{/if}}
    @@ -131,7 +131,7 @@ {{else}}
  • - +
    {{this.model.repositories.query.year}} @@ -164,15 +164,16 @@ {{#each this.model.repositories.meta.providers as |provider|}}
  • {{#if this.model.repositories.query.provider-id}} - - + + {{else}} - + {{/if}}
    @@ -187,7 +188,7 @@ {{else}}
  • - +
    {{titleize this.model.repositories.query.provider}} @@ -217,15 +218,16 @@ {{#each this.model.repositories.meta.clientTypes as |clientType|}}
  • {{#if this.model.repositories.query.client-type}} - - + + {{else}} - + {{/if}}
    @@ -240,7 +242,7 @@ {{else}}
  • - +
    {{titleize this.model.repositories.query.client-type}} @@ -273,15 +275,16 @@ }}
  • {{#if this.model.repositories.query.repository-type}} - - + + {{else}} - + {{/if}}
    @@ -296,7 +299,7 @@ {{else}}
  • - +
    {{this.model.repositories.query.repository-type}} @@ -327,15 +330,16 @@ {{#each this.model.repositories.meta.certificates as |certificate|}}
  • {{#if this.model.repositories.query.certificate}} - - + + {{else}} - + {{/if}}
    @@ -350,7 +354,7 @@ {{else}}
  • - +
    {{this.model.repositories.query.certificate}} @@ -378,15 +382,16 @@ {{#each this.model.repositories.meta.software as |software|}}
  • {{#if this.model.repositories.query.software}} - - + + {{else}} - + {{/if}}
    @@ -401,7 +406,7 @@ {{else}}
  • - +
    {{this.model.repositories.query.software}} diff --git a/app/styles/local.css b/app/styles/local.css index e82041644..9dc3f1a3c 100755 --- a/app/styles/local.css +++ b/app/styles/local.css @@ -657,8 +657,8 @@ main a:not(.btn):not(.navbar-brand):not(.nav-link):focus, .landing-nav-link.btn, .navbar .navbar-nav > li > a.landing-nav-link.btn { - color: #fff !important; - border-color: #fff !important; + color: #243b54 !important; + border-color: #243b54 !important; } /* Landing page icon */ @@ -686,3 +686,174 @@ main a:not(.btn):not(.navbar-brand):not(.nav-link):focus, .landing-feature-title { font-size: 24px; } + +/* Accessibility: warning action buttons + sidebar facet contrast */ + +/* Match Commons/Akita hover/focus behavior for warning buttons */ +.btn.btn-warning, +.btn-group-vertical .btn.btn-warning, +.btn-group .btn.btn-warning { + transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; +} + +.btn.btn-warning:hover, +.btn.btn-warning:active, +.btn-group-vertical .btn.btn-warning:hover, +.btn-group-vertical .btn.btn-warning:active, +.btn-group .btn.btn-warning:hover, +.btn-group .btn.btn-warning:active { + background-color: var(--datacite-color-primary, #00B1E2); + border-color: var(--datacite-color-primary, #00B1E2); + color: #fff; +} + +.btn.btn-warning:hover i, +.btn.btn-warning:active i, +.btn-group-vertical .btn.btn-warning:hover i, +.btn-group-vertical .btn.btn-warning:active i, +.btn-group .btn.btn-warning:hover i, +.btn-group .btn.btn-warning:active i { + color: #fff; +} + +.btn.btn-warning:focus, +.btn.btn-warning:focus-visible, +.btn-group-vertical .btn.btn-warning:focus, +.btn-group-vertical .btn.btn-warning:focus-visible, +.btn-group .btn.btn-warning:focus, +.btn-group .btn.btn-warning:focus-visible { + background-color: var(--datacite-color-primary, #00B1E2); + border-color: var(--datacite-color-primary, #00B1E2); + color: #fff; + outline: 2px solid transparent; + box-shadow: 0 0 0 3px rgba(0, 177, 226, 0.35); +} + +.btn.btn-warning:focus i, +.btn.btn-warning:focus-visible i, +.btn-group-vertical .btn.btn-warning:focus i, +.btn-group-vertical .btn.btn-warning:focus-visible i, +.btn-group .btn.btn-warning:focus i, +.btn-group .btn.btn-warning:focus-visible i { + color: #fff; +} + +/* Keep filled submit buttons keyboard-visible */ +.btn.btn-fill:focus, +.btn.btn-fill:focus-visible { + outline: 2px solid transparent; + box-shadow: 0 0 0 3px rgba(0, 177, 226, 0.35); +} + +/* Fix low-contrast facet labels and counts */ +.panel.facets .facet-title, +.panel.facets .number, +.panel.facets .number.pull-right { + color: #50595E; +} + +.panel-body .small, +.panel-body small { + color: #50595E; +} + +.panel-body.metadata { + color: #50595E; +} + +/* Accessibility: inline warning/missing-information text */ +.icon-warning, +.small.icon-warning { + color: #7C410E; +} + +.alert-warning, .label-warning-inv { + background-color: #fff; + color: #7C410E; + border: 2px solid #7C410E; +} + +/* Accessibility: Provider page facet filter links */ +.panel.facets a, +.panel.facets a:visited { + color: #308276; +} +h2.repository, h2.work { + font-weight: 600; + color: #308276; +} +.nav-tabs-member .nav-tabs .active>a, .nav-tabs-member .nav-tabs .active>a:focus, .nav-tabs-member .nav-tabs>li>a:focus, .nav-tabs-member .nav-tabs a:focus { + color: #308276; +} + +#account_menu_link { + color: #243b54; +} + +#account_menu_link:hover, +#account_menu_link:focus { + color: #243b54; +} + +/* Consistent hover color across Bracco */ +/* Action buttons */ +.btn.btn-warning, +.btn-group-vertical .btn.btn-warning { + color: #243B54 !important; +} + +/* Hover/focus */ +.btn.btn-warning:hover, +.btn.btn-warning:focus, +.btn.btn-warning:active, +.btn-group-vertical .btn.btn-warning:hover, +.btn-group-vertical .btn.btn-warning:focus, +.btn-group-vertical .btn.btn-warning:active { + background-color: #e67e22 !important; + border-color: #e67e22 !important; + color: #FFFFFF !important; +} + +/* Accessibility: facet section headers */ +.panel.facets h4, +.facets h4 { + color: #308276 !important; +} + +/* 2. Summary count headings like “573 Members” */ +h3.member-results, +h3.provider-results, +h3.repository-results, +h3.doi-results, +h3.work-results { + color: #308276; +} + +/* 3. Facet section headings like Year joined, Region, Member Type */ +.facets h4 { + color: #308276; +} +.pagination > li:not(.active) > a, +.pagination > li:not(.active) > span { + color: #006B8F; +} + +.label-primary-inv { + color: #308276; + background-color: #fff; + border: 2px solid #308276; +} + +.panel-body h3.member { + margin-bottom: 0; + color: #308276; +} + +/* Dois info */ +.panel-transparent .panel-footer { + color: #50595E; +} + +.text-registered { color: #165783; } +.text-findable { color: #308276; } +.text-draft { color: #7C410E; } \ No newline at end of file diff --git a/app/templates/contacts/index.hbs b/app/templates/contacts/index.hbs index 40d31c205..c9dde5635 100644 --- a/app/templates/contacts/index.hbs +++ b/app/templates/contacts/index.hbs @@ -28,13 +28,14 @@ {{#each this.model.contacts.meta.roles as |role|}}
  • {{#if (eq this.model.contacts.query.role-name role.id)}} - - + + {{else}} diff --git a/app/templates/prefixes/index.hbs b/app/templates/prefixes/index.hbs index 417e29783..33e5cd86e 100644 --- a/app/templates/prefixes/index.hbs +++ b/app/templates/prefixes/index.hbs @@ -52,16 +52,21 @@ {{#each this.model.meta.states as |state|}}
  • {{#if this.model.query.state}} - - + + {{else}} - + {{/if}}
    @@ -87,12 +92,20 @@ {{#each this.model.meta.years as |year|}}
  • {{#if this.model.query.year}} - - + + {{else}} - - + + {{/if}}
    @@ -118,15 +131,20 @@ {{#each this.model.meta.providers as |provider|}}
  • {{#if this.model.query.provider-id}} - - + + {{else}} - + {{/if}}
    @@ -158,8 +176,7 @@ {{prefix.id}}
    - {{pluralize prefix.providers.length 'Member' without-count=true - }} + {{pluralize prefix.providers.length 'Member' without-count=true}}
    {{#if prefix.providers}} {{#each prefix.providers as |provider|}} diff --git a/app/templates/providers/show/contacts/index.hbs b/app/templates/providers/show/contacts/index.hbs index 38f056422..db9ef3993 100644 --- a/app/templates/providers/show/contacts/index.hbs +++ b/app/templates/providers/show/contacts/index.hbs @@ -38,6 +38,7 @@ @route="providers.show.contacts" @model={{this.model.provider.id}} @query={{hash role-name=null}} + aria-label="Clear Role filter" > @@ -47,6 +48,7 @@ @model={{this.model.provider.id}} id="role-name-{{role.id}}" @query={{hash role-name=role.id}} + aria-label="Filter contacts by Role {{role.title}}" > diff --git a/app/templates/providers/show/prefixes/index.hbs b/app/templates/providers/show/prefixes/index.hbs index 3a26771e1..ebd09eeaa 100644 --- a/app/templates/providers/show/prefixes/index.hbs +++ b/app/templates/providers/show/prefixes/index.hbs @@ -65,15 +65,17 @@ - + {{else}} - + {{/if}}
    @@ -102,15 +104,17 @@ - + {{else}} - + {{/if}}
    @@ -139,8 +143,9 @@ - + {{else}} - + {{/if}}
    diff --git a/vendor/datacite-styles/doi/globals/_colors.scss b/vendor/datacite-styles/doi/globals/_colors.scss index 65de25f34..fe32f912e 100644 --- a/vendor/datacite-styles/doi/globals/_colors.scss +++ b/vendor/datacite-styles/doi/globals/_colors.scss @@ -102,7 +102,7 @@ category: Globals */ -$turquoise: #1abc9c; +$turquoise: #308276; $emerald: #2ecc71; $peter-river: #3498db; $amethyst: #9b59b6; From 0cd7842c5425413314531b8c585b6cd56fa81f74 Mon Sep 17 00:00:00 2001 From: Ashwini Sukale Date: Mon, 27 Jul 2026 12:19:03 +0530 Subject: [PATCH 02/11] Fix accessibility issues --- app/components/doi-list.hbs | 2 +- app/routes/change.js | 3 +++ app/routes/edit.js | 3 +++ app/templates/contacts/index.hbs | 4 ++-- cypress/e2e/organization_admin/repositories.test.ts | 4 +++- cypress/e2e/organization_admin/settings.test.ts | 4 +++- cypress/e2e/staff_admin/contact.test.ts | 4 +++- cypress/support/commands.js | 9 ++++++--- 8 files changed, 24 insertions(+), 9 deletions(-) diff --git a/app/components/doi-list.hbs b/app/components/doi-list.hbs index c4360d0b6..cec826935 100644 --- a/app/components/doi-list.hbs +++ b/app/components/doi-list.hbs @@ -672,7 +672,7 @@ diff --git a/app/routes/change.js b/app/routes/change.js index 8f78846cb..66ad40fc9 100644 --- a/app/routes/change.js +++ b/app/routes/change.js @@ -10,6 +10,9 @@ export default class ChangeRoute extends Route { @service router; + @service + flashMessages; + @service store; diff --git a/app/routes/edit.js b/app/routes/edit.js index 06de24c3d..a9c03ce65 100644 --- a/app/routes/edit.js +++ b/app/routes/edit.js @@ -10,6 +10,9 @@ export default class EditRoute extends Route { @service router; + @service + flashMessages; + @service store; diff --git a/app/templates/contacts/index.hbs b/app/templates/contacts/index.hbs index c9dde5635..ad0101f02 100644 --- a/app/templates/contacts/index.hbs +++ b/app/templates/contacts/index.hbs @@ -28,7 +28,7 @@ {{#each this.model.contacts.meta.roles as |role|}}
  • {{#if (eq this.model.contacts.query.role-name role.id)}} - + {{else}} @@ -38,7 +38,7 @@ aria-label="Filter contacts by role {{role.title}}" id="role-name-{{role.id}}" > - + {{/if}}
    diff --git a/cypress/e2e/organization_admin/repositories.test.ts b/cypress/e2e/organization_admin/repositories.test.ts index fd406d333..747d14e0b 100644 --- a/cypress/e2e/organization_admin/repositories.test.ts +++ b/cypress/e2e/organization_admin/repositories.test.ts @@ -41,7 +41,9 @@ describe('ACCEPTANCE: ORGANIZATION_ADMIN | REPOSITORIES', () => { after(() => { cy.getCookie('_jwt').then((cookie) => { - cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) + if (cookie) { + cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) + } }) cy.clearAllSessionStorage() }) diff --git a/cypress/e2e/organization_admin/settings.test.ts b/cypress/e2e/organization_admin/settings.test.ts index 805652d90..ad0eaa8a4 100644 --- a/cypress/e2e/organization_admin/settings.test.ts +++ b/cypress/e2e/organization_admin/settings.test.ts @@ -36,7 +36,9 @@ describe('ACCEPTANCE: ORGANIZATION_ADMIN | SETTINGS', () => { after(() => { cy.getCookie('_jwt').then((cookie) => { - cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) + if (cookie) { + cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) + } }) cy.clearAllSessionStorage() }) diff --git a/cypress/e2e/staff_admin/contact.test.ts b/cypress/e2e/staff_admin/contact.test.ts index c8a504fd1..549e89331 100644 --- a/cypress/e2e/staff_admin/contact.test.ts +++ b/cypress/e2e/staff_admin/contact.test.ts @@ -37,7 +37,9 @@ describe('ACCEPTANCE: STAFF_ADMIN | CONTACTS', () => { after(() => { cy.wait(waitTime3); cy.getCookie('_jwt').then((cookie) => { - cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) + if (cookie) { + cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) + } }) cy.clearAllSessionStorage() }) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 0a4353b77..06a7ebb61 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -71,7 +71,7 @@ Cypress.Commands.add('login', (username, password) => { }); }, { - //cacheAcrossSpecs: true, + cacheAcrossSpecs: true, }); }); @@ -292,9 +292,12 @@ Cypress.Commands.add("deleteProviderTestContacts", (provider, test_contact_famil headers: { authorization: 'Bearer ' + jwt, }, - failOnStatusCode: true, + failOnStatusCode: false, }).then((response) => { - expect(response.status).to.eq(200) + if (response.status !== 200) { + cy.log('Could not fetch contacts for cleanup, status: ' + response.status); + return; + } const deleteContactsByIds = async (contact_ids) => { const requests = contact_ids.map(contact_id => From 1d74200c0eceaae982b664f88899263859e80732 Mon Sep 17 00:00:00 2001 From: Ashwini Sukale Date: Mon, 27 Jul 2026 12:50:30 +0530 Subject: [PATCH 03/11] removed cypress changes --- app/routes/change.js | 3 --- app/routes/edit.js | 3 --- cypress/e2e/organization_admin/repositories.test.ts | 4 +--- cypress/e2e/organization_admin/settings.test.ts | 4 +--- cypress/e2e/staff_admin/contact.test.ts | 4 +--- cypress/support/commands.js | 9 +++------ 6 files changed, 6 insertions(+), 21 deletions(-) diff --git a/app/routes/change.js b/app/routes/change.js index 66ad40fc9..8f78846cb 100644 --- a/app/routes/change.js +++ b/app/routes/change.js @@ -10,9 +10,6 @@ export default class ChangeRoute extends Route { @service router; - @service - flashMessages; - @service store; diff --git a/app/routes/edit.js b/app/routes/edit.js index a9c03ce65..06de24c3d 100644 --- a/app/routes/edit.js +++ b/app/routes/edit.js @@ -10,9 +10,6 @@ export default class EditRoute extends Route { @service router; - @service - flashMessages; - @service store; diff --git a/cypress/e2e/organization_admin/repositories.test.ts b/cypress/e2e/organization_admin/repositories.test.ts index 747d14e0b..fd406d333 100644 --- a/cypress/e2e/organization_admin/repositories.test.ts +++ b/cypress/e2e/organization_admin/repositories.test.ts @@ -41,9 +41,7 @@ describe('ACCEPTANCE: ORGANIZATION_ADMIN | REPOSITORIES', () => { after(() => { cy.getCookie('_jwt').then((cookie) => { - if (cookie) { - cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) - } + cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) }) cy.clearAllSessionStorage() }) diff --git a/cypress/e2e/organization_admin/settings.test.ts b/cypress/e2e/organization_admin/settings.test.ts index ad0eaa8a4..805652d90 100644 --- a/cypress/e2e/organization_admin/settings.test.ts +++ b/cypress/e2e/organization_admin/settings.test.ts @@ -36,9 +36,7 @@ describe('ACCEPTANCE: ORGANIZATION_ADMIN | SETTINGS', () => { after(() => { cy.getCookie('_jwt').then((cookie) => { - if (cookie) { - cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) - } + cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) }) cy.clearAllSessionStorage() }) diff --git a/cypress/e2e/staff_admin/contact.test.ts b/cypress/e2e/staff_admin/contact.test.ts index 549e89331..c8a504fd1 100644 --- a/cypress/e2e/staff_admin/contact.test.ts +++ b/cypress/e2e/staff_admin/contact.test.ts @@ -37,9 +37,7 @@ describe('ACCEPTANCE: STAFF_ADMIN | CONTACTS', () => { after(() => { cy.wait(waitTime3); cy.getCookie('_jwt').then((cookie) => { - if (cookie) { - cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) - } + cy.deleteProviderTestContacts(provider_id, test_contact_family_name_prefix, Cypress.env('api_url'), cookie.value) }) cy.clearAllSessionStorage() }) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 06a7ebb61..0a4353b77 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -71,7 +71,7 @@ Cypress.Commands.add('login', (username, password) => { }); }, { - cacheAcrossSpecs: true, + //cacheAcrossSpecs: true, }); }); @@ -292,12 +292,9 @@ Cypress.Commands.add("deleteProviderTestContacts", (provider, test_contact_famil headers: { authorization: 'Bearer ' + jwt, }, - failOnStatusCode: false, + failOnStatusCode: true, }).then((response) => { - if (response.status !== 200) { - cy.log('Could not fetch contacts for cleanup, status: ' + response.status); - return; - } + expect(response.status).to.eq(200) const deleteContactsByIds = async (contact_ids) => { const requests = contact_ids.map(contact_id => From 9cf59a1cec098a715696e144a740f5f922d4f7f7 Mon Sep 17 00:00:00 2001 From: Ashwini Sukale Date: Thu, 30 Jul 2026 20:04:56 +0530 Subject: [PATCH 04/11] Fixed the review comments in the Vercel --- app/components/doi-list.hbs | 2 + app/components/repository-dois-transfer.hbs | 2 +- app/components/repository-list.hbs | 2 +- app/styles/local.css | 131 ++++++++++++------ app/templates/dois/show/edit.hbs | 24 ++-- app/templates/repositories/show/index.hbs | 2 +- .../repositories/show/prefixes/index.hbs | 2 +- app/templates/repositories/show/settings.hbs | 2 +- 8 files changed, 108 insertions(+), 59 deletions(-) diff --git a/app/components/doi-list.hbs b/app/components/doi-list.hbs index cec826935..50d2374bd 100644 --- a/app/components/doi-list.hbs +++ b/app/components/doi-list.hbs @@ -1,3 +1,4 @@ +