-
Notifications
You must be signed in to change notification settings - Fork 2
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
"Main" branch clean-up #12
Conversation
@michalsmiarowski Could you investigate it? I’ve already hit the wall, all my efforts in this matter are pointless 😩 Edit: I've prepared a patch with testing playground in case you'd like to test it:
Edit 2: |
Component tried to render without the necessary data causing error when user disconnects the wallet on Mint/Unmint page.
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.
First round of review
src/store/index.ts
Outdated
|
||
const combinedReducer = combineReducers({ | ||
account: accountSlice.reducer, | ||
modal: modalSlice.reducer, | ||
token: tokenSlice.reducer, | ||
sidebar: sidebarSlice.reducer, | ||
transaction: transactionSlice.reducer, | ||
staking: stakingSlice.reducer, | ||
eth: ethSlice.reducer, | ||
tbtc: tbtcSlice.reducer, | ||
rewards: rewardsSlice.reducer, |
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.
Non-blocking:
rewards
are not needed anymore, because they are related to staking, so let's remove that slice and all things related to that.
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.
I've made it non-blocking, because I think I can address it in a separate PR too to not distract you from the UI work and to not block this PR.
src/store/index.ts
Outdated
|
||
const combinedReducer = combineReducers({ | ||
account: accountSlice.reducer, | ||
modal: modalSlice.reducer, | ||
token: tokenSlice.reducer, | ||
sidebar: sidebarSlice.reducer, | ||
transaction: transactionSlice.reducer, | ||
staking: stakingSlice.reducer, | ||
eth: ethSlice.reducer, |
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.
Non-blocking:
I'm pretty sure eth
is also not needed here since we operate only on bitcoins in base, so we should remove that.
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.
I've made it non-blocking, because I think I can address it in a separate PR too to not distract you from the UI work and to not block this PR.
src/store/index.ts
Outdated
import { listenerMiddleware } from "./listener" | ||
import { accountSlice, registerAccountListeners } from "./account" | ||
import { accountSlice } from "./account" | ||
|
||
const combinedReducer = combineReducers({ | ||
account: accountSlice.reducer, | ||
modal: modalSlice.reducer, | ||
token: tokenSlice.reducer, |
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.
Non-blocking:
token
is needed, but we only need tbtc-v2
and all things realted to that. The rest can be removed.
Let me address it in a separate PR where I will remove useFetchTvl
hook. We shouldn't add more changes here.
Fetching ETH USD price is not needed in Base app
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.
Left some comments to look at before the merge
Updated conditions to include wallet connection. Fixed typo: `epmty` => `empty`
Adjust empty state rendering conditions.
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.
Left one more comment
Used dedicated boolean flag instead of the data itself
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 🔥
UI: Header component Ref: #2 ~Depends on: #12~ This pull request introduces: - `Logo` component: - `Header` component - `SelectWallet` component redesign Additional changes: - `Button` component theme adjustments - `Modal` component theme adjustments Note: Since this PR introduces changes widely used in the project eg. `Modal` or `Button` changes it's recommended to review it and merge primarily.
UI: PageLayout component Ref: #2 ~Depends on: #12 This pull request introduces `PageLayout` component. I decided to rewrite the component entirely. The major feature is render slots to conditionally render content in specific areas regarding to designs. Render slots are wrapped with padding container following design appearance, children is not wrapped with any container (padding) since it's appears to be variable in various views. https://github.com/threshold-network/bitcoin-on-base/assets/11503879/deccabfb-3f6e-4f2f-a07a-76a162635e1b Note: The TODO regarding Balance component (#17) isn't a blocker. It's just a placeholder value indicating to put the component there when the view is composed in separate PR.
Ref: #1
Depends on: #7 #8 #10 #11
This pull request aggregates each partial clean-up PR (mentioned above). It's introduced to reduce complexity of merge conflicts and allow continuous work without blocking while waiting for partial PRs to be merged.
Moreover it's a place for general cleanup commits that couldn't be addressed to any of the PRs.