Skip to content
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

feat: App layout global drawers #2596

Merged
merged 152 commits into from
Sep 27, 2024
Merged

Conversation

georgylobko
Copy link
Contributor

Description

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 99.36306% with 2 lines in your changes missing coverage. Please review.

Project coverage is 96.15%. Comparing base (1a3ef83) to head (50e9879).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...out/visual-refresh-toolbar/drawer/local-drawer.tsx 95.00% 1 Missing ⚠️
...visual-refresh-toolbar/toolbar/drawer-triggers.tsx 96.96% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2596      +/-   ##
==========================================
+ Coverage   96.10%   96.15%   +0.04%     
==========================================
  Files         754      756       +2     
  Lines       21027    21279     +252     
  Branches     7115     7220     +105     
==========================================
+ Hits        20209    20460     +251     
- Misses        764      765       +1     
  Partials       54       54              

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

…l-drawers

# Conflicts:
#	src/app-layout/__integ__/runtime-drawers.test.ts
@@ -592,7 +592,7 @@ const ClassicAppLayout = React.forwardRef(
bottomOffset={placement.insetBlockEnd}
topOffset={placement.insetBlockStart}
isMobile={isMobile}
drawers={drawers}
drawers={drawers.filter(item => !!item.trigger)}
Copy link
Member

Choose a reason for hiding this comment

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

There is still one here: #2596 (comment)

}, [disableRuntimeDrawers, onGlobalDrawersChangeStable, onLocalDrawerChangeStable]);

useEffect(() => {
const unsubscribe = awsuiPluginsInternal.appLayout.onDrawerOpened(drawerId => {
Copy link
Member

Choose a reason for hiding this comment

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

There are seem to be some issues with this effect. Try adding console.log inside onDrawerOpened and check if it is rendered too often (for example, on every navigation open/close)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just tried. Works fine

Copy link
Member

Choose a reason for hiding this comment

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

I also tried. Does not work fine :(

Copy link
Member

Choose a reason for hiding this comment

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

Reproduced offline. Declaring this a Follow up improvement

just-boris
just-boris previously approved these changes Sep 26, 2024
@georgylobko georgylobko added this pull request to the merge queue Sep 27, 2024
Merged via the queue into main with commit f824612 Sep 27, 2024
33 checks passed
@georgylobko georgylobko deleted the feat/app-layout-global-drawers branch September 27, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants