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

MenuButton: send a message to the current app #651

Merged
merged 3 commits into from
Mar 19, 2019
Merged

MenuButton: send a message to the current app #651

merged 3 commits into from
Mar 19, 2019

Conversation

bpierre
Copy link
Contributor

@bpierre bpierre commented Mar 14, 2019

Two changes:

  • Send displayMenuButton (Boolean) to the current app.
  • Prevent re-mounting the children of Wrapper on resize.

@bpierre bpierre requested review from AquiGorka and sohkai March 14, 2019 19:28
@@ -45,6 +42,10 @@ class SwipeContainer extends React.Component {
initial: [xInitial],
xy: [x],
}) => {
if (!enabled) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What was your reasoning for moving this here?

Copy link
Contributor Author

@bpierre bpierre Mar 15, 2019

Choose a reason for hiding this comment

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

This is to keep the same node hierarchy: this way, Container and its children tree don’t get unmounted / remounted. It solves the issue of having the current app reloading when the viewport is resized.

Copy link
Contributor

@AquiGorka AquiGorka left a comment

Choose a reason for hiding this comment

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

👌

It also requires to be set to `true`.
Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

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

❤️

@AquiGorka
Copy link
Contributor

👌

@bpierre bpierre merged commit 694a70b into master Mar 19, 2019
@bpierre bpierre deleted the show-menu branch March 19, 2019 12:16
AquiGorka pushed a commit that referenced this pull request Mar 20, 2019
…#651)

Changes:

- Send displayMenuButton (Boolean) to the current app.
- Deprecate `menuPanel` in favor of `requestMenu: true` to display the menu panel from an app.
- Prevent re-mounting the children of Wrapper on resize.
2color added a commit that referenced this pull request Apr 3, 2019
* origin/master: (56 commits)
  Identity - Improve LocalIdentityBadge (#673)
  Menu panel footer separator (#666)
  fix(MenuPanel): avoid clickable margin above system apps toggle (#671)
  Local identities (#656)
  MenuPanel: add toggle animation to show/hide system apps (#658)
  Add github workflow for linting/building (#663)
  Permissions: added system and background app labels (#650)
  Use the same component to render every app icon (#655)
  chore: add all contributors and contributing guidelines (#649)
  Manage the menu button using messages + prevent re-mounting on resize (#651)
  Update melon (#647)
  Apps <> System apps separator (#648)
  Upgrade lint-staged (#646)
  fix: always leave Kernel as first app (#645)
  fix: avoid assigning a registry tag if app is not on a registry (#644)
  chore: upgrade @aragon/wrapper to v4.0.0-beta.1 (#639)
  DaoSettings: add bottom margin on app items (#638)
  Refactor common components (#615)
  Enforce MenuPanel’s width (#636)
  Menu panel swipe open close (#606)
  ...
2color added a commit that referenced this pull request Apr 3, 2019
* origin/master: (55 commits)
  Identity - Improve LocalIdentityBadge (#673)
  Menu panel footer separator (#666)
  fix(MenuPanel): avoid clickable margin above system apps toggle (#671)
  Local identities (#656)
  MenuPanel: add toggle animation to show/hide system apps (#658)
  Add github workflow for linting/building (#663)
  Permissions: added system and background app labels (#650)
  Use the same component to render every app icon (#655)
  chore: add all contributors and contributing guidelines (#649)
  Manage the menu button using messages + prevent re-mounting on resize (#651)
  Update melon (#647)
  Apps <> System apps separator (#648)
  Upgrade lint-staged (#646)
  fix: always leave Kernel as first app (#645)
  fix: avoid assigning a registry tag if app is not on a registry (#644)
  chore: upgrade @aragon/wrapper to v4.0.0-beta.1 (#639)
  DaoSettings: add bottom margin on app items (#638)
  Refactor common components (#615)
  Enforce MenuPanel’s width (#636)
  Menu panel swipe open close (#606)
  ...
@luisivan luisivan mentioned this pull request Apr 5, 2019
46 tasks
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.

3 participants