Open magnew opened 1 week ago
This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C046EEFBVQA/p1732119915118219?thread_ts=1732119915.118219&cid=C046EEFBVQA
This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C06H50RC4QH/p1731012427729099?thread_ts=1731012427.729099&cid=C06H50RC4QH
Description
Make it possible to sort by more than one column at a time in the Table chart type in the SQL runner.
This is only for the table chart type, not for the chart results table!
The table chart type actually hits a different endpoint to the chart results table as well 👀
Acceptance criteria
Bolt app: https://celadon-dieffenbachia-229218.netlify.app/
Code: https://stackblitz.com/edit/sb1-1qpl4y?file=index.html
[ ] There should be a pill that shows me the sorts
[ ] The pill should say the number of sorts that are applied
[ ] I can click on the pill
[ ] If I open the pill, the sorts are listed.
Sort by
then by
[ ] you're able to delete a sort by clicking on an
x
beside the sort (which appears on hover)[ ] In the sort list, you can interact with the field names. If I click on the field name, I'm shown a list of the fields in my results table (with the field that's selected with a check mark beside it).
[ ] Beside the field name, there is the sorting indicated. This sorting can be changed from within the pill modal
[ ] There is an option to
add sort
at the bottom of the modal[ ] clicking on
add sort
makes the text disappear. In its place, a drop-down list opens with a search bar. The drop-down list contains the field names of the fields[ ] Once you click on a field name, the field appears in the list of sorts in the modal.