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] Budget table revamp #2642

Merged
merged 26 commits into from
Jun 4, 2024
Merged

Conversation

joel-jeremy
Copy link
Contributor

No description provided.

@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Apr 19, 2024
@github-actions github-actions bot changed the title [Mobile] Budget table revamp [WIP] [Mobile] Budget table revamp Apr 19, 2024
Copy link

netlify bot commented Apr 19, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 4fba43f
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/665d70e45c1e0c0008526e97
😎 Deploy Preview https://deploy-preview-2642.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.

@trafico-bot trafico-bot bot added 🚧 WIP Still work-in-progress, please don't review and don't merge and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Apr 19, 2024
Copy link
Contributor

github-actions bot commented Apr 19, 2024

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
9 4.72 MB → 4.74 MB (+23 kB) +0.48%
Changeset
File Δ Size
node_modules/auto-text-size/dist/index.mjs 🆕 +8.99 kB 0 B → 8.99 kB
src/components/mobile/budget/BudgetTable.jsx 📈 +15.54 kB (+46.84%) 33.17 kB → 48.71 kB
src/components/common/Text.tsx 📈 +80 B (+33.20%) 241 B → 321 B
src/components/common/Label.tsx 📈 +88 B (+31.21%) 282 B → 370 B
src/components/modals/ReportBalanceMenuModal.tsx 📈 +95 B (+5.72%) 1.62 kB → 1.71 kB
src/components/modals/RolloverBalanceMenuModal.tsx 📈 +95 B (+5.50%) 1.69 kB → 1.78 kB
src/components/modals/ScheduledTransactionMenuModal.tsx 📈 +108 B (+4.94%) 2.14 kB → 2.24 kB
node_modules/react-dom/index.js 📈 +7 B (+1.55%) 453 B → 460 B
src/components/modals/ReportBudgetMenuModal.tsx 📈 +33 B (+1.44%) 2.23 kB → 2.26 kB
src/components/modals/RolloverBudgetMenuModal.tsx 📈 +33 B (+1.44%) 2.23 kB → 2.27 kB
src/components/budget/report/ReportComponents.tsx 📈 +132 B (+1.19%) 10.84 kB → 10.97 kB
src/components/budget/rollover/RolloverComponents.tsx 📈 +132 B (+1.04%) 12.34 kB → 12.47 kB
package.json 📈 +29 B (+1.00%) 2.85 kB → 2.87 kB
src/style/themes/dark.ts 📈 +35 B (+0.49%) 7 kB → 7.03 kB
src/style/themes/midnight.ts 📈 +33 B (+0.48%) 6.76 kB → 6.79 kB
src/style/themes/light.ts 📈 +34 B (+0.47%) 7.08 kB → 7.11 kB
src/style/themes/development.ts 📈 +25 B (+0.35%) 6.95 kB → 6.97 kB
src/components/tooltips.tsx 📈 +24 B (+0.29%) 8.02 kB → 8.04 kB
src/components/PrivacyFilter.tsx 📈 +6 B (+0.19%) 3.11 kB → 3.11 kB
src/components/payees/PayeeMenu.tsx 📈 +2 B (+0.15%) 1.34 kB → 1.35 kB
src/components/budget/report/budgetsummary/Saved.tsx 📈 +2 B (+0.08%) 2.58 kB → 2.59 kB
src/components/budget/rollover/budgetsummary/TotalsList.tsx 📈 +2 B (+0.05%) 3.7 kB → 3.71 kB
src/components/modals/AccountMenuModal.tsx 📈 +2 B (+0.04%) 4.73 kB → 4.73 kB
src/components/modals/CategoryMenuModal.tsx 📈 +2 B (+0.04%) 4.86 kB → 4.86 kB
src/components/modals/CategoryGroupMenuModal.tsx 📈 +2 B (+0.03%) 5.61 kB → 5.61 kB
node_modules/react-aria-components/dist/import.mjs 📈 +7 B (+0.03%) 19.83 kB → 19.84 kB
node_modules/@react-aria/overlays/dist/import.mjs 📈 +14 B (+0.02%) 66.95 kB → 66.96 kB
src/components/modals/GoCardlessExternalMsg.tsx 📈 +2 B (+0.02%) 9.78 kB → 9.78 kB
src/components/manager/BudgetList.jsx 📈 +2 B (+0.02%) 9.92 kB → 9.92 kB
src/components/schedules/SchedulesTable.tsx 📈 +2 B (+0.02%) 9.93 kB → 9.94 kB
src/components/table.tsx 📈 +4 B (+0.02%) 24.26 kB → 24.26 kB
node_modules/@react-spring/shared/dist/react-spring_shared.modern.mjs 📈 +4 B (+0.01%) 27.69 kB → 27.69 kB
src/components/modals/EditRule.jsx 📉 -2 B (-0.01%) 34.5 kB → 34.5 kB
node_modules/lodash.debounce/index.js 📉 -8 B (-0.07%) 10.66 kB → 10.65 kB
src/components/rules/RuleRow.tsx 📉 -4 B (-0.08%) 5.14 kB → 5.14 kB
src/components/budget/rollover/budgetsummary/ToBudgetAmount.tsx 📉 -2 B (-0.10%) 1.92 kB → 1.92 kB
src/components/common/Tooltip.tsx 📉 -2 B (-0.15%) 1.31 kB → 1.31 kB
src/components/mobile/budget/ListItem.tsx 📉 -2 B (-0.48%) 414 B → 412 B
src/components/budget/BalanceWithCarryover.tsx 📉 -68 B (-4.23%) 1.57 kB → 1.5 kB
src/components/common/Modal.tsx 📉 -1.29 kB (-11.80%) 10.9 kB → 9.61 kB
node_modules/usehooks-ts/dist/index.js 📉 -1.17 kB (-52.17%) 2.25 kB → 1.07 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/narrow.js 59.97 kB → 75.5 kB (+15.54 kB) +25.91%
static/js/index.js 3 MB → 3.01 MB (+7.21 kB) +0.23%
static/js/wide.js 263.11 kB → 263.37 kB (+264 B) +0.10%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/usePreviewTransactions.js 790 B 0%
static/js/AppliedFilters.js 20.41 kB 0%
static/js/ReportRouter.js 1.23 MB 0%

