Task #4494
open
Redesign JS portion of the Hawat web interface
Added by Jan Mach almost 6 years ago.
Updated over 3 years ago.
Category:
Development - GUI
Description
The current design of the JS part of the web interface does have few flaws and drawbacks. It recommend to take a step back and reconsider some design choices with future development in mind.
Please, be more specific in wording. Design decisions should be based on clear deficiencies and at least sparsely documented at the issue concerned. However this issue mostly sounds like "Something loose in cockpit" -> "Ok, something tightened in the cockpit." (ref)
What are the flaws and drawbacks, what needs reconsideration?
Pavel Kácha wrote:
Please, be more specific in wording. Design decisions should be based on clear deficiencies and at least sparsely documented at the issue concerned. However this issue mostly sounds like "Something loose in cockpit" -> "Ok, something tightened in the cockpit." (ref)
What are the flaws and drawbacks, what needs reconsideration?
I preferred discussing this issue at first in person. I have entered it here so that I would not forget to bring it up on the next meeting and I wanted to specify it more after the discussion. Communication solely via these notes is time consuming.
But ok, my issue with the current JS design is that there is no clear JS application structure in place. There is only jQuery, that is being used as well as possible. I have encountered the some problems when localizing the D3 charts and dataset tables in JS. These problems were regarding the order of code execution, some parts of the localization library were not yet initialized (because they were fetching external configuration files) and other parts of the application were already eager to use that functionality. Another problem was a lack of documentation for my use case, these tasks are usually taken care of by the JS framework. I have solved that issue temporarily by using synchronous AJAX get requests to fetch these important configurations, but there certainly is a better solution.
I would like to discuss this tomorrow on our meeting.
- Target version changed from 2.4 to 2.5
- Target version changed from 2.5 to 2.6
- Target version changed from 2.6 to 2.7
- Target version changed from 2.7 to Backlog
- Assignee deleted (
Jan Mach)
- Related to Support #7650: Replace nvd3 Javascript library added
- Related to Task #7669: Optimize client rendering time added
Also available in: Atom
PDF