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

feat(ui): Create reusable EmptyState component for empty states #5664

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

Vivvek09
Copy link
Contributor

What changes are being made and why?

Created a reusable EmptyState component for displaying consistent empty states across the UI.

This PR:

  • Creates a new EmptyState component in the components folder
  • Refactors existing empty states (dependencies, concurrency) to use this component
  • Maintains theme support (light/dark modes)
  • Ensures consistent styling and messaging across empty states

closes #5525


How the changes have been QAed?

The component has been tested with:

  1. Dependencies View:
<empty-state
    :title="$t('dependency-view.title_no_deps')"
    :description="$t('dependency-view.desc_no_deps')"
    :image="flowImage"
/>
  1. Concurrency View:
<empty-state
    :title="$t('concurrency-view.title_no_limit')"
    :description="$t('concurrency-view.desc_no_limit')"
    :image="noConcurrencyImage"
/>

Translations:

{
    "dependency-view": {
        "title_no_deps": "No dependencies are set for this Flow.",
        "desc_no_deps": "Read more about <a href=\"https://kestra.io/docs/workflow-components/dependencies\" target=\"_blank\">Flow Dependencies in our documentation."
    },
    "concurrency-view": {
        "title_no_limit": "No limits are set for this Flow.",
        "desc_no_limit": "Read more about <a href=\"https://kestra.io/docs/workflow-components/concurrency\" target=\"_blank\">Concurrency Limits in our documentation."
    }
}

The images are being imported from the assets folder.


Setup Instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To review
Development

Successfully merging this pull request may close these issues.

Unify all empty pages so that they use the same component
1 participant