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

Create core elements for most common use cases #3

Open
10 of 44 tasks
haotangio opened this issue Apr 22, 2023 · 0 comments
Open
10 of 44 tasks

Create core elements for most common use cases #3

haotangio opened this issue Apr 22, 2023 · 0 comments
Assignees
Milestone

Comments

@haotangio
Copy link
Collaborator

haotangio commented Apr 22, 2023

ACs

  • Loading indicator
    • Loading indicator without any data rendered
    • No loading indicator
    • Overlay loading
    • Shadow loading feature
    • Default loading indicator component from global config
    • Reload button stay or change status to indicate loading in progress
  • Reload feature
    • Reload in shadow
    • Can reload data outside of fallback component
  • Initial value
  • Error handling
    • errorFallback prop
    • Error not handled by fallback but rather by function, e.g: toarst(err.message)
    • Show current data instead of errorFallback on error
    • Error shown + shadow reload + reload button clicked => show loading indicator?
  • Layout' context and context consumer
  • "Load more" use case
  • Showing loaded data
  • Children showing all status: data, error, progress, loading status, etc.
  • Reload on changes. E.g: analytic dashboard got date range or sort option changed
    • Many cards inside having loading indicator
    • 1 single request to server
  • Static part vs dynamic part

Checklist

  • Uphill
    • What are core component?
    • How to name them?
    • Can cancel on going loading?
    • How about timeout for function?
    • Loading inside some static UI parts
    • Display animation?
    • Auto reload period?
    • Reload on implicit event trigger?
    • How about progress with percentage indicator? (1%-100% running)
    • How about ability to change the fetchFn function, will the UI get reloaded?
    • How about example with NProgress https://www.npmjs.com/package/nprogress?
    • How about using onEvent?
  • Downhill
    • Create global config provider
    • Create context provider
    • Create context hook
    • Add support for loading indicator
    • Add support for loading indicator
    • Support auto reload when something changes (e.g: filter search sort conditions, etc.)
@haotangio haotangio added this to the 1.0.0 milestone Apr 22, 2023
@haotangio haotangio self-assigned this Apr 22, 2023
@haotangio haotangio reopened this Aug 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant