feat: multi-select notifications with batch delete and mark as read#297
Open
deaflynx wants to merge 10 commits intothingsboard:devfrom
Open
feat: multi-select notifications with batch delete and mark as read#297deaflynx wants to merge 10 commits intothingsboard:devfrom
deaflynx wants to merge 10 commits intothingsboard:devfrom
Conversation
Show the label field as secondary italic text below the entity name in device and asset list cards. The label is only displayed when non-empty, preserving the existing layout for entities without labels. Closes thingsboard#216
The API expects comment as a JSON object {text: ...} but the mobile app
was sending raw strings, causing NoSuchMethodError on .edited/.text
access. Normalize comment field in datasource for both Map and legacy
String formats.
Comment parsing (Map/String → AlarmCommentJsonNode) is now handled in thingsboard_client's AlarmComment.fromJson, so the datasource becomes a clean pass-through again.
Use S.of(context) via NavigationHelper.getLocalizedTitle so bottom-nav and More-list entries respect the active locale instead of showing the English defaultLabel stored on NavigationItemData.
Change EntitiesBase.title and noItemsFoundText from getters returning hardcoded English to methods taking BuildContext so each module can return S.of(context).X. Applies to customers, assets, tenants, devices, device profiles, and audit logs pages. Adds missing arb keys: tenants, noCustomersFound, noAssetsFound, noTenantsFound, noDevicesFound, noAuditLogsFound.
…asset-label-in-list feat: display entity label in device and asset list cards
…ions fix: localize navigation titles and entity list pages
fix: alarm comment crash and wrong display format
…tifications Long-press a notification to enter selection mode with checkboxes. Select All loaded via app bar checkbox, then batch Delete or Mark as Read from the bottom action bar with confirmation and progress feedback.
Brings the multi-select notifications feature from CE: long-press to enter selection mode, batch delete and mark as read with confirmation dialogs, progress indicator, and cancellation support. Also adopts CE's localized navigation and more-menu titles via NavigationHelper.getLocalizedTitle. Conflict resolution: - navigation_page.dart: kept PE structure, adopted CE's localized titles - more_page.dart: kept PE's SafeArea wrapping, adopted CE's localized titles - 12 ARB files: kept PE-specific keys, appended CE's multi-select keys - Generated messages_*.dart regenerated from resolved ARBs
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This brings the multi-select feature from CE (deaflynx/flutter_thingsboard_app#241).
Test plan