Skip to content

Started refactor and alignment of JS component system - #3853

Merged
ssddanbrown merged 8 commits into
developmentfrom
component_refactor
Nov 16, 2022
Merged

ssddanbrown merged 8 commits into
developmentfrom
component_refactor

Conversation

@ssddanbrown

@ssddanbrown ssddanbrown commented Nov 14, 2022

Copy link
Copy Markdown
Member
  • Updates old components to newer format, removes legacy component support.
  • Makes component registration easier and less duplicated.
  • Adds base component class to extend for better editor support.
  • Aligns global window exposure usage and aligns with other service names.
  • Separates app-specific component registration from generic component logic.

Todo

  • Continue working through (components/index.js) component list.
  • Thoroughly test attachments file upload once done (Lots of inter component events).
  • Ensure no window.EntitySelectorPopup references exist ($components.first instead).
  • Update JS dev docs.
  • Rethink elem.components usage?

- Updates old components to newer format, removes legacy component
support.
- Makes component registration easier and less duplicated.
- Adds base component class to extend for better editor support.
- Aligns global window exposure usage and aligns with other service
  names.
Old system was hard to track in terms of usage and it's application of
'components' properties directly to elements was shoddy.
This routes usage via the components service, with element-specific
component usage tracked via a local weakmap.
Updated existing found usages to use the new system.
@ssddanbrown
ssddanbrown merged commit bbf13e9 into development Nov 16, 2022
@ssddanbrown
ssddanbrown deleted the component_refactor branch November 16, 2022 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant