Skip to content

Conversation

@apurv-1
Copy link
Contributor

@apurv-1 apurv-1 commented Nov 18, 2023

Description

Adds the support to navigate through CloudStack Management UI with Keyboard.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI

Feature/Enhancement Scale

  • Major
  • Minor

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@apurv-1
Copy link
Contributor Author

apurv-1 commented Nov 18, 2023

@borisstoyanov can we show the list of keyboard shortkeys in a different way? for eg: github (shift+?)

Screenshot 2023-11-18 at 6 52 29 PM

cc: @rohityadavcloud

@apurv-1 apurv-1 mentioned this pull request Nov 18, 2023
5 tasks
@borisstoyanov
Copy link
Contributor

nice, great to see you back on this @apurv-1! The list you suggest seems good, let me know if you need any help/testing

@codecov
Copy link

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0bc7fb5) 30.75% compared to head (4082d43) 31.22%.

❗ Current head 4082d43 differs from pull request most recent head b0ecf89. Consider uploading reports for the commit b0ecf89 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8250      +/-   ##
============================================
+ Coverage     30.75%   31.22%   +0.47%     
+ Complexity    33910    31081    -2829     
============================================
  Files          5341     4839     -502     
  Lines        374759   338361   -36398     
  Branches      54510    48669    -5841     
============================================
- Hits         115248   105657    -9591     
+ Misses       244276   218202   -26074     
+ Partials      15235    14502     -733     
Flag Coverage Δ
simulator-marvin-tests 25.15% <ø> (+0.50%) ⬆️
uitests ?
unit-tests 14.81% <ø> (-1.63%) ⬇️

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.

@vishesh92
Copy link
Member

@blueorangutan ui

@blueorangutan
Copy link

@vishesh92 a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/8250 (QA-JID-228)

@rohityadavcloud
Copy link
Member

Excellent, thanks for raising this @apurv-1

@DaanHoogland
Copy link
Contributor

@apurv-1 I know I have asked this and you replied but I can not find the dialog above so;

Will you add the other shortcuts from the old PR as well?

@apurv-1
Copy link
Contributor Author

apurv-1 commented Nov 27, 2023

@apurv-1 I know I have asked this and you replied but I can not find the dialog above so;

Will you add the other shortcuts from the old PR as well?

Yeah, I am planning to add older shortcuts and but to display shortcuts, I am inclining the way github shows it i.e by opening a dialog. (We can discuss more on this, its just a suggestion right now)

@DaanHoogland
Copy link
Contributor

@apurv-1 I know I have asked this and you replied but I can not find the dialog above so;
Will you add the other shortcuts from the old PR as well?

Yeah, I am planning to add older shortcuts and but to display shortcuts, I am inclining the way github shows it i.e by opening a dialog. (We can discuss more on this, its just a suggestion right now)

ok, so do you want this merged as is or add to it first?

@DaanHoogland
Copy link
Contributor

@apurv-1
Copy link
Contributor Author

apurv-1 commented Nov 27, 2023

@apurv-1 I know I have asked this and you replied but I can not find the dialog above so;
Will you add the other shortcuts from the old PR as well?

Yeah, I am planning to add older shortcuts and but to display shortcuts, I am inclining the way github shows it i.e by opening a dialog. (We can discuss more on this, its just a suggestion right now)

ok, so do you want this merged as is or add to it first?

I will add the more shortcuts then add the dialog then it will be ready for merge. Sorry, for confusion will change this to draft PR 😅

@apurv-1 apurv-1 marked this pull request as draft November 27, 2023 11:18
@github-actions
Copy link

github-actions bot commented Dec 1, 2023

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@rohityadavcloud
Copy link
Member

@apurv-1 thanks for the PR (again), could you resolve the conflict? Thanks.

@apurv-1
Copy link
Contributor Author

apurv-1 commented Dec 12, 2023

@apurv-1 thanks for the PR (again), could you resolve the conflict? Thanks.

Yeah, Sure

@github-actions
Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@codecov-commenter
Copy link

codecov-commenter commented Apr 18, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.38%. Comparing base (5ea1ada) to head (9b75316).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8250      +/-   ##
============================================
+ Coverage     17.35%   18.38%   +1.03%     
+ Complexity    15186    15182       -4     
============================================
  Files          5883     5442     -441     
  Lines        524318   487502   -36816     
  Branches      63964    57228    -6736     
============================================
- Hits          90980    89628    -1352     
+ Misses       423061   387758   -35303     
+ Partials      10277    10116     -161     
Flag Coverage Δ
uitests ?
unittests 18.38% <ø> (-0.01%) ⬇️

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.

@DaanHoogland
Copy link
Contributor

@blueorangutan ui

@blueorangutan
Copy link

@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/8250 (QA-JID-315)

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm and tested in qa

@DaanHoogland DaanHoogland marked this pull request as ready for review April 18, 2024 09:02
@DaanHoogland
Copy link
Contributor

@harikrishna-patnala @shwstppr @borisstoyanov let's merge this finaly

@apurv-1
Copy link
Contributor Author

apurv-1 commented Apr 19, 2024

@DaanHoogland we can merge this and then have follow up PRs for improvements. We can start with "what are the 10 most used actions that user performs on the UI"? I can start with adding shortkeys for those actions.

@DaanHoogland
Copy link
Contributor

@DaanHoogland we can merge this and then have follow up PRs for improvements. We can start with "what are the 10 most used actions that user performs on the UI"? I can start with adding shortkeys for those actions.

Agree, @apurv-1 . I think this would be a good topic to start a new discussion on ;)

@vladimirpetrov
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@vladimirpetrov a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@apurv-1
Copy link
Contributor Author

apurv-1 commented Apr 21, 2024

@DaanHoogland we can merge this and then have follow up PRs for improvements. We can start with "what are the 10 most used actions that user performs on the UI"? I can start with adding shortkeys for those actions.

Agree, @apurv-1 . I think this would be a good topic to start a new discussion on ;)

@DaanHoogland started a discussion here :)

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9348

@DaanHoogland DaanHoogland changed the title UI: Keyboard Shortcuts UI: Keyboard Shortcut(s) Apr 25, 2024
@vladimirpetrov
Copy link
Contributor

Hi @apurv-1, I tested the feature but it seems that the 'r' shortcut doesn't work on the following pages:

  • 'Domains' page
  • 'Infrastructure' summary page
  • 'Infrastructure' - CPU sockets page
  • 'Infrastructure' - DB/Usage server page
  • 'Configuration' - Global Settings
  • 'Tools' - Import-Export Instances

@DaanHoogland
Copy link
Contributor

@vladimirpetrov , do you think that needs to be implemented before we can merge?

@vladimirpetrov
Copy link
Contributor

Well, I think we should be consistent - wherever there is a 'Refresh' button, the shortcut must work, so yes, @DaanHoogland

@github-actions
Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@DaanHoogland
Copy link
Contributor

@vladimirpetrov I do not think any more effort is going to be put into this. jfyi

@DaanHoogland
Copy link
Contributor

@vladimirpetrov (cc @apurv-1 ) I merged main. lets create a new issue from your comment #8250 and continue with this if it tests ok?

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.

8 participants