-
Notifications
You must be signed in to change notification settings - Fork 7
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
WIP: Sidepanel #138
Draft
jfschwarz
wants to merge
61
commits into
main
Choose a base branch
from
sidepanel
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
WIP: Sidepanel #138
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jfschwarz
force-pushed
the
sidepanel
branch
from
September 30, 2024 15:22
d50aeb9
to
8afefca
Compare
Deploying zodiac-pilot-connect with Cloudflare Pages
|
…ntext of the app)
* handle some esm stuff * continue with spec * inject web3 mock into page * mock accounts * make it possible to trigger events * do not use the zero address for the piloted account * add method to lock account * get event into iframe * add tailwindcss prettier plugin * render alert when account is disconnected * migrate button component to use tailwind * update formatting
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
* make it possible to reconnect an account * ensure that you can disconnect a locked account * refactor mocking
* introduce @/components and @/utils paths * fix cyclic dependencies enough for now * prep vitest conf for ts aliases
* add failing spec * adjust spec * fix spec * make opening side panel a bit more secure * do not require to type in an extension id * improve layout and make it a bit more responsive * adjust specs * moah components * extend spec * untangle logic * extract connect buttons into components * add spec and update layout for wrong chain * update styles for wallet connect * fix formatting * fix type error * ensure test types don't intersect * update path to include extension
* update styles for avatar input * update styles for mod select * add divider styles * fix mono font * make last used not truncate time stamp * make app use available space * make top level route panel look nicer
* move files * create dedicated components * more and smaller components * less prop drilling * simplify logic * more cohesion for provider logo component * update import * move wallet connect closer to its usage * create @/chains alias * use more from route, less duplicate checks * routes aren't always the same
* move avatar input and chain select * move helper into chains module * move isConnected helper to providers module * update exports/imports for useStorage * update provider exports * move connect icons * make route names more obvious * move mod select into edit route * move more components closer to the place of usage
* named exports for transactions * move components * update imports * fix tsconfig
* rename useRoute to useZodiacRoute * untangle context; rename useRoutes to useZodiacRoutes * dissolve routeHooks * rename Route type to ZodiacRoute * use named properties in zodiac routes context * rename ZodiacRouteContext to ZodiacRoutesContext * make selected route context use fewer null values * extract launch button * extract remove button * avoid route name clash in edit component * extract hook, more reuse * fix formatting * fix some layout issues * extract route component * remove unused code * centralize confirmation modal
* extract useRouteProvider * extract useRouteConnect * split out more hooks * useZodiacRoute only returns route * split up provide provider update exports * extract useConnectInjectedWalletIfNeeded from useZodiacRoute fix infinite loop * handle provider in state * export waitFor utility * add hint for Monday * destructure more * revert logic * remove console log
* wip setup unit test * offer disconnect when wallet connect account is not present * update root path in test renderer * hack in kits to account for ESM/CJS * switch to happy-dom * only mock wallet-connect * remove code * handle zero address in useZodiacModules * extend test setup * add proper input component
* extract util to get active tab * properly mock current active tab
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Try to implement a timeout (connect via different tab after timeout)(not needed, as only current tab will be used)chrome.
APIs!)urlRegex
and combine all rpc urls with ORs (|
)