inventaire / inventaire-client

webapp coupled to the inventaire server :books:
https://inventaire.io
49 stars 16 forks source link

Ordering listing elements #491

Closed jum-s closed 2 weeks ago

jum-s commented 5 months ago

Synced with server branch: 677

This branch allows reorder any list elements. All the lexicographical ordering logic is handled server side. This naive client requests the new ordinal position it would like to see the element in the current list. Therefore, requests parameters should look like:

{
  id: 'a8a18f31fc5148dd46ac80e2b70c7a91',
  ordinal: 2,
  reqUserId: 'a8a18f31fc5148dd46ac80e2b70ad099'
}
maxlath commented 4 months ago

bug: when I click on "Done", the elements are re-sorted to their previous order (but the saved order is visible on reload)

[jums edit]: "Done" is now deleted with 03e0485

jum-s commented 3 months ago

Should be re-ready for review. Along with 677