feat(registratura): all 4 NAS drives (A/O/P/T) + hostnameIP fallback

- nas-paths.ts: A:\=Arhiva, O:\=Organizare, P:\=Proiecte, T:\=Transfer
- toUncPathByIp() / toFileUrlByIp() helpers for DNS failure fallback
- shareLabelFor() returns human-readable share name for badges
- UI: 'IP' fallback link on hover, badge shows share label
- Validation hints updated to show all 4 drive letters
- Docs updated: CLAUDE.md, ROADMAP.md, SESSION-LOG.md
This commit is contained in:
AI Assistant
2026-02-28 17:23:38 +02:00
parent 4f00cb2de8
commit f4b1d4b8dd
5 changed files with 144 additions and 42 deletions
+34
View File
@@ -4,6 +4,40 @@
---
## Session — 2026-02-28c (GitHub Copilot - Claude Opus 4.6)
### Context
Continuation of QA improvements. NAS path enhancement: all 4 drives + DNS→IP fallback.
### Completed
- **NAS Network Path Attachments (enhanced):**
- 4 drive mappings: A:\=Arhiva, O:\=Organizare, P:\=Proiecte, T:\=Transfer
- `NAS_HOST` / `NAS_IP` constants used consistently across all UNC templates
- New helpers: `toUncPathByIp()`, `toFileUrlByIp()`, `shareLabelFor()`
- IP fallback: every network attachment shows an "IP" button on hover that opens via `\\10.10.10.10\...` when DNS fails
- Badge now shows share label (Proiecte/Arhiva/Organizare/Transfer) instead of generic "NAS"
- Validation hint updated to show all 4 drive letters
- **Documentation updated:**
- CLAUDE.md: Registratura v0.3.0, NAS drives in module table, NAS row in integrations table
- ROADMAP.md: Registratura version bump, new task 3.03b with full feature list
- SESSION-LOG.md: This session entry
### Files Changed
- **Modified:** `src/config/nas-paths.ts` (4 drives, IP fallback helpers, shareLabelFor)
- **Modified:** `src/modules/registratura/components/registry-entry-form.tsx` (IP fallback link, share badge, validation hints)
- **Modified:** `CLAUDE.md`, `ROADMAP.md`, `SESSION-LOG.md`
### Build
- `npx next build` — zero errors
- Pushed to main → Portainer auto-deploy
---
## Session — 2026-02-28b (GitHub Copilot - Claude Opus 4.6)
### Context