Commit Graph

13 Commits

Author SHA1 Message Date
3e9bf153dc fix(03): replace template x-data with tbody x-data for table rendering
<template x-data> inside <tbody> is inert — browsers don't render its
children. Replace with per-member <tbody x-data> (multiple tbody is
valid HTML). Also replace x-collapse on <tr> with x-transition since
table rows don't support max-height/overflow-hidden.

UAT: all 7 tests passed via Playwright automation.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-02-13 15:02:16 +08:00
46973c2f85 test(03-01): add feature tests for note history panel
- Test notes index returns author name and created_at for display
- Test empty state response (empty array when no notes)
- Test Blade view renders all Alpine.js history panel directives
- Test store endpoint returns complete note data for cache sync
- All 11 tests pass (7 existing + 4 new)
2026-02-13 12:59:39 +08:00
eba6f60d18 test(02-01): add feature tests for inline note UI
- Test note count badge renders with correct count from withCount
- Test Alpine.js directives present in HTML (noteFormOpen, submitNote, x-model, :disabled)
- Test 備忘錄 column header renders
- Test zero-note members show 0 count
- Test correct note store route URL embedded for each member

All 5 tests pass. No regressions in 7 Phase 1 tests.
2026-02-13 12:33:40 +08:00
35a9f83989 feat(01-02): add withCount for notes and comprehensive tests
- AdminMemberController index() now includes withCount('notes')
- Created MemberNoteTest with 7 feature tests
- Tests cover: creation, retrieval, validation, audit logging, authorization, N+1 prevention, ordering
- All new tests passing (7/7)
- No regressions in existing test suite
2026-02-13 12:10:39 +08:00
7095be82d5 fix(cms): allow archiving already-imported article documents 2026-02-11 09:20:44 +08:00
ec2b1d21f4 feat(cms): import legacy article documents into document library 2026-02-11 09:15:19 +08:00
4e7ef92d0b feat(cms): expose public document api and trigger site revalidation 2026-02-11 09:00:11 +08:00
b6e18a83ec feat(cms): sync site assets, revalidate webhook, and document download naming 2026-02-10 23:38:31 +08:00
f0dbea1af5 Add Line ID field to member lifecycle 2026-02-10 15:31:29 +08:00
42099759e8 Add phone login support and member import functionality
Features:
- Support login via phone number or email (LoginRequest)
- Add members:import-roster command for Excel roster import
- Merge survey emails with roster data

Code Quality (Phase 1-4):
- Add database locking for balance calculation
- Add self-approval checks for finance workflow
- Create service layer (FinanceDocumentApprovalService, PaymentVerificationService)
- Add HasAccountingEntries and HasApprovalWorkflow traits
- Create FormRequest classes for validation
- Add status-badge component
- Define authorization gates in AuthServiceProvider
- Add accounting config file

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 03:08:06 +08:00
642b879dd4 Add membership fee system with disability discount and fix document permissions
Features:
- Implement two fee types: entrance fee and annual fee (both NT$1,000)
- Add 50% discount for disability certificate holders
- Add disability certificate upload in member profile
- Integrate disability verification into cashier approval workflow
- Add membership fee settings in system admin

Document permissions:
- Fix hard-coded role logic in Document model
- Use permission-based authorization instead of role checks

Additional features:
- Add announcements, general ledger, and trial balance modules
- Add income management and accounting entries
- Add comprehensive test suite with factories
- Update UI translations to Traditional Chinese

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 09:56:01 +08:00
83602b1ed1 Implement dark mode, bug report page, and schema dump 2025-11-27 15:06:45 +08:00
13bc6db529 Initial commit 2025-11-20 23:21:05 +08:00