Skip to content

Conversation

@jjroelofs
Copy link
Contributor

@jjroelofs jjroelofs commented Dec 24, 2025

Summary

Add a reusable Views filter plugin that provides select dropdown functionality for analyze submodules.

Supports three ways to populate options:

  1. options_callback - Service method callback (e.g., analyze_ai_sentiments.storage:getSentimentOptions)
  2. options_table - Database table with id/label columns
  3. Fallback - Query distinct values from the filter's field

Also includes:

  • Fix docblock parameter order in ContentInfo.php
  • Standardize submit button to "Apply filters" in analyze_google_analytics view

Test plan

  • Enable an analyze submodule that uses this filter (sentiments, security audit, or marketing audit)
  • Verify the filter renders as a select dropdown instead of text input
  • Run drush cr to rebuild caches after enabling

Closes #10

@jjroelofs jjroelofs force-pushed the feature/analyze-select-filter branch 2 times, most recently from 6b2fd55 to 168a217 Compare December 24, 2025 16:00
Add a reusable Views filter plugin that provides select dropdown
functionality for analyze submodules. Supports three option sources:
- options_callback: Service method callback
- options_table: Database table with id/label columns
- Fallback: Query distinct values from the field

Closes #10
@jjroelofs jjroelofs force-pushed the feature/analyze-select-filter branch from 168a217 to 63a5a2a Compare January 5, 2026 11:15
@jjroelofs jjroelofs merged commit 3bdba45 into 1.0.x Jan 5, 2026
2 checks passed
@jjroelofs jjroelofs deleted the feature/analyze-select-filter branch January 5, 2026 11:27
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.

Add AnalyzeSelectFilter Views plugin for dropdown filters

2 participants