Shared Components #22
Unanswered
zdmc23
asked this question in
Theme Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are investigating the pros/cons of attempting to use Shared Components, which would be reused between Web and Mobile Native (and potentially more). With D.T v1, a lot of the display is around customizable Tiles and Fields, and so we can have reusable components that map D.T data types (ie., Connections -> searchable dropdown component).
Then we started to discuss that PWAs appear to be having another moment, and Electron is powering some well known Desktop apps. That lead into some longer term consideration of the idea that you could have multiple interfaces depending on deployment platform, role, use case, org, etc... and we would want to share components across these concerns. Test them once, and reuse potentially multiple ways.
A specific example where this was also relevant was for the Questionnaire Form UI. In the Mobile app, it is a component with a Slider to transition to next/prev Form Screen and some standard data type fields, some that are reactive depending on response. If I want to reuse this for WP-Admin (to preview questions), or Theme (to enable for Web/Mobile Web), then I need to reimplement it. I'd like to just bundle it and deploy in a Theme Modal and have confidence that it will render similarly.
Beta Was this translation helpful? Give feedback.
All reactions