Skip to content

Add new filters into BarViz subscription page#5208

Merged
premun merged 5 commits intomainfrom
copilot/fix-5207
Aug 27, 2025
Merged

Add new filters into BarViz subscription page#5208
premun merged 5 commits intomainfrom
copilot/fix-5207

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Aug 27, 2025

This PR implements two new filtering features for the subscription page:

image

New Filter Types

Added 4 new filter keywords to help distinguish between different types of VMR codeflow subscriptions:

  • :ff and :forwardflow - filters for forward flows (source-enabled subscriptions with target directory)
  • :bf and :backflow - filters for backflows (source-enabled subscriptions with source directory)

These filters use the existing IsForwardFlow() and IsBackflow() extension methods on the Subscription class.

Partial Matching Auto-completion

Enhanced the filter system to automatically expand partial filter matches when unambiguous:

  • Typing :c automatically applies :codeflow
  • Typing :forward expands to :forwardflow
  • Typing :back expands to :backflow
  • Ambiguous cases like :f (could match :ff or :forwardflow) don't expand

Example Usage

:ff                 → Shows forward flows to VMR
:bf                 → Shows backflows from VMR  
:c                  → Auto-expands to :codeflow
:forward            → Auto-expands to :forwardflow
:back               → Auto-expands to :backflow

Fixes #5207.

Copilot AI and others added 2 commits August 27, 2025 10:17
Co-authored-by: premun <7013027+premun@users.noreply.github.com>
Co-authored-by: premun <7013027+premun@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new filters to the subscription page Add new subscription filters for forward/backflows and partial matching Aug 27, 2025
Copilot AI requested a review from premun August 27, 2025 10:23
@premun premun changed the title Add new subscription filters for forward/backflows and partial matching Add new filters into BarViz subscription page Aug 27, 2025
@premun premun marked this pull request as ready for review August 27, 2025 10:41
Copilot AI review requested due to automatic review settings August 27, 2025 10:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds new filtering capabilities to the subscription page for better differentiation between forward flow and backflow subscriptions in the Product Construction Service BarViz. The changes enable users to filter VMR codeflow subscriptions by direction and include auto-completion for partial filter matches.

  • Added 4 new filter keywords (:ff, :forwardflow, :bf, :backflow) for filtering forward flows and backflows
  • Implemented partial matching auto-completion that expands unambiguous filter prefixes
  • Enhanced the filtering system with comprehensive test coverage for the new functionality

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
test/ProductConstructionService.BarViz.Tests/SubscriptionExtensionTests.cs New comprehensive test file covering extension methods and filter functionality
test/ProductConstructionService.BarViz.Tests/RedirectsTests.cs Refactored to use static method calls instead of instance methods
src/ProductConstructionService/ProductConstructionService.BarViz/Pages/Subscriptions.razor Enhanced filtering logic with new filter types and partial matching capability

@premun premun enabled auto-merge (squash) August 27, 2025 11:00
@premun premun merged commit 5301e34 into main Aug 27, 2025
7 of 9 checks passed
@premun premun deleted the copilot/fix-5207 branch August 27, 2025 11:03
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 new filters to the subscription page

4 participants