From d418eaee1239187bcf247b5968dcb0e7e5639d47 Mon Sep 17 00:00:00 2001 From: "Calum H." Date: Sun, 28 Sep 2025 20:48:21 +0100 Subject: [PATCH] feat: create modal limit alerting (#4429) * draft: layout for alert * feat: simplify * feat: remove dummy data * fix: lint and widths * feat: use chips rather than dropdown select * feat: remove gap from admonition header v body * Revert "feat: remove gap from admonition header v body" This reverts commit 46cce52799bc3ac24825a73ca4add18e0acad3c1. * fix: niche fixes * feat: update for new backend structure * fix: i18n --- .../instructions/i18n-convert.instructions.md | 71 +++++++ .../components/ui/CollectionCreateModal.vue | 128 ------------ .../ui/create/CollectionCreateModal.vue | 185 ++++++++++++++++++ .../components/ui/create/CreateLimitAlert.vue | 168 ++++++++++++++++ .../{ => create}/OrganizationCreateModal.vue | 103 ++++++++-- .../ProjectCreateModal.vue} | 139 +++++++++---- apps/frontend/src/layouts/default.vue | 8 +- apps/frontend/src/locales/en-US/index.json | 141 +++++++++++++ apps/frontend/src/pages/[type]/[id].vue | 2 +- .../src/pages/dashboard/collections.vue | 2 +- .../src/pages/dashboard/organizations.vue | 2 +- .../frontend/src/pages/dashboard/projects.vue | 2 +- apps/frontend/src/pages/organization/[id].vue | 2 +- .../organization/[id]/settings/projects.vue | 2 +- apps/frontend/src/pages/user/[id].vue | 4 +- packages/assets/generated-icons.ts | 2 + packages/assets/icons/support-chat.svg | 18 ++ 17 files changed, 785 insertions(+), 194 deletions(-) create mode 100644 .github/instructions/i18n-convert.instructions.md delete mode 100644 apps/frontend/src/components/ui/CollectionCreateModal.vue create mode 100644 apps/frontend/src/components/ui/create/CollectionCreateModal.vue create mode 100644 apps/frontend/src/components/ui/create/CreateLimitAlert.vue rename apps/frontend/src/components/ui/{ => create}/OrganizationCreateModal.vue (54%) rename apps/frontend/src/components/ui/{ModalCreation.vue => create/ProjectCreateModal.vue} (53%) create mode 100644 packages/assets/icons/support-chat.svg diff --git a/.github/instructions/i18n-convert.instructions.md b/.github/instructions/i18n-convert.instructions.md new file mode 100644 index 000000000..44a98ce4b --- /dev/null +++ b/.github/instructions/i18n-convert.instructions.md @@ -0,0 +1,71 @@ +--- +applyTo: '**/*.vue' +--- + +You are given a Nuxt/Vue single-file component (.vue). Your task is to convert every hard-coded natural-language string in the