Repository navigation
Open
Labels
Description
⚠️ OpenSpec-managed issue — this content is automatically synced
from theopenspec/directory. Manual edits will be overwritten on next sync.
Artifacts
Specs
Tasks
- T01: Add the template category filter, the per-category headings, the GitHub card narrowing and the
?category=query tosrc/views/TemplateGallery.vue(REQ-BQGL-001). Verify: vitest cases in a newtests/views/TemplateGallery.categories.spec.js, and extendtests/e2e/template-gallery.spec.tsto filter by a category. Built inTemplateGallery.vue: oneNcSelectover the fourApplicationTemplate.categoryvalues, groups in the enum's order with "Other" last (seeded first inside a group), GitHub cards narrowed by their descriptor's category,?category=read on create and written with$router.replace. Vitesttests/views/TemplateGallery.categories.spec.js(red first: lane log red-gallery-T01.log);TemplateGalleryBuiltin.spec.jsnow expects the grouped order. The e2e opens?category=field-work(not run in the lane: no live stack). - T02: Declare
formTemplatein a new fragmentlib/Settings/register.d/83-form-library.json(REQ-BQGL-002). Verify: PHPUnit on the register import accepting a form template. Built:formTemplatein83-form-library.json;tests/Unit/Settings/FormLibraryFragmentTest.phpvalidates the subsidy record (six bound properties) against the closed fragment with Opis and refuses another kind and a form without definitions. - T03: Add
src/services/formCapture.jsreusingdeNamespaceSlugandrewriteSchemaRefs, andsrc/dialogs/SaveFormToLibraryDialog.vue, opened fromFormPageEditor.vueandRegistrationFormEditor.vue, refusing a form bound to a missing property (REQ-BQGL-002). Verify: vitesttests/services/formCapture.spec.jsand a dialog spec undertests/dialogs/. Built:formCapture.js(red first),SaveFormToLibraryDialog.vueopened fromFormPageEditor.vueand, throughRegistrationFormList.vue, fromRegistrationFormEditor.vue's new "Save to form library" button; it reads the schema from the register's schema list and names a missing property. Vitesttests/dialogs/SaveFormToLibraryDialog.spec.js. - T04: Add the "Forms" view to
TemplateGallery.vuewith search and the category filter (REQ-BQGL-003). Verify: vitest cases intests/views/TemplateGallery.categories.spec.js. Built: a "Forms" tab inTemplateGallery.vuerenderingsrc/components/store/FormLibraryView.vue, sharing the gallery's category filter and?category=; search by name, description and publisher (filterLibraryFormsinsrc/services/formLibrary.js). - T05: Add
src/dialogs/UseLibraryFormDialog.vuewith app, version, target and schema mapping, the missing property list and "Add these properties", writing only on confirm (REQ-BQGL-004). Verify: vitesttests/dialogs/UseLibraryFormDialog.spec.js. Built:UseLibraryFormDialog.vueanduseLibraryForm()insrc/services/formLibrary.js: the schema gains only the missing properties (PATCH ofpropertiesby numeric id), a form page is appended to the version manifest (PATCH ofmanifestonly), a registration form is saved as a draft that the realregistrationFormfragment accepts (Ajv intests/services/formLibrary.spec.js). - T06: Add
src/services/formExport.jsfollowingblockExport.js, with export and validated import in the "Forms" view (REQ-BQGL-005). Verify: vitesttests/services/formExport.spec.jsfor a round trip and a refusedcomponent-blockfile. Built:formExport.js(red first); Export and Import buttons in the Forms view; acomponent-blockfile is refused with "This file is not a form export." (vitest intests/views/TemplateGallery.categories.spec.js). - T07: Add the
buildiq-formtopic search tolib/Service/GitHubCatalogService.php, a route besideshop#githubSearchinappinfo/routes.php, and install into a local library form (REQ-BQGL-005). Verify: PHPUnit cases intests/Unit/Service/GitHubCatalogServiceTest.phpfor the topic query, the cache and a repository withoutform.json. Built:searchForms()(topicbuildiq-form, cached, a repository without a validform.jsonis a non-installable card) andshop#githubFormSearchat/api/shop/github/forms; "Add to my library" in the Forms view validates the card's export and creates the local library form. - T08: Playwright
tests/e2e/form-library.spec.ts: save a registration form to the library, find it, use it in a second app, export and import it (REQ-BQGL-002 to REQ-BQGL-005). Written intests/e2e/form-library.spec.ts(skips whenform-templateis not imported); NOT run: no live stack in the lane, so this stays open until a CI or live run is green. - T09: Strings and docs: English and Dutch for the filter, "Forms", the dialogs and the refusals (
l10n/en.json,l10n/nl.json), and a page indocs/on the form library and sharing forms with other organisations. Built: 48 English and Dutch strings, anddocs/form-library.md. - T10: Run
openspec validate reuse-gallery-categories-and-form-library --strict. Run: valid.
Design
See design.md for technical design details.
Synced from openspec/changes/reuse-gallery-categories-and-form-library by OpenSpec workflow
App: buildiq
Activity