-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timestamp filtering to workflow instance list
A new TimestampFilterModel class was added and integrated into the WorkflowInstanceList component for enhanced data filtering based on timestamps. The UI was also adjusted to accommodate these changes, allowing users to select and apply timestamp filters. Modifications were also made to maintain privacy by changing a few collection properties from public to private.
- Loading branch information
1 parent
9348321
commit 59c68e4
Showing
5 changed files
with
327 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/modules/Elsa.Studio.Workflows/Components/WorkflowInstanceList/Models/TimestampFilter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Elsa.Api.Client.Shared.Enums; | ||
using JetBrains.Annotations; | ||
|
||
namespace Elsa.Studio.Workflows.Components.WorkflowInstanceList.Models; | ||
|
||
/// <summary> | ||
/// Represents a timestamp filter used for filtering data based on a specified timestamp column and operator. | ||
/// </summary> | ||
public class TimestampFilterModel | ||
{ | ||
/// <summary> | ||
/// Gets or sets the column to filter by. | ||
/// </summary> | ||
public string Column { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// Gets or sets the operator to use for filtering. | ||
/// </summary> | ||
public TimestampFilterOperator Operator { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the date to filter by. | ||
/// </summary> | ||
public string Date { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the time to filter by. | ||
/// </summary> | ||
public string Time { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.