- Remove vestigial try_cache param from generate_qr_code (never used in body) - Remove vestigial try_cache from ae_core_functions: load_ae_obj_id__site_domain, update_ae_obj_id_crud, update_ae_obj_id_crud_v2 (none referenced it in body) - Add proper SWR pattern to load_ae_obj_id__sponsorship_cfg and load_ae_obj_id__sponsorship; change defaults from false to true - Change load_ae_obj_id__event_file default try_cache from false to true (consistent with load_ae_obj_li__event_file) - Change load_ae_obj_id__hosted_file default try_cache from false to true (consistent with load_ae_obj_li__hosted_file) - Remove stale try_cache arg from element_ae_crud.svelte caller
Aether (AE) Sponsorships Module
The Sponsorships module is designed to manage event or project sponsorships. It includes data structures and functions for handling sponsorship configurations and individual sponsorship records.
Data Structures
Sponsorship Configuration (Sponsorship_Cfg)
This data structure defines the available sponsorship levels, options, and schedules for a particular event or account. It acts as a template for creating individual sponsorships.
Sponsorship
This represents an actual sponsorship agreement with an organization or individual. It includes details about the sponsor, the selected level, payment amount, and other relevant information.
Functionality
This module provides the following functionality:
- Data Loading: Functions to load sponsorship configurations and sponsorship records from the backend API.
- Data Export: A function to download an export of sponsorship data in CSV or Excel format.
- Local Caching: Uses Dexie.js to cache data in the browser's IndexedDB for offline access and faster load times.
- API Interaction: All data operations are synced with the backend API.
Files
ae_sponsorships_functions.ts: Contains functions for loading and processing sponsorship data.db_sponsorships.ts: Defines the IndexedDB schema for the sponsorships module using Dexie.js.