colouring-cities / colouring-core

The Core Platform for the Colouring Cities Research Programme (CCRP)
https://colouringcities.org
GNU General Public License v3.0
47 stars 36 forks source link

Feature request for UI input element offering a list with multiple data columns / 2D array as a building attribute #1096

Open traveller195 opened 1 year ago

traveller195 commented 1 year ago

Issue Regarding to our discussions during a workshop in Dresden, Germany in January 2023 with local stakeholders about building attributes, building collection and our aims for the citizen science project Colouring Dresden, the question came up concerning a possible novel type of UI input element for new building attributes for the data category 'resilience'

see also workshop documentation (unfortunately only in German: https://zenodo.org/record/7624511#.Y-9p_R-ZMuU )

Idea: Input UI element to insert data rows having multiple structured attributes/ columns e.g. the user should be ablte to add an own measurement (energy consumption, heat/ temperature inside, ... ) with the columns:

It could be a never ending list of measurements. And would allow also several measured values for the same floor.

Those existing input elements could be used as templates for the novel one: grafik

or

grafik

MockUp for the novel UI element (just edited manually from a screenshot):

grafik

Describe the solution The GUI of an existing input element could be extended. Also the internal database / backend should be adapted. e.g. the building attribute would be represented by an 2D JSON Array in the database

Describe any alternatives (1) Model it in different seperated building attributes (for ground floor, first floor.. )without timestamp (2) Use existing text field input element (multiple rows) and use semicolon/ comma to separate all values in a row --> it is not easy to collect data

Additional context (--)

traveller195 commented 1 year ago

compare also to existing data entries:

/app/src/frontend/building/data-components/number-range-data-entry.tsx /app/src/frontend/building/data-components/multi-data-entry/multi-data-entry.tsx

polly64 commented 1 year ago

@traveller195 let's talk when we meet next week about this. The resilience section could be used to bring together information shown in other section to look at creating a resilience index. i.e. typology life expectancy + vulnerability to flooding + adaptability within plot + ,materials etc + potential for retrofit + current energy consumption. All these will be individual displayed though in one of the other 11 sections. I think the idea of an option to add multiple attributes at once in a table is really good as some people just will prefer to work this way . anyway let's talk with group about this next week

traveller195 commented 1 year ago

just to add a hint for future coding:

the question is about new Data Entry type compare data components .../app/src/frontend/building/data-components