Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new filters for nps trends #28759

Open
wants to merge 3 commits into
base: fix/nps-trend-chart-on-surveys
Choose a base branch
from

Conversation

lucasheriques
Copy link
Contributor

@lucasheriques lucasheriques commented Feb 14, 2025

Problem

More visualisation feedback: this nps visualisation for me personally is a massive waste of space, what is this supposed to tell me? We probably need better automatic grouping by week & month depending on the timeframe of responses, like product analytics do automatic grouping in insights

NPS Trends lacks personality, and sometimes it's just an huge waste of space

Changes

see before vs after

adds specific filters options for NPS charts:

  • date range
  • grouped by interval
  • comparion between periods

Does this work well for both Cloud and self-hosted?

N/A

Tests

Smoke tests locally

Unit tests for new logic

Checked if all tests are still running

@lucasheriques lucasheriques requested a review from a team February 14, 2025 23:57
@lucasheriques lucasheriques self-assigned this Feb 14, 2025
Copy link
Contributor

github-actions bot commented Feb 15, 2025

Size Change: 0 B

Total Size: 1.21 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.21 MB

compressed-size-action

@lucasheriques lucasheriques marked this pull request as ready for review February 15, 2025 05:40
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here: app.greptile.com/review/github.

3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +659 to +662
date_from: dayjs(values.survey.created_at).format('YYYY-MM-DD'),
date_to: values.survey.end_date
? dayjs(values.survey.end_date).format('YYYY-MM-DD')
: dayjs().add(1, 'day').format('YYYY-MM-DD'),
Copy link
Member

@marandaneto marandaneto Feb 15, 2025

Choose a reason for hiding this comment

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

i think we cna use a const here for YYYY-MM-DD and reuse within the whole page

Copy link
Member

@marandaneto marandaneto left a comment

Choose a reason for hiding this comment

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

left a few comments otherwise LGTM, much better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants