Files
home-information/docs/dev
Tony C aacb0b5bbf Configuration Settings Redesign with Attribute Framework Integration (#142)
* Implement Configuration Settings redesign with sticky header + tabs

- Add allow_reordering parameter to AttributeForm to control reorder controls
- Create ConfigEditFormHandler for unified multi-formset handling
- Create ConfigEditResponseRenderer for page-based response generation
- Add system_settings_redesigned.html template with sticky header + tabbed interface
- Update ConfigSettingsView to use helper classes following Entity/Location patterns
- Disable attribute reordering for system-defined config attributes
- Maintain existing URL structure and form submission behavior

* Fix AttributeEditContext integration with SubsystemAttributeEditData

- Create SubsystemAttributeEditContext for proper template context
- Add SubsystemAttributeEditData dataclass to cleanly pair formsets with contexts
- Update form handler and response renderer to use dataclass approach
- Simplify template logic by preparing data structure on server side
- Remove complex template logic in favor of clean dataclass properties

Fixes AttributeError: 'str' object has no attribute 'history_url_name'

* Add missing URL patterns for AttributeEditContext integration

- Add subsystem_attribute_history_inline and subsystem_attribute_restore_inline URL patterns
- Create SubsystemAttributeHistoryInlineView and SubsystemAttributeRestoreInlineView
- Follow Entity/Location pattern for inline history and restore functionality
- Resolves NoReverseMatch error for subsystem_attribute_history_inline URL

Fixes django.urls.exceptions.NoReverseMatch for inline attribute history URLs

* Tweaks for getting backend structure in place. WIP

* Config attrribute config mostly working, but still WIP.

* Good checkpoint on config attribute editing. Works, but WIP.

* Moved config settings to vertical tabs for subsystems.

* Added selected settings tab restoration url strategy.

* Added setting page error count badges to tabs.

* Tweaks to config page entry point and labeling.

* Added auto-dismiss settings update success message.

* Major refactor of attr-v2-modal.js to remove global namespacing.

* Fixed attr-v2 async initialization issue.

* CONverting magic stricts to constants.

* Refactor attribute javascript files to be better organized.

* Fixed ENTER key submit suppression for attributes. Dead code removal.

* Cleaned up all shared temp,ate id, class and selectors.

* Refactor: Attribute editing javascript message posting.

* Removed legacy config attribute history modal views.

* Refactor for better attributeb editing response code organization.

* Interim Refactor: Simple general attribute view working. WIP

* Refactor to introduce attribute page vs. item editing contexts.

* Have Entity and Location converted to refactored attribute editing.

* Checkpoint on converting Subsystem to new attribute editing. WIP

* Completed major attribute editing refactoring.

* Working on unit tests for new attribute refactor. WIP

* Fixed some unit tests. Tests are WIP though.

* Miscellaneous cleanup tasks.

* Fixed unit tests, linting and upload file deletion bug.
2025-09-05 15:26:24 +00:00
..

Home Information Logo

Developer Documentation

See the markdown files in this directory for various developer-related documentation.

The code is the best documentation for lower-level details, but there are some higher-level concepts that are useful to help orient developers. This is the place for that high-level, developer-specific documentation.