In Latest tab, group apps changed since last repo update
There are many users who used the "Recently Updated" screen to keep track of recently updated apps. I propose enhancing the sorting on the "Latest" page to improve this experience in the new UI.
Currently, it sorts apps by:
- Updated date
- "Is added date same as updated date?" (1 = yes, 0 = no) - This is figuring out if an app is "New" or just recently updated.
- Alphabetically based on name
This means that if you were to wait, e.g. five days before updating the list of repositories (maybe you weren't connected to the internet for example), then you may see the following:
- 3 new apps from today
- 5 updated apps from today
- 2 new apps from 4 days ago
- 6 updated apps from 4 days ago
- 4 new apps from 12 days ago
- 2 updated apps from 12 days ago
In this case, it would be preferable to show:
- 5 new apps from the past 4 days (since previous repo update)
- 11 updated apps from the past 4 days
- 4 new apps from 12 days ago
- 2 updated apps from 12 days ago
This would be done by sorting apps by the following:
- "Is the updated date more recent that the previous repo update?" (1 = yes, 0 = no) - This groups those apps which had their metadata updated since the previous repo update
- "App was updated since previous update: 1 or 0"
- "Is added date same as updated date?" (1 = yes, 0 = no) - This is figuring out if an app is "New" or just recently updated.
- Alphabetically based on name
This could be done in a number of ways, but I'd suggest doing so by adding a new column to the fdroid_app
table such as appMetadataUpdatedDate
- which is the date the metadata was touched last by a repo update (i.e. nothing to do with server metadata).