8 Commits
Author SHA1 Message Date
GandClaude Opus 5 53d2e70723 chore: add a formatter (#233)
* chore: add a formatter, matching the style this repo already writes

singleQuote=true was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.

Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format with prettier (199 files)

Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore: teach git blame to skip the reformat

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(ci): put prettier where CI actually installs

The formatter was added to the root package.json, but CI installs with
working-directory: frontend and then runs npm run verify at the root, so root
devDependencies are never installed at all. format:check died with
'prettier: not found' before checking a single file.

Root now delegates into frontend the way every other root script already does,
and prettier is a devDependency of frontend, whose lockfile CI installs.

frontend also needs its own .prettierignore: prettier resolves that file
relative to the working directory, so the root one stopped applying the moment
the command ran from frontend/ — which is how README.md and Playwright output
ended up being checked.

* fix(ci): do not format contentlayer's generated output

format:check ran green locally and failed in CI on files that do not exist
locally: CI builds contentlayer before verify, so .contentlayer/generated is
present by the time prettier looks. One generated module imports with
assert { type: 'json' }, which prettier's parser rejects outright.

A local --check cannot see build output, so generated directories have to be
ignored by name rather than discovered.

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-29 11:06:25 +00:00
Your NameandClaude b2a4656d16 feat: prepare for deployment - update documentation and backend structure
- Updated CLAUDE.md with unified Erfassung platform concept
- Enhanced backend controllers and routes structure
- Updated dependencies and configurations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 19:49:19 +02:00
Your Name 2778e84e1b feat(forms): implement form publishing flow
- Feat: Add backend route and controller to update a form's status.
- Feat: Add a status-change dropdown to the form cards.
- Feat: Add a 'Copy Link' button for published forms.
- UI: Use @headlessui/react for a clean dropdown menu.
2025-07-08 23:55:34 +02:00
Your Name d7f9ed999a feat(submissions): implement public form submission
- Feat: Add 'submissions' table to the database.
- Feat: Add backend controllers and routes for creating submissions and fetching public forms.
- Feat: Create a new dynamic page at '/form/[id]' to render and handle public form submissions.
2025-07-08 23:52:36 +02:00
Your Name eb12666959 feat(forms): implement form update (edit) functionality
- Feat: Add 'updateForm' controller and PUT route to the backend.
- Feat: Add 'editingFormId' state to the frontend to track edit mode.
- Refactor: Rename 'handleSaveAsTemplate' to 'handleSaveForm'.
- Refactor: The save function now handles both creating (POST) and updating (PUT) forms.
- Fix: Add description state to properly handle editing form descriptions.
- UI: Rename 'Save as Template' button to 'Save Form'.
2025-07-08 23:50:32 +02:00
Your Name 2b3e681b1d feat(forms): implement form deletion with UI update
- Feat: Add a 'deleteForm' controller and route to the backend.
- Refactor: Lift 'savedForms' state from 'SavedForms' to 'ModernFormBuilderLayout'.
- Refactor: The parent component now fetches and manages the forms data.
- Fix: Deleting a form now instantly updates the UI by filtering the local state.
2025-07-08 23:48:31 +02:00
Your Name 5f1de994ac feat(forms): implement list and load forms from database
- Feat: Add a 'getForms' controller and route to the backend.
- Feat: Refactor 'SavedForms.tsx' to fetch and display user's forms from the API.
- Refactor: Remove mock data and replace with state driven by the API call.
- Fix: Resolve prop-drilling and type errors in FilterControls integration.
2025-07-08 23:47:02 +02:00
Your Name c0cd9679ae feat(forms): implement save form to database
- Feat: Add forms table to the database schema.
- Feat: Create backend controller and route for saving forms.
- Feat: Connect the frontend 'SaveTemplateModal' to the new API endpoint.
- Refactor: Remove old 'useTemplateManager' hook in favor of backend API.
2025-07-08 23:44:24 +02:00