Skip to content

Enhance Poll List Dashboard with Filtering and Analytics #42

@Roubean1

Description

@Roubean1

Enhance the existing poll list dashboard ( web/src/components/pollList.tsx) to provide advanced filtering capabilities and poll analytics to improve user experience and poll management.

Requirements

1. Channel-Based Filtering

  • Filter by Channel: Add a dropdown/select component to filter polls by Slack channel
  • Channel Search: Implement search functionality within the channel filter dropdown

2. People-Based Filtering

  • Add ability to filter polls by poll creator/author
  • Filter by Participants: Filter polls based on who has voted
  • User Search: Implement user search with autocomplete functionality
  • User Display: Show creator information and participant count for each poll

3. Poll Count Analytics

  • Channel Statistics: Display poll count per channel in a summary view
  • Visual Indicators: Use badges or counters to show poll quantities
  • Sortable Counts: Allow sorting channels by poll count (ascending/descending)
  • Time-based Counts: Show poll counts for different time periods (today, this week, this month)

4. Poll Status Analytics

  • Active vs Closed Counters: Display counts of active and closed polls
  • Status Indicators: Visual status badges for each poll (active/closed/draft)
  • Filter by Status: Quick filter buttons for active, closed, and all polls
  • Status Distribution: Show percentage breakdown of poll statuses

Technical Notes

  • Consider implementing debounced search for performance
  • Use React Query or SWR for efficient data fetching and caching
  • Implement proper error handling for filter operations
  • Add proper TypeScript types for all new interfaces

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions