Feature(s) impacted
I’m having trouble to adding sorting control icons as we have with table models,
I saw I can add isSortable to a field, which updates the schema accordingly, but the sorting could only be controlled in the collection preferences :
Am I missing something with configuration ?
Thanks
Observed behavior
sort icon is not shown
Expected behavior
being able to control sorting
Context
Project name: Empathy
Team name: Empathy
Environment name: any
Agent type & version: express
Recent changes made on your end if any: …
vince
December 15, 2022, 2:32pm
2
Hi @RonenMeiri ,
I’m not sure I fully understood your issue.
You have a field on you smart collection that has isSortable: true
but you still can’t sort on that field ? If you click on your field on the Table view doesn’t it sort ?
Could you please share a video showing your issue ?
exactly.
here is the schema definition :
this how the table header looks like :
only the filter icons exists, but when editing the collection settings you can see in the drop down option the topic field.
vince
December 19, 2022, 10:39am
4
You just need to click on your field topic
:
z
@vince thansk for the reply Vince,
But this is not the case, since clicking doesn’t fire any event or request. ( also no mouse cursor is changed to hint a clickable option)
My guess that your testing not on a smart collection, on a model sql collection which get this behavior automatically from what I’ve seen.
vince
December 19, 2022, 11:42am
6
On which environment are you working ? Because on your Production and Staging, the field topic
is marked has not sortable
(isSortable: false
)
@vince currently doing the local changes locally before pushing the code…
vince
December 19, 2022, 1:27pm
8
Okey but on which environment please ?
@vince ,
Hey I just pushed the code of the isSortable property - so you can see it in staging
vince
December 26, 2022, 2:45pm
10
Okey so I do have the isSortable: true
now on the Step.topic
field.
It’s still not working on your Staging environment ?
nothing changed, I dont see any sorting indication.
do you ?
vince
December 27, 2022, 10:15am
12
Okey good catch . I found the issue, I’ll let you know as soon as the fix is released
vince
December 28, 2022, 10:53am
13
Hey @RonenMeiri ,
I just want to let you know that a fix should be live in less than an hour
1 Like
vince
December 28, 2022, 12:54pm
14
@RonenMeiri Can you confirm it’s working on your side ?
@vince ,
thanks for the quick fix, looks like its working now ( although I know I need to implement the sorting ).
one thing,
when the table loads, it looks as follows:
is there a possibility to add a greyed out icon marking this field as sortable? I can see the cursor is changing once hovering the field?
vince
December 28, 2022, 4:59pm
16
It’s the design, but I will push it on our ProductBoard
1 Like
I appreciate it, many thanks for you help.
it will help the ux for the table, to see which field is sortable in advance.
A small note, I would also update the d.ts file for the isSortable option since its not there if using typescript.
1 Like