- Updated `ACTIVITY_PRODUCTION_ARCHITECTURE_AND_PHASES.md` to clarify the derivation of `ACTIVITY_MODULE_REGISTRY_FIELD_KEYS` from `csv_parser.module_registry`. - Enhanced `activity_data_canon.py` to eliminate hardcoded key lists, ensuring all registry fields are derived dynamically. - Refactored the `_import_activity` function to remove redundant parameters and streamline the import process. - Improved the `insert_activity_csv_minimal` function to handle metrics exclusively through `update_activity_columns`, preventing hardcoded values. - Updated frontend components to manage editable activity log fields more effectively, ensuring proper handling of metrics during CSV imports. - Added unit tests to validate the new logic and ensure consistency in activity session metrics handling. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| core.py | ||
| executor.py | ||
| field_units.py | ||
| import_errors.py | ||
| import_row_processing.py | ||
| mapping_suggest.py | ||
| module_registry.py | ||
| permissions.py | ||
| sleep_apple_import.py | ||
| template_validator.py | ||
| type_converter.py | ||