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

Bring back keyboard shortcuts to help modal on non-mobile #4251

Merged
merged 3 commits into from
Jun 19, 2023

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Jun 7, 2023

No description provided.

@mejo-
Copy link
Member Author

mejo- commented Jun 7, 2023

/backport to stable27

@mejo-
Copy link
Member Author

mejo- commented Jun 7, 2023

/backport to stable26

@cypress
Copy link

cypress bot commented Jun 7, 2023

1 flaky tests on run #10272 ↗︎

0 147 1 0 Flakiness 1

Details:

Bring back keyboard shortcuts to help modal on non-mobile
Project: Text Commit: 26cfdf677f
Status: Passed Duration: 10:41 💡
Started: Jun 19, 2023 6:36 PM Ended: Jun 19, 2023 6:47 PM
Flakiness  cypress/e2e/sync.spec.js • 1 flaky test

View Output Video

Test Artifacts
Sync > saves the actual file and document state Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@@ -180,7 +180,7 @@

<script>
import { NcModal, Tooltip } from '@nextcloud/vue'
import { isMobilePlatform } from './../helpers/platform.js'
Copy link
Member

Choose a reason for hiding this comment

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

Any insight why isMobilePlatform doesn't work? From looking at the code the checks in there seem more sane then the plain screen size check if isMobile

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, the problem here was that isMobilePlatform is a method, not a computed property. After changing the v-if statements to !isMobilePlatform() it worked as well. Updated the PR accordingly now.

I also went with caching the result of method isMobilePlatform() as computed property, given that it doesn't change within one browser anyway.

@mejo-
Copy link
Member Author

mejo- commented Jun 19, 2023

/compile

Cache result of method `isMobilePlatform()` as computed property, given
that it doesn't change within one browser anyway.

Signed-off-by: Jonas <[email protected]>
@mejo-
Copy link
Member Author

mejo- commented Jun 19, 2023

/compile amend

Signed-off-by: Jonas <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
@juliusknorr juliusknorr merged commit 556479e into main Jun 19, 2023
@juliusknorr juliusknorr deleted the fix/fix_help_hotkeys branch June 19, 2023 19:51
@backportbot-nextcloud
Copy link

The backport to stable27 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable27
git pull origin stable27

# Create the new backport branch
git checkout -b fix/foo-stable27

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable27

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

@backportbot-nextcloud
Copy link

The backport to stable26 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable26
git pull origin stable26

# Create the new backport branch
git checkout -b fix/foo-stable26

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123

# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable26

More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport

@mejo-
Copy link
Member Author

mejo- commented Jun 20, 2023

/backport 5149309,4dae22a6fcea13cb25ee997335fdcf5005373f42 to stable27

@mejo-
Copy link
Member Author

mejo- commented Jun 20, 2023

/backport 5149309,4dae22a6fcea13cb25ee997335fdcf5005373f42 to stable26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants