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

Add global filters #425

Merged
merged 3 commits into from
Jan 19, 2023
Merged

Add global filters #425

merged 3 commits into from
Jan 19, 2023

Conversation

joanagmaia
Copy link
Contributor

Changes proposed ✍️

  • Remove backend filter to exclude teamMembers in all requests
  • Refactor widget-queries to hold all template related queries logic
  • Create report-template-filters component to handle the rendering and update logic of the filter
  • Refactor both public and template view page to handle filters and pass them to the reports
  • Add "exclude teamMembers" query filter to dashboard and custom reports
  • Add tracking events

Screenshots (front-end changes only)

Screenshot 2023-01-13 at 14 51 51
Screenshot 2023-01-13 at 14 52 07

Checklist ✅

  • Label appropriately with Feature, Enhancement, or Bug.
  • Tests are passing.
  • New backend functionality has been unit-tested.
  • Environment variables have been updated:
    • Local frontend configuration: frontend/.env.dist.local, frontend/.env.dist.composed.
    • Local backend: backend/.env.dist.local, backend/.env.dist.composed.
    • Configuration docs have been updated.
    • Team members only: update environment variables in override, staging and production env. files and trigger update config script.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.
  • All changes have been tested in a staging site.
  • All changes are working locally running crowd.dev's Docker local environment.

@joanagmaia joanagmaia added the Feature Created by Linear-GitHub Sync label Jan 13, 2023
@joanagmaia joanagmaia self-assigned this Jan 13, 2023
Copy link
Contributor

@mariobalca mariobalca left a comment

Choose a reason for hiding this comment

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

Looking really good! Amazing work here @joanagmaia
Left a minor comment, and will test try to test things locally before approving 👍

/>
</div>
</app-page-wrapper>
<!-- Custom Report -->
<div v-else class="max-w-5xl flex flex-grow mx-auto">
<app-report-grid-layout
v-model="report"
:is-public-view="true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this hardcoded on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, maybe the name itself is not the best but basically this boolean indicates that the report is being seen in the public view. Since this is the report-view-page-public.vue component this is always the public view

Should I update the prop name to something else?

Copy link
Contributor

@mariobalca mariobalca Jan 13, 2023

Choose a reason for hiding this comment

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

Makes sense!

Should I update the prop name to something else?

No need, just wanted to double-check if was intended 👍

Copy link
Contributor

@mariobalca mariobalca left a comment

Choose a reason for hiding this comment

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

Once again, great job 👏
Left a minor suggestion, but it should not be a blocker to merge

}

const onTrackFilters = () => {
window.analytics.track('Filter report', {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should differentiate here that this is a template/default report (within the event name)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do! Thanks for the suggestion

@joanagmaia joanagmaia merged commit c069225 into main Jan 19, 2023
@joanagmaia joanagmaia deleted the feature/filter-widgets branch January 19, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants