-
Notifications
You must be signed in to change notification settings - Fork 133
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: add updated error UI + custom error rendering #705
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM had one nit
* | ||
* @returns the current Error object | ||
*/ | ||
export function useError(): UseErrorResult { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe useAuthError
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🫡🫡 good call
* feat: add error boundary by id * fix: remove unused classnames * feat: use error from hook * fix: remove unused variables * fix: remove console log * fix: add new colors to test * feat: rename to useAuthError
* docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: adds streamlined quick start * docs: drops the file extension on local quick start links * docs: fix relative routes across quick start * feat: run store hydration on window focus (#695) * run store hydration on window focus * remove logs * feat: update button colors (#696) * feat: update button colors * fix: update test * fix: plugins were missing mainnet config (#692) * fix: account hydration was missing state (#693) * chore: enable version syncing when publishing (#694) * chore(release): publish v3.18.0 [skip-ci] * fix: fix paymaster override for multisig plugin (#676) * fix: allow nonzero paymaster override * refactor: update to use Hex type for paymasterAndData/paymasterData override * fix: add checks for paymasterData and paymaster field nonzero overrides * fix: add paymaster address override type * feat: gas manager only bypasses paymaster middleware when the UserOp paying for its own gas * fix: add signatures and overrides to fix 3/3 msig test and add paymaster test * chore: rename button "type" to "variant" (#699) * feat: switch type => variant and use type submit * fix: add custom focus state * fix: update the version of the store so that we don't have clashes (#703) * chore(release): publish v3.18.1 [skip-ci] * chore(release): publish v3.18.2 [skip-ci] * feat: add updated error UI + custom error rendering (#705) * feat: add error boundary by id * fix: remove unused classnames * feat: use error from hook * fix: remove unused variables * fix: remove console log * fix: add new colors to test * feat: rename to useAuthError * docs: add vercel json (#700) * docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: add vercel json * docs: add build script * docs: add rewrites for .html` * docs: try cleanUrls * docs: remove rewrites --------- Co-authored-by: moldy <michael.moldoveanu@alchemy.com> * chore: remove the docs publishing github action * docs: run locally meets dashboard quickstart * chore: update the gh actions to checkout submodules * chore: add embedded accounts submodule --------- Co-authored-by: moldy <michael.moldoveanu@alchemy.com> Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com> Co-authored-by: Alchemy Bot <alchemy-bot@alchemy.com> Co-authored-by: Zer0dot <zer0dot.dev@gmail.com> Co-authored-by: Cody McCabe <cmccabe524@gmail.com>
* docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: adds streamlined quick start * docs: drops the file extension on local quick start links * docs: fix relative routes across quick start * feat: run store hydration on window focus (#695) * run store hydration on window focus * remove logs * feat: update button colors (#696) * feat: update button colors * fix: update test * fix: plugins were missing mainnet config (#692) * fix: account hydration was missing state (#693) * chore: enable version syncing when publishing (#694) * chore(release): publish v3.18.0 [skip-ci] * fix: fix paymaster override for multisig plugin (#676) * fix: allow nonzero paymaster override * refactor: update to use Hex type for paymasterAndData/paymasterData override * fix: add checks for paymasterData and paymaster field nonzero overrides * fix: add paymaster address override type * feat: gas manager only bypasses paymaster middleware when the UserOp paying for its own gas * fix: add signatures and overrides to fix 3/3 msig test and add paymaster test * chore: rename button "type" to "variant" (#699) * feat: switch type => variant and use type submit * fix: add custom focus state * fix: update the version of the store so that we don't have clashes (#703) * chore(release): publish v3.18.1 [skip-ci] * chore(release): publish v3.18.2 [skip-ci] * feat: add updated error UI + custom error rendering (#705) * feat: add error boundary by id * fix: remove unused classnames * feat: use error from hook * fix: remove unused variables * fix: remove console log * fix: add new colors to test * feat: rename to useAuthError * docs: add vercel json (#700) * docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: add vercel json * docs: add build script * docs: add rewrites for .html` * docs: try cleanUrls * docs: remove rewrites --------- Co-authored-by: moldy <michael.moldoveanu@alchemy.com> * chore: remove the docs publishing github action * docs: run locally meets dashboard quickstart * chore: update the gh actions to checkout submodules * chore: add embedded accounts submodule --------- Co-authored-by: moldy <michael.moldoveanu@alchemy.com> Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com> Co-authored-by: Alchemy Bot <alchemy-bot@alchemy.com> Co-authored-by: Zer0dot <zer0dot.dev@gmail.com> Co-authored-by: Cody McCabe <cmccabe524@gmail.com>
* docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: adds streamlined quick start * docs: drops the file extension on local quick start links * docs: fix relative routes across quick start * feat: run store hydration on window focus (#695) * run store hydration on window focus * remove logs * feat: update button colors (#696) * feat: update button colors * fix: update test * fix: plugins were missing mainnet config (#692) * fix: account hydration was missing state (#693) * chore: enable version syncing when publishing (#694) * chore(release): publish v3.18.0 [skip-ci] * fix: fix paymaster override for multisig plugin (#676) * fix: allow nonzero paymaster override * refactor: update to use Hex type for paymasterAndData/paymasterData override * fix: add checks for paymasterData and paymaster field nonzero overrides * fix: add paymaster address override type * feat: gas manager only bypasses paymaster middleware when the UserOp paying for its own gas * fix: add signatures and overrides to fix 3/3 msig test and add paymaster test * chore: rename button "type" to "variant" (#699) * feat: switch type => variant and use type submit * fix: add custom focus state * fix: update the version of the store so that we don't have clashes (#703) * chore(release): publish v3.18.1 [skip-ci] * chore(release): publish v3.18.2 [skip-ci] * feat: add updated error UI + custom error rendering (#705) * feat: add error boundary by id * fix: remove unused classnames * feat: use error from hook * fix: remove unused variables * fix: remove console log * fix: add new colors to test * feat: rename to useAuthError * docs: add vercel json (#700) * docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: add vercel json * docs: add build script * docs: add rewrites for .html` * docs: try cleanUrls * docs: remove rewrites --------- Co-authored-by: moldy <michael.moldoveanu@alchemy.com> * chore: remove the docs publishing github action * docs: run locally meets dashboard quickstart * chore: update the gh actions to checkout submodules * chore: add embedded accounts submodule --------- Co-authored-by: moldy <michael.moldoveanu@alchemy.com> Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com> Co-authored-by: Alchemy Bot <alchemy-bot@alchemy.com> Co-authored-by: Zer0dot <zer0dot.dev@gmail.com> Co-authored-by: Cody McCabe <cmccabe524@gmail.com>
* docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: add vercel json (#700) * docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: add vercel json * docs: add build script * docs: add rewrites for .html` * docs: try cleanUrls * docs: remove rewrites --------- Co-authored-by: moldy <michael.moldoveanu@alchemy.com> * chore: remove the docs publishing github action * docs: adds streamlined quick start (#697) * docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: adds streamlined quick start * docs: drops the file extension on local quick start links * docs: fix relative routes across quick start * feat: run store hydration on window focus (#695) * run store hydration on window focus * remove logs * feat: update button colors (#696) * feat: update button colors * fix: update test * fix: plugins were missing mainnet config (#692) * fix: account hydration was missing state (#693) * chore: enable version syncing when publishing (#694) * chore(release): publish v3.18.0 [skip-ci] * fix: fix paymaster override for multisig plugin (#676) * fix: allow nonzero paymaster override * refactor: update to use Hex type for paymasterAndData/paymasterData override * fix: add checks for paymasterData and paymaster field nonzero overrides * fix: add paymaster address override type * feat: gas manager only bypasses paymaster middleware when the UserOp paying for its own gas * fix: add signatures and overrides to fix 3/3 msig test and add paymaster test * chore: rename button "type" to "variant" (#699) * feat: switch type => variant and use type submit * fix: add custom focus state * fix: update the version of the store so that we don't have clashes (#703) * chore(release): publish v3.18.1 [skip-ci] * chore(release): publish v3.18.2 [skip-ci] * feat: add updated error UI + custom error rendering (#705) * feat: add error boundary by id * fix: remove unused classnames * feat: use error from hook * fix: remove unused variables * fix: remove console log * fix: add new colors to test * feat: rename to useAuthError * docs: add vercel json (#700) * docs: revert revert to use vocs for docs * docs: address some of the broken things on the site (#689) * docs: update the logos for AK * docs: add vercel json * docs: add build script * docs: add rewrites for .html` * docs: try cleanUrls * docs: remove rewrites --------- Co-authored-by: moldy <michael.moldoveanu@alchemy.com> * chore: remove the docs publishing github action * docs: run locally meets dashboard quickstart * chore: update the gh actions to checkout submodules * chore: add embedded accounts submodule --------- Co-authored-by: moldy <michael.moldoveanu@alchemy.com> Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com> Co-authored-by: Alchemy Bot <alchemy-bot@alchemy.com> Co-authored-by: Zer0dot <zer0dot.dev@gmail.com> Co-authored-by: Cody McCabe <cmccabe524@gmail.com> --------- Co-authored-by: Cody McCabe <cmccabe524@gmail.com> Co-authored-by: Dan Nolan <dan.nolan@alchemy.com> Co-authored-by: Tina <59578595+tinaszheng@users.noreply.github.com> Co-authored-by: Alchemy Bot <alchemy-bot@alchemy.com> Co-authored-by: Zer0dot <zer0dot.dev@gmail.com>
This PR updates the error rendering to the new design where it's above the card + also adds an external hook,
useError
, that allows consumers to customize their own error handling logic.Pull Request Checklist
yarn test
)site
folder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change
)yarn lint:check
) and fix any issues? (yarn lint:write
)PR-Codex overview
The focus of this PR is to enhance the authentication and error handling experience in the Alchemy application.
Detailed summary
Notification
component for displaying different types of notifications.