jtxBoard icon indicating copy to clipboard operation
jtxBoard copied to clipboard

[BUG] Open-from-widget filter/sort affects other collections

Open piaste opened this issue 1 year ago • 3 comments

Describe the bug #635 makes the filter/sort applied to a widget automatically also apply to the collection in the main app, if the app is opened via that widget. This is good.

However, when that happens, the other non-widget-related collections temporarily forget any sorting previously set and are displayed in the default order. They should remember their filter/sort, in the same way as when the app is launched the normal way.

To Reproduce

  1. Create a few Notes. Set a custom sort for Notes collection
  2. Create a few Tasks. Create a widget displaying Tasks with a custom sort
  3. Close app, then launch app from its main icon. Go to Notes. Notes will be displayed with the custom sort set in (1).
  4. Close app, then launch app from the widget. Go to Notes. Notes will be displayed with the default sort.

Expected behavior 4) Notes should be displayed with the custom sort set in (1)

Device and version

  • jtx Board version: 2.9.3.ose, F-Droid

piaste avatar Dec 17 '24 10:12 piaste

Hi @piaste , sorry for the late reply. Can you tell me which sort options you used so I can exclude that there's an issue in the sorting itself?

patrickunterwegs avatar Jan 14 '25 16:01 patrickunterwegs

@piaste , additionally, when you write "close the app", do you mean just closing it or killing it (removing it from the recent apps)?

patrickunterwegs avatar Jan 30 '25 19:01 patrickunterwegs

Hi @patrickunterwegs, no worries, it's a very minor bug, I just wanted to help 😃

Currently, my Notes are ordered by Drag 'n Drop, then by Last Modified Descending. My Tasks are sorted by Drag 'n Drop, then by Summary Ascending.

The widget displays Tasks sorted by Due, then by Last Modified. When I go to Notes after opening from the widget, I see the notes in chronological order (oldest first). If I open the group/sort menu, the "Order by" setting has no option selected, but "Ascending" is selected; the "Then order by" setting is displayed correctly.

Closing the app is sufficient to trigger the bug.

piaste avatar Feb 02 '25 22:02 piaste