Commit 749a172
enhance: Enhancement/more repository view filters (#49)
* fix: update date handling in forms and schemas
- Changed `startedAt` and `completedAt` fields to be nullable in MilestoneFormDialog and AddMilestoneModal.
- Updated date handling in AddCase, BulkEditModal, and various components to ensure proper nullability and optionality.
- Enhanced default value initialization for date fields in AddCaseModal and other components to handle null values correctly.
- Improved handling of date fields in ReportBuilder and DateRangePickerField to support nullable dates.
* feat: enhance filtering logic for various field types in Cases component
- Added support for filtering based on Integer, Number, Date, Text Long, and Text String field types.
- Implemented conditions to handle cases with and without values for each field type, improving data retrieval accuracy.
- Updated filterConditions logic to ensure proper handling of null and non-null values across different field types.
* feat: enhance numeric filtering capabilities in Cases and ViewSelector components
- Added support for filtering Integer and Number fields with new options for "No Value" and "Has Value".
- Implemented operator-based filtering for numeric fields, allowing comparisons such as equals, not equals, less than, and greater than.
- Updated the Cases component to handle special cases for numeric filters, improving data retrieval accuracy.
- Enhanced ViewSelector to integrate new filtering options and display counts for each filter category.
* feat: enhance NumericFilterInput with clear filter functionality
- Added a clear filter button to the NumericFilterInput component, allowing users to reset filters easily.
- Implemented display formatting for active filters using operator symbols for better user experience.
- Updated ViewSelector to integrate the new clear filter functionality, improving overall filtering capabilities.
* enhancement: improve date handling and validation across components
- Updated date field handling in AddCase, BulkEditModal, and Cases components to use undefined instead of null for empty values, ensuring better compatibility with Zod validation.
- Implemented manual validation for required date fields to address Zod v4 issues, allowing for more accurate error reporting.
- Enhanced filtering logic in ViewSelector to support operator-based filtering for date fields, improving user experience and data retrieval accuracy.
- Refactored default value initialization for date fields to ensure consistent handling across various components.
* refactor: remove console logs from DateFilterInput component
- Eliminated console log statements in the DateFilterInput component to clean up the code and improve performance.
- Ensured that the filtering logic remains intact while enhancing code readability.
* enhancement: enhance filtering capabilities in Cases and ViewSelector components
- Implemented operator-based filtering for Text Long, Text String, Link, and Steps fields, allowing users to filter based on specific conditions.
- Updated Cases component to handle new filtering logic, including post-fetch filters for text, link, and steps operators.
- Enhanced ViewSelector to integrate new filter inputs for text, link, and steps, improving user experience and data retrieval accuracy.
- Refactored filtering logic in useRepositoryCasesWithFilteredFields to support dynamic filtering based on user-selected criteria.
* enhancement: improve filtering logic in Cases and ViewSelector components
- Updated Cases component to support both numeric and string IDs for link and steps filtering, enhancing compatibility with legacy and new data formats.
- Refactored filtering logic to streamline the handling of post-fetch filters and total count calculations, improving data retrieval accuracy.
- Removed redundant code in ViewSelector related to link and steps filtering, simplifying the component structure and enhancing maintainability.
- Enhanced useRepositoryCasesWithFilteredFields to accommodate built-in steps relation, ensuring accurate filtering based on steps count.
* enhancement: integrate translation support across filter input components
- Added useTranslations hook to DateFilterInput, LinkFilterInput, NumericFilterInput, StepsFilterInput, TextFilterInput, and ViewSelector components for improved localization.
- Updated filter-related text to use translation keys, enhancing user experience for different locales.
- Enhanced validation messages and filter prompts to be translatable, ensuring consistency across the application.
* refactor: streamline data handling in Cases component and useFindManyRepositoryCasesFiltered hook
- Replaced destructuring of result in Cases component with a single variable for improved clarity.
- Updated useFindManyRepositoryCasesFiltered to ensure totalCount is safely accessed, enhancing robustness against undefined values.
- Refactored related logic to maintain consistency and improve overall code readability.
* refactor: improve type handling and exclude test-results in tsconfig
- Updated tsconfig.json to exclude test-results directory for cleaner builds.
- Enhanced type handling in MilestoneFormDialog and page.tsx to ensure proper undefined checks.
- Adjusted resolver type in AddCase to maintain compatibility with TypeScript, improving type safety.
* chore: update ioredis to 5.9.2
Updates ioredis from 5.9.1 to 5.9.2 to include bug fixes for cluster reconnection with sharded subscribers.
* chore(release): 0.10.2 [skip ci]
## [0.10.2](v0.10.1...v0.10.2) (2026-01-14)
### Bug Fixes
* add validation checks for data integrity in various charts ([8861224](8861224))
* enhance: Docs/update installation prerequesites (#47)
* docs: update Docker and manual setup documentation with detailed RAM requirements and service dependencies
- Expanded RAM requirements section in docker-setup.md to include minimum and recommended memory for building and running services.
- Added per-service memory breakdown for better resource allocation guidance.
- Updated manual-setup.md to clarify Node.js version requirements and categorize required and optional services for setup.
* docs: enhance transaction mock methods for testCaseVersionService in bulk-edit tests
- Added missing repositoryCases.findUnique() and repositoryCaseVersions.create() methods to transaction mocks for accurate test case data fetching and version creation.
- Updated all relevant bulk-edit route tests to include these new mock methods, ensuring comprehensive coverage and reliability in testing.
* chore(release): 0.10.3 [skip ci]
## [0.10.3](v0.10.2...v0.10.3) (2026-01-16)
* chore: add ioredis dependency and update cheerio version
- Added ioredis version 5.9.2 to package.json and pnpm-lock.yaml for improved Redis support.
- Updated cheerio version in pnpm-lock.yaml to ensure compatibility with the latest features.
* fix: update shared step group queries to exclude deleted groups
- Modified queries in AddResultModal, StepsForm, StepsResults, and TestResultHistory components to filter out deleted shared step groups.
- Enhanced TestCaseDetails to handle orphaned steps with a warning alert and display for steps not included in the current template.
- Added translation keys for orphaned steps warning in English, Spanish, and French.
* enhance: add warnings for unassigned templates and orphaned field values in TestCaseDetails
- Introduced a warning alert for cases where a template is not assigned to the current project, with translations added for English, Spanish, and French.
- Implemented a check for orphaned custom field values that exist outside the current template, displaying a warning and listing the orphaned fields if any are found.
* fix: clear filters when switching views in ProjectRepository and update LinkFilterInput translations
- Implemented logic to clear selected filters when changing to non-dynamic views and for specific field types in ProjectRepository.
- Updated LinkFilterInput to correct the label for the 'domain' operator.
- Revised 'noTestCases' message in English, Spanish, and French translations for clarity.
* fix: ensure proper handling of orphaned field values in TestCaseDetails
- Enhanced the warning alert for orphaned custom field values to provide clearer messaging when fields exist outside the current template.
- Updated translations for the orphaned fields warning in English, Spanish, and French for better user experience.
* fix: improve template project assignment check in TestCaseDetails
- Enhanced the conditional rendering for the warning alert related to unassigned templates, ensuring it correctly checks for the presence of projects in the template.
- Updated type assertions in integration tests for better type safety and clarity.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 721571e commit 749a172
37 files changed
Lines changed: 6675 additions & 2752 deletions
File tree
- testplanit
- app
- [locale]
- admin/milestones
- projects
- milestones/[projectId]
- repository/[projectId]
- [caseId]
- api/repository-cases/view-options
- components
- forms
- reports
- tables
- ui
- e2e
- tests/repository/Test Repository Management
- hooks
- messages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
| 243 | + | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Lines changed: 165 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
116 | 136 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
121 | 159 | | |
122 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
123 | 166 | | |
124 | 167 | | |
125 | 168 | | |
| |||
202 | 245 | | |
203 | 246 | | |
204 | 247 | | |
205 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
206 | 252 | | |
207 | 253 | | |
208 | 254 | | |
| |||
392 | 438 | | |
393 | 439 | | |
394 | 440 | | |
395 | | - | |
| 441 | + | |
| 442 | + | |
396 | 443 | | |
397 | 444 | | |
398 | 445 | | |
| |||
520 | 567 | | |
521 | 568 | | |
522 | 569 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
535 | 607 | | |
536 | 608 | | |
537 | 609 | | |
| |||
561 | 633 | | |
562 | 634 | | |
563 | 635 | | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
568 | 640 | | |
569 | 641 | | |
570 | 642 | | |
571 | 643 | | |
572 | | - | |
573 | | - | |
| 644 | + | |
574 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
575 | 652 | | |
576 | 653 | | |
577 | 654 | | |
| |||
606 | 683 | | |
607 | 684 | | |
608 | 685 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
622 | 724 | | |
623 | 725 | | |
624 | 726 | | |
| |||
632 | 734 | | |
633 | 735 | | |
634 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
635 | 756 | | |
636 | 757 | | |
637 | 758 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2160 | 2160 | | |
2161 | 2161 | | |
2162 | 2162 | | |
2163 | | - | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
2164 | 2167 | | |
2165 | 2168 | | |
2166 | 2169 | | |
| |||
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1056 | 1068 | | |
1057 | 1069 | | |
1058 | 1070 | | |
| |||
1123 | 1135 | | |
1124 | 1136 | | |
1125 | 1137 | | |
1126 | | - | |
1127 | | - | |
| 1138 | + | |
| 1139 | + | |
1128 | 1140 | | |
1129 | 1141 | | |
1130 | 1142 | | |
| |||
0 commit comments