Skip to content

Comments

fix: rename hook use-environment-links#2410

Merged
RemiBonnet merged 1 commit intostagingfrom
cursor/environment-links-full-name-bae5
Feb 23, 2026
Merged

fix: rename hook use-environment-links#2410
RemiBonnet merged 1 commit intostagingfrom
cursor/environment-links-full-name-bae5

Conversation

@RemiBonnet
Copy link
Member

@RemiBonnet RemiBonnet commented Feb 23, 2026

Summary

Issue: N/A

This PR renames the use-env-links hook and all its references to use-environment-links for improved clarity and consistency.

Changes:

  • Renamed libs/domains/services/feature/src/lib/hooks/use-env-links/use-env-links.ts to use-environment-links.ts.
  • Updated import paths in libs/domains/services/feature/src/lib/service-links-popover/service-links-popover.tsx.
  • Updated jest.mock and jest.requireActual paths in libs/domains/services/feature/src/lib/service-links-popover/service-links-popover.spec.tsx.
  • Updated export path in libs/domains/services/feature/src/index.ts.

Reasons / problems solved: Enhances code readability and adheres to more descriptive naming conventions.

Reviewer Instructions:

  1. Verify that use-env-links no longer exists in the codebase.
  2. Confirm that all previous references now correctly point to use-environment-links.

Screenshots / Recordings

Testing

  • Changes tested locally in the relevant Console's pages and Storybooks
  • yarn test or yarn test -u (if you need to regenerate snapshots) - AI could not run due to missing node_modules
  • 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

Open in Web Open in Cursor 


Note

Low Risk
Pure rename and reference updates; risk is limited to broken imports/exports if any downstream usage was missed.

Overview
Renames the services feature hook use-env-links to use-environment-links and updates the public barrel export accordingly.

Updates ServiceLinksPopover and its Jest tests to import/mock the hook from the new path, with no functional behavior changes beyond the rename.

Written by Cursor Bugbot for commit 15720c6. This will update automatically on new commits. Configure here.

Co-authored-by: Rémi Bonnet <bonnet.rem@gmail.com>
@cursor
Copy link

cursor bot commented Feb 23, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@RemiBonnet RemiBonnet changed the title Environment links full name fix: rename hook use-environment-links Feb 23, 2026
@RemiBonnet RemiBonnet marked this pull request as ready for review February 23, 2026 12:39
@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.72%. Comparing base (fea9cd3) to head (15720c6).
⚠️ Report is 2 commits behind head on staging.

Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #2410      +/-   ##
===========================================
+ Coverage    48.39%   48.72%   +0.33%     
===========================================
  Files          939      696     -243     
  Lines        19288    15471    -3817     
  Branches      5753     4651    -1102     
===========================================
- Hits          9335     7539    -1796     
+ Misses        8181     6513    -1668     
+ Partials      1772     1419     -353     
Flag Coverage Δ
unittests 48.72% <ø> (+0.33%) ⬆️

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.

@RemiBonnet RemiBonnet requested a review from rmnbrd February 23, 2026 13:07
@RemiBonnet RemiBonnet merged commit 9ca3e8d into staging Feb 23, 2026
11 checks passed
@RemiBonnet RemiBonnet deleted the cursor/environment-links-full-name-bae5 branch February 23, 2026 14:10
@RemiBonnet
Copy link
Member Author

🎉 This PR is included in version 1.290.2 🎉

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.

3 participants