-
Notifications
You must be signed in to change notification settings - Fork 1
refactor UI Controller #257
Comments
@balmas, @irina060981: I think we need to draw a line first between responsibilities of a UI controller and those of a content script. On my opinion:
Do you agree to that concept? Also, we probably all agree that a UI controller should be modular. Right now we have four types of clients that use a UI controller:
Webextension requires everything a UI controller has currently (it was created to serve webextension, naturally). PWA probably needs the pretty much the same, but with different panel and popup instances. How about Embedded Lib and Inflection Games? What do they not need from what is currently in a UI Controller? And finally, what type of modules we might have within a UI controller? Right now I can think of:
|
@kirlat, @balmas, I believe that a part of my answer is in other issue - alpheios-project/webextension#130 But if shortly according to questions here there are my thoughts: We have these main features used in the project (as I know of course)
So we could divide it into 3 big parts:
and upon all this there are some library functions that could operate data - UIController, LexicalQuery, Storage/State, Localization, Skins/Branding - components So I think that we should move to the creation some basic classes, components, and libraries as services to define there required behaviour and they will have basic functioning. For example: Module with data dictionary (data models + infl;ection-tables), Hope, I was able to describe my thoughts correctly :) Anyway as I wrote before - I am not against approach above - as it could be a step to a better future :) |
closing this as the major refactoring is now done. |
from alpheios-project/pwa-prototype/issues/6:
The text was updated successfully, but these errors were encountered: