code4romania / code4romania/paul

Enhance Frontend validation and UX when adding or editing Charts

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
enhancement :rocket:
Dominant language
Python
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Configuring the columns for a new chart can end up in long trial and error sequences if you're not familiar with the data, the data types and the chart types.

**Describe the solution you'd like**

1. X data column is required
2. Replace the empty option in Y data column with "Row count"
Currently, leaving an empty value defaults to `COUNT(*)`, which is the same regardless of selected Y column
3. Disable Y function dropdown if "Row count" is selected in Y data
4. Remove "Count" from Y function dropdown
5. Remove "Temporal data" field if it's not used

**Describe alternatives you've considered**
I did not think about other implementations.

**Additional context**
![Screenshot 2023-11-25 at 16 30 22](https://github.com/code4romania/paul/assets/516929/584c483b-bb4b-4545-aed3-a0ae8ad15062)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.