Skip to content

chore(new-nav): remove ScrollShadowWrapper usage#2551

Merged
rmnbrd merged 1 commit intonew-navigationfrom
impr/new-nav/revert-scroll-wrapper-changes
Mar 27, 2026
Merged

chore(new-nav): remove ScrollShadowWrapper usage#2551
rmnbrd merged 1 commit intonew-navigationfrom
impr/new-nav/revert-scroll-wrapper-changes

Conversation

@rmnbrd
Copy link
Copy Markdown
Contributor

@rmnbrd rmnbrd commented Mar 27, 2026

Summary

Use a div with max-h-[300px] in TfvarsFilesPopover instead of ScrollShadowWrapper
Remove the hideSides prop and always render the top and bottom scroll shadows
in ScrollShadowWrapper

Use a div with max-h-[300px] in TfvarsFilesPopover instead of
ScrollShadowWrapper
Remove the hideSides prop and always render the top and bottom scroll
shadows
in ScrollShadowWrapper
@RemiBonnet
Copy link
Copy Markdown
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 15d69f24-9bc1-4a8d-80fe-d1bb1b2bcd00 New Navigation
/qovery preview {all|UUID1,UUID2,...} To preview multiple environments

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

Take rest sometimes

@rmnbrd rmnbrd marked this pull request as ready for review March 27, 2026 15:36
Copilot AI review requested due to automatic review settings March 27, 2026 15:36
@rmnbrd rmnbrd self-assigned this Mar 27, 2026
@rmnbrd rmnbrd added the V5 label Mar 27, 2026
@rmnbrd rmnbrd requested a review from RemiBonnet March 27, 2026 15:37
@rmnbrd rmnbrd changed the title impr(new-nav): Remove ScrollShadowWrapper usage chore(new-nav): remove ScrollShadowWrapper usage Mar 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates scrolling UI behavior by simplifying the .tfvars files popover list container and adjusting ScrollShadowWrapper so its scroll shadows are always rendered (no opt-out).

Changes:

  • Removed the hideSides prop from ScrollShadowWrapper and always render top/bottom shadow elements.
  • Replaced ScrollShadowWrapper usage in TfvarsFilesPopover with a simple div capped at max-h-[300px].

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
libs/shared/ui/src/lib/components/scroll-shadow-wrapper/scroll-shadow-wrapper.tsx Removes hideSides prop and unconditionally renders top/bottom shadow elements.
libs/domains/service-settings/feature/src/lib/terraform-variables-settings/terraform-tfvars-popover/terraform-tfvars-popover.tsx Swaps ScrollShadowWrapper for a max-height container around the reorderable tfvars file list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

</>
) : tfVarFiles.length > 0 ? (
<ScrollShadowWrapper hideSides className="max-h-[300px]">
<div className="max-h-[300px]">
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max-h-[300px] alone won’t make the list scrollable; with the default overflow: visible the items will overflow outside the popover instead of scrolling (previously handled by ScrollShadowWrapper’s overflow-y-auto). Add overflow-y-auto (and any needed padding like the prior pr-[1px]) to preserve the intended scroll behavior.

Suggested change
<div className="max-h-[300px]">
<div className="max-h-[300px] overflow-y-auto pr-[1px]">

Copilot uses AI. Check for mistakes.
Comment on lines +250 to 251
<div className="max-h-[300px]">
<Reorder.Group axis="y" values={tfVarFiles} onReorder={onReorder}>
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After replacing ScrollShadowWrapper with a div, the ScrollShadowWrapper import from @qovery/shared/ui becomes unused and will fail lint/TS checks. Remove it from the imports list.

Copilot uses AI. Check for mistakes.
@rmnbrd rmnbrd merged commit 148a56b into new-navigation Mar 27, 2026
13 of 14 checks passed
@rmnbrd rmnbrd deleted the impr/new-nav/revert-scroll-wrapper-changes branch March 27, 2026 15:44
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (new-navigation@dae43ac). Learn more about missing BASE report.

Additional details and impacted files
@@                Coverage Diff                @@
##             new-navigation    #2551   +/-   ##
=================================================
  Coverage                  ?   44.58%           
=================================================
  Files                     ?     1055           
  Lines                     ?    21375           
  Branches                  ?     6292           
=================================================
  Hits                      ?     9529           
  Misses                    ?    10123           
  Partials                  ?     1723           
Flag Coverage Δ
unittests 44.58% <100.00%> (?)

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.

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