-
Notifications
You must be signed in to change notification settings - Fork 28
feat(terraform): implement terraform resource tab in terraform service overview #2317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ing and UI cleanup - Add terraform resources display feature with tree view and details panel - Group resources by type with expandable sections - Implement search functionality to filter resources by name/attributes - Auto-select first matching resource and maintain selection during search - Move terraform interfaces from shared to service-terraform domain scope for better encapsulation - Remove unused TerraformResourcesTable component and TerraformResourceKeyAttribute interface - Remove global axios interceptor workaround (fixed in qovery-typescript-axios v1.1.809) - Simplify TerraformResourcesSection to display-only (remove Apply button and deployment logic) - Update to qovery-typescript-axios v1.1.809 with proper type exports - Update page-general to display terraform resources in Overview tab - Add comprehensive test coverage for all new components
|
Qovery can create a Preview Environment for this PR.
This comment has been generated from Qovery AI 🤖.
|
- Update qovery-typescript-axios from file reference to published v1.1.810 - Use TerraformResourcesResponse directly from qovery client - Simplify transformApiResponse to work with new API format - Remove unnecessary casting and type workarounds
3075564 to
0342d44
Compare
…ctly
- Mock data should be an array, not { resources: [...] }
- useTerraformResources hook returns React Query result with data as array
- Fixes TypeError: data?.find is not a function in all terraform-resources-section tests
- All 8 terraform resource tests now pass
0342d44 to
066ea73
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## staging #2317 +/- ##
===========================================
- Coverage 49.14% 47.72% -1.42%
===========================================
Files 811 1254 +443
Lines 16526 22714 +6188
Branches 4854 6634 +1780
===========================================
+ Hits 8121 10840 +2719
- Misses 6880 9809 +2929
- Partials 1525 2065 +540
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
libs/domains/service-terraform/data-access/src/lib/domains-service-terraform-data-access.ts
Outdated
Show resolved
Hide resolved
...ervice-terraform/feature/src/lib/terraform-resources-section/terraform-resources-section.tsx
Show resolved
Hide resolved
| import { type TerraformResource } from '@qovery/domains/service-terraform/data-access' | ||
|
|
||
| export function matchesSearch(resource: TerraformResource, query: string): boolean { | ||
| const lowerQuery = query.toLowerCase() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabienfleureau A trim here and for all resources' properties could be nice
libs/domains/service-terraform/feature/src/lib/resource-tree-list/resource-tree-list.tsx
Outdated
Show resolved
Hide resolved
- remove unused title - simplify error handling in query function - fix clear search button
libs/domains/service-terraform/data-access/src/lib/domains-service-terraform-data-access.ts
Outdated
Show resolved
Hide resolved
|
🎉 This PR is included in version 1.270.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Issue:QOV-1444
add a page to show terraform resources
Screenshots / Recordings
Testing
yarn testoryarn test -u(if you need to regenerate snapshots)yarn formatyarn lintPR Checklist
.cursor/rules)feat(service): add new Terraform service) - required for semantic-release