Skip to content

Add a friendly empty state to My Forms - #111

Open
wrestle-R wants to merge 2 commits into
SahinurDEV:mainfrom
wrestle-R:fix/my-forms-empty-state
Open

wrestle-R wants to merge 2 commits into
SahinurDEV:mainfrom
wrestle-R:fix/my-forms-empty-state

Conversation

@wrestle-R

@wrestle-R wrestle-R commented Nov 23, 2026 •

Copy link
Copy Markdown

Description

Show a friendly message and a "Create your first form" button on My Forms when a completed, unfiltered request confirms the user has no forms. The button opens the existing builder at /.

Empty searches retain the table's "No results." message. Cached empty results keep the friendly prompt during background refetches; placeholder results from a different query do not trigger it. Four component regression tests cover first-time users, search misses, populated forms, and cached empty-result refetches using the real query and table components with a mocked API boundary.

Related issues

Closes #101

Type of change

  • 🐛 Bug fix

Checklist

  • The server type-checks (pnpm -F @form-builder/server exec tsc --noEmit).
  • The client lints and builds (pnpm -F @form-builder/client lint && pnpm -F @form-builder/client build).
  • I formatted my code with Prettier.
  • No secrets, .env files, or debug console.logs are committed.
  • I updated documentation where relevant. No documentation changes needed.

Validation

  • Shared validation package build passed.
  • Server tests: 24 passed.
  • Client tests: 7 passed, including four new My Forms cases. The first-form test failed on the original code because the message was missing.
  • Repository formatting check passed.
  • Client lint retains seven existing warnings in untouched files.
  • Signed-in Google OAuth flow was not exercised; component tests mock the authenticated API boundary.

Luna and DeepSeek V4.1 Flash reviews completed. DeepSeek's findings led to realistic populated-data coverage and a regression test/fix for cached empty-result refetches.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 06:28
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

👷 Deploy request for frolicking-cascaron-4fab1f pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f24e985

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

Friendly empty state on My Forms

2 participants