-
Notifications
You must be signed in to change notification settings - Fork 13
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
refactor: move station activity jobs rpc into hook #332
Merged
juliangruber
merged 1 commit into
CheckerNetwork:feat/wallet
from
jopedroliveira:feat/activity-hook
Dec 16, 2022
Merged
refactor: move station activity jobs rpc into hook #332
juliangruber
merged 1 commit into
CheckerNetwork:feat/wallet
from
jopedroliveira:feat/activity-hook
Dec 16, 2022
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
joaojusto
approved these changes
Dec 12, 2022
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
juliangruber
approved these changes
Dec 16, 2022
juliangruber
added a commit
that referenced
this pull request
Feb 7, 2023
* feat: move station rpc into hook * feat: backend interface and wire up for wallet * wip: ensure compatibility * eslint * feat: wallet ui * feat: status indicator animations * wip: animations and transitions * wip: address input animations and transitions * wip: address input animations and transitions * feat: address input animations and transitions * fixup: eslint cleanup * feat: input focus on edit * wip: wallet onboarding slide * feat: move station rpc into hook (#332) * Update main/ipc.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/ipc.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/preload.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/preload.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/station-config.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update renderer/src/lib/station-config.tsx Co-authored-by: Julian Gruber <julian@juliangruber.com> * feat: backend interface and wire up for wallet * wip: ensure compatibility * eslint * Update main/ipc.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/ipc.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/preload.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/preload.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/station-config.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update renderer/src/lib/station-config.tsx Co-authored-by: Julian Gruber <julian@juliangruber.com> * fixup: remove address check on onboarding page * refactor: staturn fe component startup * fixup: lint * Update renderer/src/typings.d.ts Co-authored-by: Julian Gruber <julian@juliangruber.com> * feat: wallet ui * feat: status indicator animations * wip: animations and transitions * wip: address input animations and transitions * wip: address input animations and transitions * feat: address input animations and transitions * fixup: eslint cleanup * feat: input focus on edit * fixup: form input ref * fixup: typo and eslint * feat: wallet api - part 1/2 (#333) * feat: move station rpc into hook * feat: backend interface and wire up for wallet * wip: ensure compatibility * eslint * Update main/ipc.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/ipc.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/preload.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/preload.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/station-config.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update renderer/src/lib/station-config.tsx Co-authored-by: Julian Gruber <julian@juliangruber.com> * feat: backend interface and wire up for wallet * wip: ensure compatibility * eslint * Update main/ipc.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/ipc.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/preload.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/preload.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update main/station-config.js Co-authored-by: Julian Gruber <julian@juliangruber.com> * Update renderer/src/lib/station-config.tsx Co-authored-by: Julian Gruber <julian@juliangruber.com> * fixup: remove address check on onboarding page * refactor: staturn fe component startup * fixup: lint * Update renderer/src/typings.d.ts Co-authored-by: Julian Gruber <julian@juliangruber.com> Co-authored-by: Julian Gruber <julian@juliangruber.com> * fix: send fil button scale with text (#409) * Hide parts of destination address (#407) * feat: hide parts of destination address * feat: hide internal station address and add copy button * Fix transaction history scroll and add loading (#408) * wip: loading transaction history * refactor: revert loading * update copy * fix: history scroll when status drawer is open (#441) * Feat: wallet frontend tests and e2e (#344) * Add Wallet Backend. #388 (#373) * wallet: add getAddress() * try to fix `buffer` dependency * this seems to work * ignore typescript error * disable transfer FIL with balance 0 * improve readability * truncate FIL destination address when not editing * fix buffer problem by downgrading address module (#379) * fix buffer problem by downgrading address module Signed-off-by: Miroslav Bajtoš <oss@bajtos.net> * fixup! remove rollup-inject Signed-off-by: Miroslav Bajtoš <oss@bajtos.net> * add show real balance * add list transactions (wip: types) * abbreviate station address * fix types * add show transaction history * let frontend handle FIL rendering * remove render function (antipattern) * let frontend handle more FIL rendering * fix button text overflow * add transfer out all funds * add show in progress transaction * abbreviate address * add wait for transaction completion * move clear processing transaction to backend * refactor * fix types (wip) * first transaction worked * add update balance and transactions periodically * add loading state to transaction list * throw error, should never happen * use ellipsis character * "fix" type * debounce expensive listTransactions() * move debouncing to frontend * simplify frontend again * add store (wip) * load transactions from disk * loading transactions works again, next: send funds * progress on sending fil * only transfer a tiny amount for now * never show incoming processing transactions * wip * refactor type * docs * refactor type * refactor types * port type to renderer * refactor type * fix success/failure not being shown * clean up * refactor * fix button not changing * fix balance loading * disable transfer fil while sending * fix types / lint / typo * unify processing transaction naming * simplify * refactor * fix missing await * fix braces * fix test * update typing style * refactor `Array#filter` -> `Array#find` * use type guards * rename `sent` to `succeeded` * refactor * refactor * test `getSeedPhrase` * test and refactor more * refactor `getStateReplay` * refactor `getTipset` * cleanup * move .transactions to backend * refactor `fetchAllTransactions` * clean up * wip * Revert "use type guards" This reverts commit d85f943. * fix type fallback * refactor * adjust elements to new text sizes * refactor `#fetchAllTransactions` * use `p-map` for configuring concurrency * downgrade to `p-map@4` * fix p-map usage * simplify transaction errors into strings * debug * disable keyring in tests * refactor * disable keytar completely * disable keytar more * disable keytar during e2e tests * enable saturn again * add very simple test for `fetchAllTransactions` * increase test timeout * prevent `updateBalance` race conditions * increase test timeout again * log * refactor types * Revert "refactor types" This reverts commit c9f81c9. * docs * refactor * refactor `transferFunds` * add tests for `getTransactionsForUI` * convert renderer typings from `.d.ts` to `.ts` * add missing `onTransactionUpdate` call * add back type guards * fix transactions not updating * debug * try downgrading `keytar` * try downgrading `keytar` more * try downgrading `keytar` even more * switch back to latest `keytar` * more debug * use fork of electron-builder * bump action-electron-builder * clean up * try fixing afterSign hook * FIXME: disable build task * enable debug again * try fixing beforePack hook * switch to `npm exec` to fix builder issue * clean up * debug * unlock full transfer * enable build again --------- Signed-off-by: Miroslav Bajtoš <oss@bajtos.net> Co-authored-by: Miroslav Bajtoš <saturn@bajtos.net> --------- Signed-off-by: Miroslav Bajtoš <oss@bajtos.net> Co-authored-by: Pedro Oliveira <poliveira@subvisual.co> Co-authored-by: Pedro Oliveira <jopedroliveira@users.noreply.github.com> Co-authored-by: Miroslav Bajtoš <saturn@bajtos.net>
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.
This PR moves activity-related API calls into a dedicated hook. Also splits RPC calls into multiple
useEffect
instead of anonymous functions being called insidePromise.all