Skip to content
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: redesign app #491

Merged
merged 2 commits into from
Feb 24, 2023
Merged

feat: redesign app #491

merged 2 commits into from
Feb 24, 2023

Conversation

schmanu
Copy link
Collaborator

@schmanu schmanu commented Feb 23, 2023

Update safe-react-components and use the new theme to redesign the app.
This requires an update of MUI to v5 and removes styled-components.
All wrapped MUI components were removed meaning that we have to use the native MUI components across the app.

Further Improvements:

  • Uses dark mode if OS of user is set to dark appearance
  • Improves design / flow of the app
  • fixes an issue with multiple nfts from the safe collection all showing the same image.

Update safe-react-components and use the new theme to redesign the app.
This requires an update of MUI to v5 and removes styled-components.
All wrapped MUI components were removed meaning that we have to use the native MUI components across the app.

Improvements:
- Uses dark mode if OS of user is set to dark appearance
- Improves design / flow of the app
@schmanu schmanu requested a review from bh2smith February 23, 2023 20:54
@schmanu schmanu changed the base branch from master to audit-fix February 23, 2023 20:57
@schmanu schmanu changed the base branch from audit-fix to master February 23, 2023 20:57
Copy link
Owner

@bh2smith bh2smith left a comment

Choose a reason for hiding this comment

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

Looks like mostly imports dependencies and style boxes. No need to hold this back! Seems we lost the app tile text and have introduced dark mode (a key ingredient). Love it and nice stuff here 🖤😎

Comment on lines +30 to +33
"@safe-global/safe-apps-provider": "^0.16.0",
"@safe-global/safe-apps-react-sdk": "^4.6.4",
"@safe-global/safe-apps-sdk": "^7.10.0",
"@safe-global/safe-react-components": "2.0.3",
Copy link
Owner

Choose a reason for hiding this comment

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

Nice!

Comment on lines +12 to +13
const isDarkMode = useDarkMode();
const themeMode = isDarkMode ? "dark" : "light";
Copy link
Owner

Choose a reason for hiding this comment

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

🖤

<SafeProvider
loader={
<>
<Typography>Waiting for Safe...</Typography>
Copy link
Owner

Choose a reason for hiding this comment

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

I am surprised that we need to put this ourselves. Seems like it should just be the default.

Comment on lines -21 to -22
Send arbitrarily many distinct tokens, to arbitrarily many distinct accounts with various different values from
a CSV file in a single transaction.
Copy link
Owner

Choose a reason for hiding this comment

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

Does this mean the app no longer had a short description in the App Store tile?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No the description in the AppStore is in our manifest file

@@ -22,6 +39,7 @@ export const DonateDialog = ({
const { safe } = useSafeAppsSDK();
const dispatch = useAppDispatch();
const csvContent = useCsvContent();
const darkMode = useDarkMode();
Copy link
Owner

Choose a reason for hiding this comment

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

🖤🤘🏾😈🏴‍☠️

@@ -14,10 +20,22 @@ export const Summary = (props: SummaryProps): JSX.Element => {
const { assetTransfers, collectibleTransfers } = props;
const assetTxCount = assetTransfers.length;
const collectibleTxCount = collectibleTransfers.length;
const darkMode = useDarkMode();
Copy link
Owner

Choose a reason for hiding this comment

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

🖤💯👌

@schmanu schmanu merged commit 33f14af into master Feb 24, 2023
@schmanu schmanu deleted the redesign branch February 24, 2023 11:13
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.

2 participants