Copy link
Contributor

github-actions bot commented Apr 19, 2024

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
1 1.2 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.2 MB 0%

@jsehnoutka
Copy link

jsehnoutka commented Apr 20, 2024

I think this doesn't work very well with bigger amounts in the budget (decimals do not show).

PR:

Screenshot_20240420-130301.png

Screenshot_20240420-130318.png

Current state:

Screenshot_20240420-130338.png

Screenshot_20240420-130356~2.png

@joel-jeremy joel-jeremy force-pushed the replace-underline-with-pills branch 2 times, most recently from dead25a to 43a7a6f Compare April 22, 2024 22:20
@joel-jeremy joel-jeremy force-pushed the replace-underline-with-pills branch 2 times, most recently from e0d1ea1 to f4e88d2 Compare May 6, 2024 16:36
@joel-jeremy joel-jeremy force-pushed the replace-underline-with-pills branch from 4ea0e0d to 4ffe0e3 Compare May 10, 2024 03:08
@joel-jeremy joel-jeremy changed the title [WIP] [Mobile] Budget table revamp [Mobile] Budget table revamp May 10, 2024
@trafico-bot trafico-bot bot added 🔍 Ready for Review Pull Request is not reviewed yet and removed 🚧 WIP Still work-in-progress, please don't review and don't merge labels May 10, 2024
@joel-jeremy
Copy link
Contributor Author

@jsehnoutka Thanks for the feedback! Pushed some changes to resize text when amount gets too long

@jsehnoutka
Copy link

jsehnoutka commented May 10, 2024

@joel-jeremy Looks great now, thanks for your work!

Would it be possible to leave the same amount of characters available for the category name though? Maybe put the new > UI element a little bit to the right and assign fixed position to it?

There are now less characters available for the category name before the line breaks, also the > UI element does not look very streamlined because it shows on different positions depending on the category name length. I think it would look better if it had consistent place on each line (category), nevertheless the text lenght.

