-
Notifications
You must be signed in to change notification settings - Fork 313
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
feat: added pid filtering searchbox and selection counter in snapshot download popup #5627
Merged
MMaiero
merged 12 commits into
eclipse-kura:develop
from
sfiorani:partial-snapshot-searchbox
Jan 7, 2025
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
241091a
feat: added pid filtering searchbox in snapshot download popup
sfiorani a4afc89
Update SnapshotDownloadModal.ui.xml
sfiorani c4c77fe
Merge branch 'develop' into partial-snapshot-searchbox
sfiorani d026a81
feat: refactored anchor, added selected pid counter
sfiorani 0e3694d
Merge branch 'develop' into partial-snapshot-searchbox
sfiorani 88e0e14
Trigger Build
sfiorani 147880f
fix: fixed wrong visible and selected check method
sfiorani 8a92dd8
feat: updated copyright and messages
sfiorani 7199e95
feat: updated copyrights to 2025
sfiorani c1eabf3
Update kura/org.eclipse.kura.web2/src/main/java/org/eclipse/kura/web/…
sfiorani 19263c5
feat: reordered util method
sfiorani 75b1252
Trigger Build
sfiorani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
.../src/main/java/org/eclipse/kura/web/client/ui/settings/PartialSnapshotCheckboxStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2025 Eurotech and/or its affiliates and others | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Eurotech | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.kura.web.client.ui.settings; | ||
|
||
public enum PartialSnapshotCheckboxStatus { | ||
|
||
ALL_VISIBLE_ALL_SELECTED, | ||
ALL_VISIBLE_PARTIAL_SELECTED, | ||
PARTIAL_VISIBLE_ALL_SELECTED, | ||
PARTIAL_VISIBLE_PARTIAL_SELECTED; | ||
|
||
public static PartialSnapshotCheckboxStatus fromVisibleAndSelectedStatus(boolean allVisible, boolean allSelected) { | ||
if (allVisible) { | ||
if (allSelected) { | ||
return PartialSnapshotCheckboxStatus.ALL_VISIBLE_ALL_SELECTED; | ||
} else { | ||
return PartialSnapshotCheckboxStatus.ALL_VISIBLE_PARTIAL_SELECTED; | ||
} | ||
} else { | ||
if (allSelected) { | ||
return PartialSnapshotCheckboxStatus.PARTIAL_VISIBLE_ALL_SELECTED; | ||
} else { | ||
return PartialSnapshotCheckboxStatus.PARTIAL_VISIBLE_PARTIAL_SELECTED; | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add copyright header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can already put 2025 at this point.