Skip to content

Conversation

@fabienfleureau
Copy link
Collaborator

@fabienfleureau fabienfleureau commented Jan 20, 2026

Summary

Issue:QOV-1444
add a page to show terraform resources

Screenshots / Recordings

image

Testing

  • Changes tested locally in the relevant Console's pages and Storybooks
  • yarn test or yarn test -u (if you need to regenerate snapshots)
  • yarn format
  • yarn lint

PR Checklist

  • I followed naming, styling, and TypeScript rules (see .cursor/rules)
  • I performed a self-review (diff inspected, dead code removed)
  • I titled the PR using Conventional Commits with a scope when possible (e.g. feat(service): add new Terraform service) - required for semantic-release
  • I only kept necessary comments, written in English (watch for useless AI comments)
  • I involved a designer to validate UI changes if I am not a designer
  • I covered new business logic with tests (unit)
  • I confirmed CI is green (Codecov red can be accepted)
  • I reviewed and executed locally any AI-assisted code

…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
@RemiBonnet
Copy link
Member

Qovery Preview

Qovery can create a Preview Environment for this PR.
To trigger its creation, please post a comment with one of the following command.

Command Blueprint environment
/qovery preview 28c47145-c8e7-4b9d-8d9e-c65c95b48425 staging
/qovery preview cc1de7de-94e5-40f8-8e45-bc8986d9dfec storybook
/qovery preview {all|UUID1,UUID2,...} To preview multiple environments

This comment has been generated from Qovery AI 🤖.
Below, a word from its wisdom :

Help yourself at 2AM by putting some metrics to help observability

- 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
@fabienfleureau fabienfleureau force-pushed the feat/QOV-1444/tf_resources_page branch from 3075564 to 0342d44 Compare January 20, 2026 17:07
…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
@fabienfleureau fabienfleureau force-pushed the feat/QOV-1444/tf_resources_page branch from 0342d44 to 066ea73 Compare January 20, 2026 17:08
@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

❌ Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.72%. Comparing base (baecd13) to head (f0dfd81).
⚠️ Report is 2 commits behind head on staging.

Files with missing lines Patch % Lines
...plication/src/lib/ui/page-general/page-general.tsx 50.00% 0 Missing and 4 partials ⚠️
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     
Flag Coverage Δ
unittests 47.72% <55.55%> (-1.42%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fabienfleureau fabienfleureau marked this pull request as ready for review January 21, 2026 14:16
import { type TerraformResource } from '@qovery/domains/service-terraform/data-access'

export function matchesSearch(resource: TerraformResource, query: string): boolean {
const lowerQuery = query.toLowerCase()
Copy link
Contributor

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

- remove unused title
- simplify error handling in query function
- fix clear search button
@fabienfleureau fabienfleureau merged commit 622c741 into staging Jan 23, 2026
9 of 10 checks passed
@fabienfleureau fabienfleureau deleted the feat/QOV-1444/tf_resources_page branch January 23, 2026 08:36
@RemiBonnet
Copy link
Member

🎉 This PR is included in version 1.270.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants