diff --git a/frontend/website/cypress/e2e/set-scheduling.cy.ts b/frontend/website/cypress/e2e/set-scheduling.cy.ts index 1860145..3c715a7 100644 --- a/frontend/website/cypress/e2e/set-scheduling.cy.ts +++ b/frontend/website/cypress/e2e/set-scheduling.cy.ts @@ -139,7 +139,7 @@ describe('set scheduling', () => { cy.get('h1').should('have.text', 'Schedule Bible') cy.get('#schedule-level option').then(($options) => { expect([...$options].map((option) => option.textContent?.trim())).to.deep.equal( - ['Choose a level', 'Book (2)', 'Portion (2)', 'Chapter_sections-v2 (2)'], + ['Choose a level', 'book (2)', 'portion (2)', 'Chapter_sections-v2 (2)'], ) }) cy.get('#schedule-level').select('3') @@ -155,6 +155,7 @@ describe('set scheduling', () => { .should('contain.text', 'Genesis / Creation / Chapter 1') .find('.assignment-kind') .should('have.text', 'Chapter_sections-v2') + .and('have.css', 'text-transform', 'none') cy.get('[data-schedule-date="2026-08-11"]') .should('contain.text', 'Rest day') .and('not.contain.text', 'Chapter 1') @@ -208,7 +209,10 @@ describe('set scheduling', () => { cy.wait('@me') cy.wait('@schedule') cy.get('h1').should('have.text', 'Bible schedule') - cy.get('.eyebrow').should('have.text', 'Chapter_sections-v2 plan') + cy.get('.eyebrow') + .should('have.text', 'Chapter_sections-v2 plan') + .find('.schedule-kind') + .should('have.css', 'text-transform', 'none') cy.contains('2 Chapter_sections-v2 assignments across 3 days').should('be.visible') cy.intercept('GET', '**/api/schedules/74', { @@ -253,7 +257,9 @@ describe('set scheduling', () => { cy.get('ul[aria-label="Your schedules"]') .should('contain.text', 'Bible') .and('contain.text', '2 assignments') - cy.get('.schedule-card__heading p').should('have.text', 'Chapter_sections-v2') + cy.get('.schedule-card__heading p') + .should('have.text', 'Chapter_sections-v2') + .and('have.css', 'text-transform', 'none') cy.contains('a', 'Bible').should('have.attr', 'href', '/schedules/73') }) }) diff --git a/frontend/website/src/components/ElementTree.vue b/frontend/website/src/components/ElementTree.vue index 6cc1302..54d7e39 100644 --- a/frontend/website/src/components/ElementTree.vue +++ b/frontend/website/src/components/ElementTree.vue @@ -87,7 +87,7 @@ defineProps<{ font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; - text-transform: uppercase; + text-transform: none; } @media (max-width: 37.5rem) { diff --git a/frontend/website/src/views/CreateScheduleView.vue b/frontend/website/src/views/CreateScheduleView.vue index 87c5e39..deea7a2 100644 --- a/frontend/website/src/views/CreateScheduleView.vue +++ b/frontend/website/src/views/CreateScheduleView.vue @@ -26,12 +26,7 @@ const form = reactive({ const fieldErrors = ref({}) const levels = computed(() => - (layout.value?.levels ?? []) - .filter((level) => level.elementCount > 0) - .map((level) => ({ - ...level, - label: humanizeKind(level.kind), - })), + (layout.value?.levels ?? []).filter((level) => level.elementCount > 0), ) const scheduleFormSchema = z @@ -111,12 +106,6 @@ async function retry(): Promise { await setLayoutStore.fetchSetLayout(currentSetId.value) } } - -function humanizeKind(kind: string): string { - const words = kind.replaceAll(/[_-]+/g, ' ') - - return words.charAt(0).toUpperCase() + words.slice(1) -}