Skip to content

feat(web): add recoverable vault empty states - #1417

Open
Abub57 wants to merge 2 commits into
drydocs:mainfrom
Abub57:fix/issue-1376-vault-empty-state
Open

Abub57 wants to merge 2 commits into
drydocs:mainfrom
Abub57:fix/issue-1376-vault-empty-state

Conversation

@Abub57

@Abub57 Abub57 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add distinct retry and empty states to the vault list, plus a reset action for filters with no matches.
  • Preserve the existing loading state and add English/French copy.

Test plan

  • Prettier check for the changed component and test.
  • GitHub Test and E2E Tests passed on the prior head.
  • CI is rerunning after explicitly typing the ApiVault test fixture to resolve the typecheck failure.

Closes #1376

@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

@Abub57 is attempting to deploy a commit to the Collins' projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 20, 2026

Copy link
Copy Markdown

@Abub57 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@collinsezedike collinsezedike left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Abub57 the description has ## Validation and no ## Test plan, and says the component tests were not run. Run them and list the results. Lint & Typecheck fails on prettier; run prettier --write on the changed files.

onClick={() => void refetchVaults()}
className="mt-3 rounded-lg border border-gray-700 px-3 py-1.5 text-xs font-medium text-gray-300 hover:border-gray-500 transition-colors"
>
{t("vaultPanel.resetFilters")}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

vaultPanel.resetFilters only calls refetchVaults(), and the panel has no filters to reset. Label the button as a retry, or add the filter state it refers to.

@Abub57

Abub57 commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Hi @collinsezedike — added the explicit ApiVault type to the test fixture that caused the TypeScript failure. Prettier passes locally; the previous Test and E2E checks passed, and the updated head is waiting for CI to rerun typecheck. Please re-review when the checks finish.

@collinsezedike collinsezedike left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Abub57 VaultPanel has no filter state, so the vaultPanel.noMatches branch is reached when the vault list is non-empty and none matches recommendedVaultId. The message "No vaults match the current filters." is wrong for that case, and vaultPanel.resetFilters only calls refetchVaults(), so it resets nothing. Replace that state with an accurate message such as "No vault is currently recommended." plus a retry. #1376 asks for a filtered state, but the dashboard has no filter to reset, so state that in the PR description and leave the reset action out. Update the test offers a reset action when the active filter has no match to match.

The Test plan has an unchecked line about CI rerunning. CI has finished, so remove it and list only what you ran.

@Abub57
Abub57 force-pushed the fix/issue-1376-vault-empty-state branch from 0825a2a to 79d31c5 Compare November 23, 2026 10:47
@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Possible malicious code: please review before merging.

An automated security scan flagged files in this pull request that appear to contain malicious code. Code like this can run automatically when a project is opened in an editor or its dependencies are installed, so it could compromise the machine of anyone who checks out this branch.

Automated scans can be wrong, so this may be a false positive. Maintainers: please review the flagged files carefully before merging, on GitHub in your browser rather than by checking out the branch. The malicious part is often hidden far off to the right of an ordinary-looking line, so scroll sideways through each file.

@Abub57: this pull request adds or changes these files, possibly without your knowledge. Malware like this spreads by adding itself to repositories on machines it has infected, so your machine and / or GitHub account may be compromised. Please review your machine for a possible malware infection, and rotate your GitHub credentials / SSH keys as needed.

Flagged files at commit 79d31c5:

Only merge once you're confident these files are safe.

ℹ️ Posted automatically by Drips Wave. Questions? Contact support@drips.network.

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.

[Frontend] Add a vault list empty state with retry and filters

2 participants