Flomp / wanderer

wanderer is a self-hosted trail database. Save your adventures!
GNU Affero General Public License v3.0
1.16k stars 28 forks source link

[Feature] Add a user stats screen #99

Open Fmstrat opened 3 months ago

Fmstrat commented 3 months ago

It would be great to be able to view user statistics. For instance, a profile page at /users/myuser that contains the below stats, calculated off the completion and the GPX file used for the route.

This should be filterable by activity type (hiking/biking/etc), and segmented by time frame (year/month/custom).

It would need to filter out activities that don't have GPX data for time/etc. That could be displayed with a (23 of 25 activities displayed/etc)

Fmstrat commented 3 months ago

As a note, I recognize Wanderer has taken on more of a social vibe than a tracking vibe, so currently the GPX is not associated with the "completion" but with the "trail".

It may be worth considering separating the two. I.E. allow for a GPX upload for each completion in the Summit Book. This way each user can track their own independent traversal.

Flomp commented 2 months ago

Sorry for the late reply.

I had a bit of a think about this as I want this to be part of a major update. Right now I like the idea of transitioning the summit book to more of an activity log and allowing to attach GPX files to an entry.

Once that is implemented I'd like to create a dashboard where the user can see the stats of their activity logs in different widgets like you mentioned. I'm currently still a bit unsure if I want the trails themselves to be part of the stats or just the data from the activity log. So any input is welcome.

Fmstrat commented 2 months ago

Personally, I think the following setup would be the most ideal: