mirror of
https://github.com/cassandra/home-information.git
synced 2026-04-18 05:29:14 -04:00
* Implement template generalization for Entity/Location attribute editing Add AttributeEditContext pattern enabling ~95% code reuse between Entity and Location editing modals while maintaining type-safe owner-specific access. - Add AttributeEditContext base class and owner-specific implementations - Create generic edit_content_body.html template with extensible blocks - Add template filters/tags for dynamic method calls and URL generation - Update Entity/Location handlers to provide generalized context - Replace specific templates to extend generic version - Fix file upload and history restore template context issues All Location tests (139/139) and Entity editing tests (17/17) passing. * Updated documentation. Generic Attribute Editing, Testing * Added unit tests and fixed linting errors. * Rationalized view vs. edit mode names and directory organization. * Fixed JS issues with previous refactor. * More refactoring to rationalize view vs. edit mode. * Yet more refactoring to rationalize view vs. edit mode. * Continued refactoring to Javascript bug fixes for refactoring. * Fixed a couple unit tests and linting errors.