Skip to content

Conversation

@aliu39
Copy link
Member

@aliu39 aliu39 commented Jul 22, 2024

Fixes #74156 so the toolbar will be totally hidden when submitting feedback / taking a screenshot.

Screen.Recording.2024-07-23.at.12.03.53.PM.mov

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 22, 2024
@codecov
Copy link

codecov bot commented Jul 22, 2024

Bundle Report

Changes will increase total bundle size by 25.36kB ⬆️

Bundle name Size Change
app-webpack-bundle-array-push 28.19MB 25.36kB ⬆️

@codecov
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Project coverage is 78.14%. Comparing base (26d86be) to head (7822bf7).
Report is 58 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #74679      +/-   ##
==========================================
- Coverage   78.15%   78.14%   -0.02%     
==========================================
  Files        6723     6733      +10     
  Lines      299958   300140     +182     
  Branches    51614    51621       +7     
==========================================
+ Hits       234437   234549     +112     
- Misses      59195    59265      +70     
  Partials     6326     6326              
Files Coverage Δ
...app/components/devtoolbar/components/providers.tsx 0.00% <ø> (ø)
...pp/components/devtoolbar/components/navigation.tsx 0.00% <0.00%> (ø)
...mponents/devtoolbar/hooks/useSDKFeedbackButton.tsx 0.00% <0.00%> (ø)
...tatic/app/components/devtoolbar/components/app.tsx 0.00% <0.00%> (ø)
...s/devtoolbar/components/feedback/feedbackPanel.tsx 0.00% <0.00%> (ø)
.../app/components/devtoolbar/hooks/useVisibility.tsx 0.00% <0.00%> (ø)

... and 54 files with indirect coverage changes

@aliu39 aliu39 requested a review from michellewzhang July 22, 2024 22:03
@michellewzhang
Copy link
Member

michellewzhang commented Jul 22, 2024

the submit feedback modal doesn't seem to show up when i try clicking +

(edit: ahh i see your slack message)

Screen.Recording.2024-07-22.at.3.22.59.PM.mov

@aliu39 aliu39 force-pushed the aliu/hide-toolbar-modal branch from 76e7d46 to 7822bf7 Compare July 23, 2024 19:08
@aliu39 aliu39 marked this pull request as ready for review July 23, 2024 19:09
@aliu39 aliu39 requested a review from a team July 23, 2024 19:09
import type {CSSProperties, Dispatch, ReactNode, SetStateAction} from 'react';
import {createContext, useContext, useState} from 'react';

type State = CSSProperties['visibility'];
Copy link
Member

Choose a reason for hiding this comment

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

nice!

@aliu39 aliu39 enabled auto-merge (squash) July 23, 2024 19:12
@aliu39 aliu39 disabled auto-merge July 23, 2024 19:12
Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

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

The devtoolbar component being named App confused me a bit -- it made me thinking you were returning null for our main App view.

@aliu39 aliu39 merged commit 4f4451e into master Jul 23, 2024
@aliu39 aliu39 deleted the aliu/hide-toolbar-modal branch July 23, 2024 19:53
@aliu39
Copy link
Member Author

aliu39 commented Jul 24, 2024

Too late to change the title now but after the above recordings, this was changed to hide the entire toolbar (incl navigation bar) when the feedback widget is open

@github-actions github-actions bot locked and limited conversation to collaborators Aug 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DevToolbar] Hide toolbar modal when taking screenshot

5 participants