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

Move action-list from icingadb-web #225

Draft
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

sukhwinder33445
Copy link
Contributor

@sukhwinder33445 sukhwinder33445 commented Jun 26, 2024

@sukhwinder33445 sukhwinder33445 self-assigned this Jun 26, 2024
@cla-bot cla-bot bot added the cla/signed label Jun 26, 2024
@sukhwinder33445 sukhwinder33445 marked this pull request as draft June 26, 2024 07:20
@sukhwinder33445 sukhwinder33445 force-pushed the move-general-js-files-from-icingadb-web branch from cf14f74 to 91b77ee Compare June 26, 2024 07:28
@sukhwinder33445 sukhwinder33445 force-pushed the move-general-js-files-from-icingadb-web branch 2 times, most recently from 93f9582 to c1351b0 Compare July 4, 2024 12:27
@sukhwinder33445 sukhwinder33445 force-pushed the move-general-js-files-from-icingadb-web branch 2 times, most recently from e44e96d to ba3efcc Compare July 19, 2024 09:52
@sukhwinder33445 sukhwinder33445 force-pushed the move-general-js-files-from-icingadb-web branch 3 times, most recently from 5d8e9b2 to a8d4219 Compare July 29, 2024 14:32
@sukhwinder33445
Copy link
Contributor Author

sukhwinder33445 commented Jul 29, 2024

Note to myself:

  • Dashboard: Click on an element in list 1, and before it can be loaded, click on an element in list 2 (list 1’s req is cancelled). You will see that list 2 displays the detailed view, but the element in list 1 is still marked as selected.
  • Generalize the data attributes and Icinga dependencies.
  • Key navigation is not required for the dashboard, add a method like disableKeyNavigation(bool).

@sukhwinder33445 sukhwinder33445 force-pushed the move-general-js-files-from-icingadb-web branch 2 times, most recently from ab15275 to 41d14cf Compare July 30, 2024 14:21
Remove icinga dependency
…riables

Remove/decouple icinga(behavior) based code

Remove/decouple icinga-based code
it somehow became irrelevant, but must have been important before. But now that we don't want any icingaweb-specific code here, it has to be removed anyway.

it become somehow inrelevent, must be relevant before. But now as we dont want any icingaweb specific code here it must be removed anyway.
Dont explicitely check for .page-seperator to skip element, skip until an selectable one found or list ends
seems unnecessory, deactivating and activating the same element again and again
use this.list instead of getting list from dom
Otherwise, there are several listners that react to the keydown event.
* `load-selection` is renamed to `selection-start`

- `selection-start` is triggered only once, when a new selection starts
- `selection-end` is triggered, when user stop selecting

Remove superfluos params of trigger method
This way we avoid adding it to every module that should support actionList functionality.
If the list already contains active items, keypress should navigate to this this.
Remove superfluous sufix `List` from properties
For example, the elements of icingadb/hostgroup are `display:contents`, which leads to scrollIntoView() having no effect.
@sukhwinder33445 sukhwinder33445 force-pushed the move-general-js-files-from-icingadb-web branch from 693c554 to 86196fa Compare August 5, 2024 14:35
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.

1 participant