Skip to content

feat(query): reorder Order By clauses with move up/down buttons - #2181

Open
paustint wants to merge 1 commit into
mainfrom
feat/query-reorder-order-by
Open

paustint wants to merge 1 commit into
mainfrom
feat/query-reorder-order-by

Conversation

@paustint

Copy link
Copy Markdown
Contributor

Order By clauses could only be added at the end, so changing sort priority meant deleting and re-entering fields. Each Order By row now has Move Up / Move Down buttons (disabled at the ends of the list). The same container is used by the main query builder and subqueries, so both get it.

  • FormRowButton gains an optional disabled prop
  • Rows keep their key when moved, so each row's Order/Nulls picklist state moves with it
  • The row group was labelled Filter row N (copy-paste from filters); it is now Order by row N, and the E2E page model is updated to match

Testing

  • New unit spec query-order-by.spec.tsx (move up, move down, disabled at ends / single row)
  • features-query test + typecheck green
  • Not manually clicked through in the running app yet

Closes #1753

Order By clauses could only be added at the end, so changing sort
priority meant deleting and re-entering fields. Each row now has Move Up
and Move Down buttons (disabled at the ends of the list), in both the
main query and subquery builders.

The row group was also labelled "Filter row N"; it is now "Order by row
N" and the E2E page model follows.

Closes #1753

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Query: add option to re-order order by clauses

1 participant