Skip to content

feat: add events page filters #3418

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PirvuCatalin
Copy link

I didn't check the rules for contributing, but I will :/
This solves #2977

Copy link

vercel bot commented May 12, 2025

@PirvuCatalin is attempting to deploy a commit to the umami-software Team on Vercel.

A member of the Team first needs to authorize it.

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

This PR adds filtering capabilities to the events page, implementing custom event filtering functionality that was previously available before the Events redesign.

  • Added FilterTags component in /events/EventsPage.tsx to display and manage active filters with editable filter tags
  • Implemented filter parameter extraction from URL query using FILTER_COLUMNS constant in EventsPage.tsx
  • Added WebsiteFilterButton to EventsMetricsBar.tsx with conditional rendering based on showFilter prop
  • Enhanced SQL queries in getWebsiteEvents.ts to support filtering by adding filter conditions to both relational and clickhouse queries

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

import { Item, Tabs } from 'react-basics';
import { useState } from 'react';
import EventProperties from './EventProperties';
import { FILTER_COLUMNS } from '@/lib/constants';

export default function EventsPage({ websiteId }) {
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Missing TypeScript type for websiteId prop

Suggested change
export default function EventsPage({ websiteId }) {
export default function EventsPage({ websiteId }: { websiteId: string }) {

@PirvuCatalin
Copy link
Author

fyi @mikecao

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

Successfully merging this pull request may close these issues.

1 participant