Description
ZObjects are stored in vuex in the shape of tables, where each row has the following properties:
{ id: 11 key: "Z40K1" parent: 7 value: "object" }
Create a JS class for Row handles all the common behavior (getters, isObject, isArray, isTerminal, etc...)
Desired behavior/Acceptance criteria
- Add Row class
- Change Vuex store methods (getRowBy...) so that they return Row instead of Object
- Move all common methods to this class (getters, isObject, isArray, isTerminal, etc...)
- Replace the usage of row object with the new Row in the default components
- Add tests!
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist