Skip to content

Migrate events/cantcreate page to Vue + i18n (Group 5.2)#867

Open
edwh wants to merge 4 commits into
developfrom
RES-CANTCREATE-vue
Open

Migrate events/cantcreate page to Vue + i18n (Group 5.2)#867
edwh wants to merge 4 commits into
developfrom
RES-CANTCREATE-vue

Conversation

@edwh

@edwh edwh commented May 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • plans/active/blade-to-vue-migration.md Group 5.2
  • Presentational page (no API) when a restarter or group-less host hits /party/create
  • Moves hard-coded English into lang/{en,fr,fr-BE}/cantcreate.php
  • Renders via a small Vue component

Test plan

  • PHPUnit: tests/Feature/Events/CantCreateEventPageTest passes on CI

Purely presentational page shown when a restarter (or host with no
groups) hits /party/create. Moves hard-coded English text into
lang/{en,fr,fr-BE}/cantcreate.php and renders via a Vue component.
Adds a feature test asserting the Vue mount renders.
@sonarqubecloud

Copy link
Copy Markdown

edwh added 3 commits July 3, 2026 16:08
a_host_without_a_group_cant_create_an_event asserted the server-rendered string
"You need to be a host of a group ...", but that copy now lives in the
CantCreateEventPage Vue component (cantcreate.intro, rendered client-side). Assert
the component mount instead, matching CantCreateEventPageTest.

Verified: CreateEventTest + CantCreateEventPageTest green (20 tests, 271 assertions).
A static `src="/images/dashboard/..."` in CantCreateEventPage.vue made Vite/Rollup
try to resolve the public image as a build-time import and fail
("Rollup failed to resolve import"), breaking `vite build` (and thus the
Playwright CI step). Bind it as `:src="'/images/...'"` — a runtime string, the
same pattern used by GroupDeviceRepairPodium.vue — so Vite leaves it untouched.

Verified: `vite build` exits 0.
@sonarqubecloud

sonarqubecloud Bot commented Jul 3, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant