Commit Graph

8 Commits

Author SHA1 Message Date
49f57045e2 Move certificate generation into its own "Genera Documenti" card
Was a header action button; now a dedicated card styled like
Informazioni generali, placed right after it, so the association
detail page reads as: general info, generate documents, soci,
accounts.

Verified live: card renders in the right place/style and the download
still works from its new location.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hQcuUQFue2bFvrYw2UQhK
2026-08-24 19:44:13 +03:00
7c3225f06e Search by NAS folder number, drop Indirizzo column, remove manual ratifica field
- Association list search now also matches nasFolderNumber.
- Dropped the "Indirizzo" column from the list table (still editable
  in the edit dialog, just not shown in the table).
- Removed the manual "Codice ratifica" field from the edit dialog -
  it's derived automatically now, so a manual override field was
  redundant and a source of stale/wrong values; the underlying field
  is untouched by this (existing values are preserved via the
  spread), just no longer directly editable here.
- Saving a NAS folder number that's already used by another
  association now warns (with the other association's name) before
  proceeding, since a collision silently produces two associations
  with the same ratification code.

Verified live: table has no Indirizzo column, searching "2" surfaces
"#2 ENCAP ODV", the ratification code field is gone from the edit
dialog, and setting folder 4 (already used by ENCAP - COMITATO
REGIONALE VENETO) triggers the duplicate warning.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hQcuUQFue2bFvrYw2UQhK
2026-08-24 19:39:40 +03:00
5c50f28f7e Add Modelli (templates) admin section
New /dashboard/templates page (MANAGER/ADMIN, matches backend access):
lists document templates, lets MANAGER/ADMIN download the current
file and ADMIN replace it. Nav link added to the header. Also renamed
"Genera Attestato" to "Genera Certificato di Adesione" and the
downloaded file's name prefix to match, for consistency with the
document's real name.

Verified live: nav link navigates to the page, download round-trips
the file, and uploading a new file updates the listed filename and
timestamp immediately.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hQcuUQFue2bFvrYw2UQhK
2026-08-24 19:22:18 +03:00
82c6d1e2cb Show and make editable the NAS folder number
Prefixes the association name with "#<folder>" in the list table and
the detail page title, and adds an editable field for it in the edit
dialog - needed since some associations are missing it (NAS folders
that were never numbered), which is what silently blanks their
ratification code on the attestato.

Verified live: table and detail title show "#2 ENCAP ODV", the edit
field reflects the current value, and saving a new value updates both
immediately.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hQcuUQFue2bFvrYw2UQhK
2026-08-24 19:06:04 +03:00
9274377a3d Add attestato generation UI
"Genera Attestato" button on the association detail page downloads
the certificate PDF from the new backend endpoint; the edit dialog
gained a ratification-code field (used on the certificate).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hQcuUQFue2bFvrYw2UQhK
2026-08-24 17:20:28 +03:00
cb0c8dc140 Add missing lib/ (API client, auth, models) and logo asset
lib/ was never committed despite every page importing from it - a
fresh clone couldn't build. public/logo-encap.jpg was likewise
missing even though app/login/page.tsx already references it.
Also gitignore .idea/, which shouldn't be tracked.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017hQcuUQFue2bFvrYw2UQhK
2026-08-24 17:20:22 +03:00
d0560df6c9 Init commit 2026-08-17 11:34:06 +03:00
5cd2ba24cb Initial commit from Create Next App 2026-02-17 19:54:47 +02:00