feat: Empty list check for api responses#294
Merged
divyanshub024 merged 3 commits intoStacDev:devfrom Jun 19, 2025
Merged
Conversation
- Automatically detects empty lists in API responses - Provides user-friendly empty states instead of blank screens - Supports various API response formats (direct arrays, nested data, etc.) - Maintains backward compatibility (optional parameter) - Follows UX best practices for empty state design
Contributor
Author
|
Hi @divyanshub024, please review the suggested solution. |
Member
|
@MohamedAbd0 There are some conflicts. Can you please resolve them? |
Contributor
Author
|
@divyanshub024, conflicts were resolved, Bro. |
divyanshub024
approved these changes
Jun 19, 2025
Member
|
Thank you for your contribution @MohamedAbd0 🎉 |
lstonussi
pushed a commit
to SuaMusica/stac
that referenced
this pull request
Feb 25, 2026
* feat: Empty list check for api responses - Automatically detects empty lists in API responses - Provides user-friendly empty states instead of blank screens - Supports various API response formats (direct arrays, nested data, etc.) - Maintains backward compatibility (optional parameter) - Follows UX best practices for empty state design * fix format failed to execute
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.
Description
dynamic_viewwidget to include the newemptyTemplateparameter.Added
emptyTemplateto Properties Table: Updated the properties table to include the newemptyTemplateparameter with a clear description.Added Empty State Handling Section: Created a comprehensive example showing how to use the
emptyTemplatewith:Added Empty Template Behavior Section: Explained exactly when the empty template is triggered with:
Updated Best Practices: Enhanced the best practices section to emphasize:
Related Issues
Closes #284
Type of Change