Skip to content

Conversation

@xfalcox
Copy link
Member

@xfalcox xfalcox commented Oct 16, 2025

Add the following reports:

  • AI usage
  • Asssignments
  • Chat usage
  • Favourite gifs
  • Invites
  • New user interactions
  • Time of day activity

@xfalcox xfalcox changed the title moar FEATURE: Add new metrics Oct 29, 2025
@xfalcox xfalcox marked this pull request as ready for review October 29, 2025 19:13
Copy link
Contributor

@martin-brennan martin-brennan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be nice to add specs for each report too, doesn't have to be crazy but I think it will be necessary if we want to evolve this plugin into something used every year + more widely rather than just an experiment. I am trying to backfill specs for the old reports over at #21

# Shows message counts, favorite channels, DM activity, etc.
module DiscourseRewind
module Action
class ChatUsage < BaseReport
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing with this report, is that it may be pretty underwhelming depending on a site's chat_channel_retention_days setting. It defaults to 90 days, so will only be the last 3 months for public channels.

For DMs it's better chat_dm_retention_days is infinite by default, but people can set it lower.

So yeah not sure what the strategy of dealing with this would be, it just might be confusing to say this is your year of messages + favourite channels when someone might have set retention to 2 weeks.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the design from @awesomerobot can say, "Recent Chat Activity" ?

gif_usage
end

def extract_gifs_from_chat
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment about chat potentially not having much meaningful data

# Determines if they are a night owl or early bird
module DiscourseRewind
module Action
class TimeOfDayActivity < BaseReport
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe one more threshold could be fun is HIGH_NOONERS_THRESHOLD that goes from 12pm-3pm or something?

xfalcox and others added 9 commits October 30, 2025 10:08
Co-authored-by: Martin Brennan <mjrbrennan@gmail.com>
Co-authored-by: Martin Brennan <mjrbrennan@gmail.com>
Co-authored-by: Martin Brennan <mjrbrennan@gmail.com>
Co-authored-by: Martin Brennan <mjrbrennan@gmail.com>
Co-authored-by: Martin Brennan <mjrbrennan@gmail.com>
Co-authored-by: Martin Brennan <mjrbrennan@gmail.com>
@xfalcox xfalcox merged commit 93b37e4 into main Oct 30, 2025
3 of 4 checks passed
@xfalcox xfalcox deleted the and-more-metrics-and-more-metrics branch October 30, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants