Skip to Content
Ranlanka CRM documentation — pre-release, subject to change.
Changelog2026-10-15

2026-10-15

  • Reference Data: Unified Country & Nationality Lookup — migration V86__seed_country_lookup_values.sql seeds lookup_values with category = 'COUNTRY' (Sri Lanka, UAE, Qatar, Saudi Arabia, Oman, Kuwait, Bahrain, Maldives, India, UK, USA, Australia, Canada, Singapore, Malaysia, Japan, China, Germany, France, Italy and 30+ more). Every nationality input now reads from it via selectLookupOptionsByCategory(state, 'COUNTRY') — CustomerOnboardModal, EditCustomerModal (primary and dual nationality), PassportDetailsModal, TravelerFields (freeform <Input> replaced by a <Select>), OnboardingStepProfile and PersonalInfoTab — with a static fallback. Countries can be added, edited or retired from Admin Data → Reference Data (/admin/lookup-values) with no code change.
  • Architecture: Cloudflare R2 Soft-Delete Renaming (deleted_ Prefix) — FileStorageService.markFileDeleted(String fileKey) (implemented in R2FileStorageServiceImpl with CopyObjectRequest + DeleteObjectRequest) renames a deleted customer document, visa, ticket or photo to .../deleted_{filename} in R2 and persists the new key to documents.file_key alongside deleted_at = NOW(), so soft-deleted files are instantly recognisable in the bucket dashboard. The 04:00 DocumentCleanupService retention job later purges deleted_ objects after 30 days and removes the rows. Idempotent prefix handling is covered by R2FileStorageServiceImplTest.
  • Architecture: System Diagram, Document Lifecycle Flow & Scheduled Jobs Table — added a full-stack Mermaid architecture flowchart (client tier, Cloudflare + Nginx edge, Spring Boot 3.5 modular monolith, Supabase PostgreSQL, Cloudflare R2, SMTP, Grafana Loki), a four-phase sequence diagram for the document lifecycle (upload & annotation, presigned download, UI delete with R2 rename, 30-day cleanup), and a table of all 7 scheduled jobs with their cron schedules, purposes and manual trigger endpoints.
Last updated on