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

Mobile pages standardized (Colors/UI) #1874

Merged
merged 25 commits into from
Nov 16, 2023
Merged

Conversation

carkom
Copy link
Contributor

@carkom carkom commented Nov 8, 2023

I saw a need to make the mobile view feel a bit more unified. I made all the headers the same size/color/background and all the pages to look/feel the same. This also helps to move dark theme forward since there were plenty of hardcoded 'white' background colors.

Copy link

netlify bot commented Nov 8, 2023

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 07a008e
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/6554b5f5a6bc0b0008752b3c
😎 Deploy Preview https://deploy-preview-1874.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

github-actions bot commented Nov 8, 2023

Bundle Stats — desktop-client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
16 2.88 MB → 2.88 MB (+1.9 kB) +0.06%
Changeset
File Δ Size
src/components/accounts/MobileAccountDetails.js 📈 +3.19 kB (+41.79%) 7.63 kB → 10.81 kB
src/components/AnimatedRefresh.tsx 📈 +49 B (+7.24%) 677 B → 726 B
src/components/Titlebar.tsx 📈 +1006 B (+6.80%) 14.45 kB → 15.44 kB
src/components/transactions/MobileTransaction.js 📈 +2.06 kB (+4.26%) 48.42 kB → 50.48 kB
src/components/mobile/MobileForms.js 📈 +101 B (+3.46%) 2.85 kB → 2.95 kB
src/components/accounts/MobileAccounts.js 📈 +287 B (+3.04%) 9.21 kB → 9.49 kB
src/components/budget/MobileBudgetTable.js 📈 +1.47 kB (+2.06%) 71.16 kB → 72.63 kB
src/components/settings/index.tsx 📈 +137 B (+1.55%) 8.63 kB → 8.76 kB
src/components/mobile/MobileAmountInput.js 📈 +14 B (+0.15%) 9.35 kB → 9.36 kB
src/components/budget/MobileBudget.js 📉 -7 B (-0.05%) 13 kB → 13 kB
src/style/themes/dark.ts 📉 -10 B (-0.10%) 9.83 kB → 9.82 kB
src/components/accounts/MobileAccount.js 📉 -7 B (-0.10%) 6.78 kB → 6.77 kB
src/style/themes/light.ts 📉 -12 B (-0.12%) 9.81 kB → 9.79 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/narrow-components.chunk.js 52.15 kB → 53.17 kB (+1.02 kB) +1.96%
static/js/main.js 1.15 MB → 1.15 MB (+896 B) +0.07%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/460.chunk.js 774.35 kB 0%
static/media/Inter-italic.var.woff2 239.29 kB 0%
static/media/Inter-roman.var.woff2 221.86 kB 0%
static/js/444.chunk.js 156.11 kB 0%
static/js/wide-components.chunk.js 127.16 kB 0%
static/js/231.chunk.js 117.37 kB 0%
static/js/reports.chunk.js 35.97 kB 0%
static/js/473.chunk.js 13 kB 0%
static/js/312.chunk.js 12.92 kB 0%
static/js/resize-observer-polyfill.chunk.js 8.88 kB 0%
static/css/main.css 7.41 kB 0%
asset-manifest.json 2.07 kB 0%
index.html 1.66 kB 0%
static/media/browser-server.js 903 B 0%

Copy link
Contributor

github-actions bot commented Nov 8, 2023

Bundle Stats — loot-core

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
2 2.22 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.js 1.23 MB 0%
xfo.xfo.kcab.worker.js 1014.46 kB 0%

@Scot-Survivor
Copy link

There's been talks about why the headers and footers are the colours they are, but I do agree they should all be unified. (I am not a maintainer, just a user giving their opinion)

@youngcw
Copy link
Member

youngcw commented Nov 8, 2023

I think the budget/account page header bars should at least be purple instead of grey. The other changes are fine with me.

@carkom
Copy link
Contributor Author

carkom commented Nov 8, 2023

Thanks both.

@youngcw, I'm happy to use any color. Nice thing is that just one theme color is used for all header colors so it's an easy fix.

