198 Commits

Author SHA1 Message Date
Martin Brennan
a600db4d06
FIX: Rename Favorite Tags/Categories to Most Viewed Tags/Categories and isRewindActive fixes (#27)
This was confusing people last year, most people assumed it meant
the tags they used the most / categories they posted in the most.
This should clear things up.

Also removes the `isRewindActive` function in favour of
`is_rewind_active`
on the current user, since then we only have one place to check this,
and
it makes testing easier since we don't have to mock browser time.

Finally it moves the route for rewind in the UI to the new route path
format.
2025-11-07 10:20:25 +10:00
Rafael dos Santos Silva
93b37e4069
FEATURE: Add seven new metrics to Discourse Rewind reports (#26)
## Summary
Adds seven new metrics to the Discourse Rewind plugin, significantly expanding the types of insights users can get about their annual
activity. These new reports cover temporal patterns, community engagement, plugin integrations, and content analysis.

## New Reports

### 1. Time of Day Activity (`time-of-day-activity`)
- Analyzes user activity by hour in their timezone
- Determines personality type: "early bird" (6-9am), "night owl" (10pm-2am), or "balanced"
- Aggregates posts, chat messages, and page views

### 2. New User Interactions (`new-user-interactions`)
- Tracks veteran mentorship and community building behavior
- Measures likes, replies, and mentions to users who joined this year
- Shows unique new users interacted with and total engagement

### 3. Chat Usage (`chat-usage`)
- Total messages and average message length
- Top 5 favorite channels with message counts
- DM statistics (message count, unique conversations)
- Reactions received on messages

### 4. AI Usage (`ai-usage`)
- Integrates with `discourse-ai` plugin
- Total requests, tokens consumed (request/response breakdown)
- Top 5 most used features and AI models
- Success rate calculation

### 5. Favorite GIFs (`favorite-gifs`)
- Extracts GIFs from posts and chat messages
- Ranks by engagement score (usage × 10 + likes + reactions)
- Supports Giphy, Tenor, and direct GIF URLs
- Shows top 5 GIFs with usage statistics

### 6. Assignments (`assignments`)
- Integrates with `discourse-assign` plugin
- Tracks assignments received and given
- Shows completion rate and pending assignments

### 7. Invites (`invites`)
- Total invites sent and redemption rate
- Impact metrics: invitee posts, topics, and likes created
- Most active invitee identification
- Average trust level of invitees

## Technical Details
- All reports extend `BaseReport` class
- Include proper enablement checks for plugin dependencies
- Use efficient database queries with proper joins and aggregations
- Return `nil` when no relevant data exists

Co-authored-by: Martin Brennan <mjrbrennan@gmail.com>
2025-10-30 11:18:35 -03:00
dependabot[bot]
ea11f40e61
Bump rack from 3.2.2 to 3.2.3 (#24)
Bumps [rack](https://github.com/rack/rack) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.2.2...v3.2.3)

---
updated-dependencies:
- dependency-name: rack
  dependency-version: 3.2.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-11 01:04:16 +02:00
Jarek Radosz
cdf6f0d0e7
DEV: Update linting (#23) 2025-10-09 13:53:37 +01:00
Alan Guo Xiang Tan
09ac87205c
DEV: Pin version for Discourse < 3.6.0.beta1-dev (#20) 2025-08-27 12:47:41 +08:00
dependabot[bot]
ca316389b5
Bump rack from 3.1.12 to 3.1.16 (#19)
Bumps [rack](https://github.com/rack/rack) from 3.1.12 to 3.1.16.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.1.12...v3.1.16)

---
updated-dependencies:
- dependency-name: rack
  dependency-version: 3.1.16
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-21 17:52:10 +02:00
Jarek Radosz
4b621412ba
DEV: Update linting config and run gjs-codemod (#18) 2025-06-05 11:39:18 +01:00
Loïc Guitaut
139688358b
DEV: Add system spec to check core features are working fine (#16) 2025-04-09 14:26:53 +02:00
Jarek Radosz
5e2acd9c2d
DEV: Update linting (#15) 2025-03-17 11:03:35 +00:00
Joffrey JAFFEUX
ffdd50cc65
DEV: fix spec failure (#13)
Reports are only returned in december and january, so since we move into february the spec was failing.
2025-02-26 16:25:10 +01:00
dependabot[bot]
0b7de95705
Bump rack from 3.0.11 to 3.0.12 (#12)
Bumps [rack](https://github.com/rack/rack) from 3.0.11 to 3.0.12.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/commits/v3.0.12)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-13 23:32:18 +00:00
David Taylor
e090efa809
DEV: Bump dependencies and fix linting (#11) 2025-02-06 19:43:34 +01:00
David Taylor
6da3c9388d
DEV: Pin version for Discourse <3.5.0.beta1-dev (#10) 2025-02-06 17:35:01 +01:00
Jordan Vidrine
b3f205375a
UX: Text & width adjustments (#9) 2025-01-22 12:23:40 -03:00
Rafael Silva
824d4a426b
Restrict tags and categories to user visibility level 2025-01-21 12:45:57 -03:00
Joffrey JAFFEUX
6a7efb7f0c disable favorite tags for now 2025-01-20 18:49:08 +01:00
Joffrey JAFFEUX
8b1943fb9a fbff font 2025-01-20 18:24:09 +01:00
Joffrey JAFFEUX
c7a8c3d30b basic specs 2025-01-20 17:17:18 +01:00
Joffrey JAFFEUX
a59d6c7931 caching and load order 2025-01-20 16:50:51 +01:00
Joffrey JAFFEUX
141140a410 make fonts local to the project 2025-01-20 15:59:12 +01:00
Rafael dos Santos Silva
19af3cb107
Merge pull request #7 from jjaffeux/category-links
UX: Match category cards with tag cards
2025-01-15 09:45:32 -03:00
Jordan Vidrine
7cc39605f5 linting 2025-01-14 19:02:34 -06:00
Jordan Vidrine
fed8205a64 DEV: Add fake category data 2025-01-14 15:57:23 -06:00
Jordan Vidrine
d669a39a00 UX: Make card clickable link 2025-01-14 15:55:14 -06:00
Jordan Vidrine
6a55f56b91
Merge pull request #6 from jjaffeux/reading-series 2025-01-14 15:37:39 -06:00
Rafael Silva
17e30c3933
lint 2025-01-14 18:30:10 -03:00
Jordan Vidrine
ef21ee6b35 DEV: Format 2025-01-14 15:27:23 -06:00
Jordan Vidrine
b358456b65 more 2025-01-14 15:19:16 -06:00
Jordan Vidrine
472783d1c1 DEV: Add correct data to method 2025-01-14 15:17:10 -06:00
Jordan Vidrine
2bb1072d29
Merge pull request #5 from jjaffeux/long-words 2025-01-14 11:38:43 -06:00
Jordan Vidrine
ff72e3ed37 UX: Adjust styles for long words 2025-01-14 11:30:13 -06:00
Jordan Vidrine
2398ab4fe6 Merge branch 'main' of https://github.com/jjaffeux/discourse-rewind into main 2025-01-14 11:02:12 -06:00
Jordan Vidrine
951a405c4c UX: Simplify hours and minutes shown 2025-01-14 11:02:03 -06:00
Jordan Vidrine
2e8e292b01
UX: More books styling (#4)
Allows to style books as series

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2025-01-14 17:49:57 +01:00
Rafael dos Santos Silva
b045b23e04
Merge pull request #3 from jjaffeux/more-books
More books suggested by sam
2025-01-14 12:45:12 -03:00
Jordan Vidrine
444085caeb Titles 2025-01-14 09:05:45 -06:00
Jordan Vidrine
6982e76294 more book images 2025-01-14 09:04:12 -06:00
Rafael Silva
33476eafb4
More books suggested by sam 2025-01-14 11:17:55 -03:00
Jordan Vidrine
68097b3120 increase trigger for media query 2025-01-13 20:00:12 -06:00
Jordan Vidrine
0d25800241 Merge branch 'main' of https://github.com/jjaffeux/discourse-rewind into main 2025-01-13 17:30:57 -06:00
Jordan Vidrine
db3a7e67a4 fix 2025-01-13 17:30:47 -06:00
Joffrey JAFFEUX
797924b018 bottom padding on mobile 2025-01-13 23:51:05 +01:00
Rafael Silva
b6b36f9e4a
Fix reaction ordering 2025-01-13 18:56:40 -03:00
Rafael Silva
5fa624a0e7
Fix reaction counting 2025-01-13 18:38:52 -03:00
Joffrey JAFFEUX
ac95880bdb disabling cache for now 2025-01-13 22:29:42 +01:00
Joffrey JAFFEUX
566c605cca absolute image url 2025-01-13 22:17:28 +01:00
Rafael Silva
266e77dfed
Fix logo case 2025-01-13 17:25:55 -03:00
Joffrey JAFFEUX
9a566a706a Merge branch 'main' of https://github.com/jjaffeux/discourse-rewind 2025-01-13 20:54:33 +01:00
Jordan Vidrine
a42428442f more 2025-01-13 13:49:26 -06:00
Jordan Vidrine
135af147fa Merge branch 'main' of https://github.com/jjaffeux/discourse-rewind into main 2025-01-13 13:19:31 -06:00