Before:

Screenshot_20240511-000616.png

After:

Screenshot_20240511-000551.png

@Teprifer
Copy link

Agree, category chevron would look best aligned with the group chevron.

Not too sure about it changing alignment between groups, but when aligned with the group one you'll know the position will always work for the categories within the group as the group level totals the values underneath so will always have the widest numbers.

@joel-jeremy
Copy link
Contributor Author

Something like this?
image

@Teprifer
Copy link

Something like this? image

Yeah, it removes the higgilitypiggilty (I'm assuming the blank space is part of the tapable area).

@joel-jeremy
Copy link
Contributor Author

Pushed an update

I'm assuming the blank space is part of the tapable area

Yes it's tapable

@jsehnoutka
Copy link

Looks great now, but still kills a lot of the characters available for category naming.

If there is any possibility to leave this in the state it was before the PR, that would be great.

Screenshot_20240512-155156.png

Screenshot_20240512-155212.png

@youngcw
Copy link
Contributor

youngcw commented May 13, 2024

I not sure what I think about the lined up category arrows. Im fine with all the other changes though

@joel-jeremy
Copy link
Contributor Author

joel-jeremy commented May 14, 2024

I'm also torn on lining up the cheverons on the group/category names. Lining them up looks good visually but also kinda wastes some space. I'm a leaning a bit towards not lining them up since that's how the desktop does it in the desktop budget table.

More feedback would be good here.

@joel-jeremy joel-jeremy force-pushed the replace-underline-with-pills branch from cca2579 to 185bc42 Compare May 30, 2024 16:44
@joel-jeremy
Copy link
Contributor Author

@MatissJanis Any pending @psybers @youngcw @Teprifer @jsehnoutka Any pending feedback on this?

@psybers
Copy link
Contributor

psybers commented May 30, 2024

@joel-jeremy Although it looks nice, having the chevrons lined up on the right makes it less obvious they are connected to the text to the left of them and thus it is much less obvious that the whole thing is one giant link.

For example, here:

image

It is not obvious what clicking on the text will do. Since it is closer to the triangle, it feels like it would trigger that effect and not the chevron's effect.

But in terms of the code, most looks fine. It is hard to mentally parse the diff for the budget table since it is so long, but I can't spot any obvious issues.

@psybers
Copy link
Contributor

psybers commented May 30, 2024

The hover effect:

image

Makes the chevron almost disappear. It probably needs a different color when the link is being hovered.

@MatissJanis
Copy link
Member

Tested on iPhone 14: worked as expected. And the design is much better than before. I'm very happy with the changes you've done here and at this point I'd recommend merging it in ASAP (after v24.6.0 release). We can always iterate on the design afterwards.

As for code review: let me know if you'd want me to do it. Happy to help with that too, but you might have to wait a while longer for my review (my current started-and-not-finished review queue is quite long already, so I'm trying to get through those first before picking up new things..). So if someone reviews and approves in the meantime - that's ok too :)

@jsehnoutka
Copy link

I think this is a huge step forward regarding design. Great job! And thanks for adressing my concern with the available category text lenght :)

@joel-jeremy
Copy link
Contributor Author

joel-jeremy commented Jun 3, 2024

@MatissJanis @psybers I think this is ready for another round of review and/or get merged to the edge so we can collect the most feedback until next release.

Copy link
Member

@MatissJanis MatissJanis left a comment

Choose a reason for hiding this comment

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

LGTM. This is quite a big change, so has potential to break other things. However, we can always fix things in follow-up PRs. Don't want to block this for any longer.

@trafico-bot trafico-bot bot added ✅ Approved Pull Request has been approved and can be merged and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Jun 4, 2024
@joel-jeremy joel-jeremy merged commit 1c7d9bf into master Jun 4, 2024
19 checks passed
@joel-jeremy joel-jeremy deleted the replace-underline-with-pills branch June 4, 2024 20:16
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed ✅ Approved Pull Request has been approved and can be merged labels Jun 4, 2024
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.

None yet

6 participants