@joel-jeremy
Copy link
Contributor

There seem to be some UI regression aside from color changes. The fonts got bigger and the buttons in the account details page header are now more compact.

@carkom carkom changed the title Mobile Colors Standardize Mobile pages standardized Nov 9, 2023
@carkom
Copy link
Contributor Author

carkom commented Nov 9, 2023

There seem to be some UI regression aside from color changes. The fonts got bigger and the buttons in the account details page header are now more compact.

Yes, the PR message does mention that I changed "size/color/background" to make them all the same. Sorry if the title is a bit misleading, I've changed it to be more accurate. The larger font is only for 2 pages, to match other pages that were already that size. Is this an undesirable font size change? I couldn't tell if you disliked the change or if you were just pointing it out as an FYI.

I don't see the button compaction on my local, can you share SS?

@joel-jeremy
Copy link
Contributor

I just took a look at the VRT screenshots in the PR itself. I think I prefer the original font size since that will allow to show more characters before being truncated with an ellipsis. Also, if we are going to remove the padding on the mobile transaction page, I think it would make send to move the "Back" button closer to the edge to match what is in the account details page to achieve a more unified feel. But that's just my opinion.

@carkom carkom changed the title Mobile pages standardized Mobile pages standardized (Colors/UI) Nov 10, 2023
@carkom
Copy link
Contributor Author

carkom commented Nov 10, 2023

@youngcw @joel-jeremy

I've adjusted colors and fonts/buttons. Can you both have a look? Cheers!

@youngcw
Copy link
Member

youngcw commented Nov 10, 2023

This may be a good place to fix this issue. The last account on the mobile account page is missing its shadow. I only noticed it recently since usually that account is off screen. If you would rather I can make a bug report for it.

The colors look much nicer now

@carkom
Copy link
Contributor Author

carkom commented Nov 10, 2023

This may be a good place to fix this issue. The last account on the mobile account page is missing its shadow. I only noticed it recently since usually that account is off screen. If you would rather I can make a bug report for it.

I think I'd rather leave it for another PR. Can you submit an issue for it?

The colors look much nicer now

Cheers, thanks!

@carkom carkom requested a review from joel-jeremy November 10, 2023 23:24
@joel-jeremy
Copy link
Contributor

joel-jeremy commented Nov 11, 2023

Nice! Personally I like the single color on all the headers. My only comment is that the shade of purple doesn't seem to blend well when switching to dark mode, but that could be addressed on a separate PR.

Looks like the back button arrow got smaller too. I'm wondering if we could keep the same back button color as before as that seemed to have been inspired by the iOS back button design.

@carkom
Copy link
Contributor Author

carkom commented Nov 12, 2023

Nice! Personally I like the single color on all the headers. My only comment is that the shade of purple doesn't seem to blend well when switching to dark mode, but that could be addressed on a separate PR.

Looks like the back button arrow got smaller too. I'm wondering if we could keep the same back button color as before as that seemed to have been inspired by the iOS back button design.

Back button size changed

The contrast is not readable when using that blue color for text. with the current background. We'd have to choose a new (much lighter) background color. Thoughts?

Copy link
Contributor

@joel-jeremy joel-jeremy left a comment

Choose a reason for hiding this comment

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

Awesome work!

@carkom carkom merged commit e8055bb into actualbudget:master Nov 16, 2023
19 checks passed
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed 🔍 Ready for Review labels Nov 16, 2023
@carkom carkom deleted the mobileColors branch November 16, 2023 08:08
carkom added a commit that referenced this pull request Nov 16, 2023
FlorianLang06 pushed a commit to FlorianLang06/actual that referenced this pull request Mar 7, 2024
* Mobile Color Consistency

* VRT updates

* color updates

* notes

* Sync Text

* Adjust header font smaller

* color and format adjustments

* tidying header buttons

* color and button adjustments

* Header Text color

* VRT updates

* back button changes

* VRT changes

* adjust buttons

* lint fix

* darkTheme header background

* VRT updates

* VRT updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants