Emma: Remove strikethrough pricing — always show $12/yr #15

Merged
johan merged 3 commits from emma/fix-9 into master 2026-04-09 14:22:46 +00:00

3 Commits

Author SHA1 Message Date
James 3be8a683a7 ui: remove strikethrough pricing — always show $12/yr
Removes crossed-out "$20" pricing from all templates and test files.
The hosted plan is now permanently $12/year.

Files modified:
- test-index.html: Header CTA button
- test-hosted.html: Header CTA and hero text
- base.tmpl: Header CTA button
- hosted.tmpl: Hero text and CTA section
- index.tmpl: Hero button and hosted CTA section
- upgrade.tmpl: Pricing comparison text
- integrations.tmpl: All 4 CTA buttons (English + Chinese)
- install.tmpl: Hosted option section

fixes #9

Author: Emma <emma-20250409-001>
2026-04-09 03:36:59 -04:00
James c082f84109 test: Add comprehensive error handling tests for clavis-telemetry
Adds test coverage for issues #002, #003, #004:
- TestUpdateSpan_MaintenanceModeError: Verifies ERR-TELEMETRY-010 logging
- TestUpdateSpan_UptimeSpanQueryError: Verifies ERR-TELEMETRY-011 logging
- TestSendKumaPush_DatabaseError: Verifies ERR-TELEMETRY-033 logging
- TestSendKumaPush_NetworkError: Verifies ERR-TELEMETRY-030 logging
- TestSendKumaPush_NonOKStatus: Verifies ERR-TELEMETRY-031 logging
- TestTarpit_EarlyDisconnect: Verifies tarpit handles client disconnect
- TestErrorCodes_Unique: Verifies all error codes are unique (caught duplicates!)
- TestErrorCodes_Format: Verifies error message format compliance
- TestHandleTelemetry_DatabaseInsertError: Verifies ERR-TELEMETRY-004
- TestConcurrentErrorHandling: Verifies thread-safe error logging

Also fixes duplicate error codes found by tests:
- ERR-TELEMETRY-010 -> ERR-TELEMETRY-015 for maintenance table creation
- Added ERR-TELEMETRY-034 for Kuma response body close after non-OK status

fixes #002
fixes #003
fixes #004

Author: Shakib <shakib-20250409-001>
2026-04-09 03:35:27 -04:00
James 12824ddbef api: add /api/currencies endpoint for currency dropdown
Implements currency API per issue #11 requirements:
- Returns top 10 currencies (USD, EUR, GBP, JPY, CAD, AUD, CHF, SEK, NOK, NZD)
- Returns all remaining active currencies alphabetically
- Queries corporate.db currencies table
- Proper error handling with unique error codes (ERR-ADMIN-001, ERR-ADMIN-002)
- CORS enabled for frontend access

fixes #11

Author: Emma <emma-20250409-001>
2026-04-09 03:33:54 -04:00