Skip to content

Conversation

@DanielleMaywood
Copy link
Contributor

@DanielleMaywood DanielleMaywood commented Nov 20, 2025

Description

Fixes an issue where both the empty templates state and empty tasks state were shown simultaneously on the Tasks page.

Now, when there are no AI-enabled templates, only the empty templates prompt is displayed, and the tasks section (including controls and table) is hidden.

Changes

  • TasksPage.tsx: Added condition to only render tasks section when aiTemplatesQuery.data.length > 0
  • TasksPage.stories.tsx: Added EmptyTemplates story to demonstrate the correct behavior

Testing

View the new EmptyTemplates story in Storybook to verify that only the empty templates state is shown.

Closes coder/internal#1085


🤖 PR was written by Claude Sonnet 4.5 Thinking using Coder Mux and reviewed by a human 👩

Don't show the empty tasks section when there are no AI-enabled templates.
This prevents showing both empty states simultaneously.

Also add a Storybook story for the empty templates scenario.

Closes coder/internal#1085
@DanielleMaywood DanielleMaywood marked this pull request as ready for review November 20, 2025 13:20
Copy link
Contributor

@ssncferreira ssncferreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ⭐

@DanielleMaywood DanielleMaywood merged commit 83966e3 into main Nov 21, 2025
37 checks passed
@DanielleMaywood DanielleMaywood deleted the chat-mi7f8tq5 branch November 21, 2025 09:29
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty list of tasks reduntant if no templates are configured

3 participants