enhancement(cases):Add "Show All Descendants" View for Repository Folders#176
Merged
therealbrad merged 2 commits intomainfrom Apr 2, 2026
Merged
enhancement(cases):Add "Show All Descendants" View for Repository Folders#176therealbrad merged 2 commits intomainfrom
therealbrad merged 2 commits intomainfrom
Conversation
…ring - Introduced new props to the Cases component for managing descendant folder IDs and a toggle for showing all descendants. - Updated filtering logic to include cases from descendant folders when the toggle is active. - Enhanced folder path mapping to display full paths for cases in descendant mode. - Added localization support for the "show descendants" feature in English, Spanish, and French.
…ase view - Added a toggle to the test case list for displaying cases from selected folders and their nested subfolders. - Updated the UI to show a folder badge and tooltip for cases from descendant folders. - Enhanced unit and end-to-end tests to verify the functionality of the new toggle and its impact on case visibility.
Contributor
Author
|
🎉 This PR is included in version 0.20.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a "Show all descendants" toggle to the test case repository folder view. When a folder is selected and the toggle is enabled, the test case list displays cases from the selected folder and all nested subfolders in a single, unified list. Each case row shows a folder badge indicating which subfolder it belongs to, with a tooltip displaying the full folder path.
Key implementation details:
FolderDownicon, placed on the breadcrumb row (right-justified). Usesbg-primary/text-primary-foregroundstyling when active.{ folderId: { equals: id } }to{ folderId: { in: [...descendantIds] } }when the toggle is active.Map<folderId, path>from the folder hierarchy for tooltip display (e.g., "Parent › Child › Grandchild").Related Issue
Closes #167
Type of Change
How Has This Been Tested?
Describe the tests you ran to verify your changes:
Test Configuration:
Checklist
Additional Notes
useFindManyRepositoryFoldersquery. This PR provides paths via afolderPathMapcomputed from the parent's folder hierarchy, avoiding any additional queries.