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

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

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 cca2579
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/664cbb6e54914f00086e7278
😎 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.71 MB → 4.74 MB (+21.88 kB) +0.45%
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.73 kB (+47.43%) 33.17 kB → 48.91 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/reports/GraphButton.tsx 📈 +197 B (+30.35%) 649 B → 846 B
src/components/reports/SaveReportMenu.tsx 📈 +128 B (+9.75%) 1.28 kB → 1.41 kB
src/components/reports/SaveReportDelete.tsx 📈 +113 B (+8.64%) 1.28 kB → 1.39 kB
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
src/components/reports/SaveReportChoose.tsx 📈 +122 B (+4.60%) 2.59 kB → 2.71 kB
node_modules/react-dom/index.js 📈 +7 B (+1.55%) 453 B → 460 B
src/components/reports/ReportSidebar.tsx 📈 +235 B (+1.46%) 15.71 kB → 15.94 kB
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
src/components/reports/SaveReportName.tsx 📈 +23 B (+1.01%) 2.22 kB → 2.24 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
src/components/modals/CreateAccountModal.tsx 📉 -2 B (-0.02%) 8.09 kB → 8.09 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/accounts/Account.jsx 📉 -165 B (-0.36%) 44.75 kB → 44.58 kB
src/components/mobile/budget/ListItem.tsx 📉 -2 B (-0.48%) 414 B → 412 B
src/components/common/MenuTooltip.tsx 📉 -2 B (-0.89%) 224 B → 222 B
src/components/budget/SidebarCategory.tsx 📉 -137 B (-2.71%) 4.94 kB → 4.8 kB
src/components/budget/SidebarGroup.tsx 📉 -157 B (-2.71%) 5.66 kB → 5.5 kB
src/components/budget/BalanceWithCarryover.tsx 📉 -68 B (-4.23%) 1.57 kB → 1.5 kB
src/components/reports/reports/CustomReportListCards.tsx 📉 -768 B (-8.29%) 9.04 kB → 8.29 kB
src/components/common/Modal.tsx 📉 -1.29 kB (-11.80%) 10.9 kB → 9.61 kB
src/components/reports/SaveReport.tsx 📉 -836 B (-13.83%) 5.9 kB → 5.09 kB
src/components/common/MenuButton.tsx 📉 -98 B (-21.68%) 452 B → 354 B
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.7 kB (+15.73 kB) +26.23%
static/js/index.js 3 MB → 3.01 MB (+7.2 kB) +0.23%
static/js/AppliedFilters.js 20.41 kB → 20.54 kB (+124 B) +0.59%

Smaller

Asset File Size % Changed
static/js/ReportRouter.js 1.23 MB → 1.23 MB (-786 B) -0.06%
static/js/wide.js 262.45 kB → 262.04 kB (-419 B) -0.16%

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%

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 → 1.2 MB (-152 B) -0.01%
Changeset
File Δ Size
packages/loot-core/src/server/accounts/rules.ts 📈 +53 B (+0.18%) 28.79 kB → 28.84 kB
packages/loot-core/src/server/budget/goals/goalsSchedule.ts 📉 -545 B (-7.27%) 7.32 kB → 6.78 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

Asset File Size % Changed
kcab.worker.js 1.2 MB → 1.2 MB (-152 B) -0.01%

Unchanged

No assets were unchanged

@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.

Copy link
Contributor

Choose a reason for hiding this comment

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

Any idea why this would be changing?

@joel-jeremy joel-jeremy force-pushed the replace-underline-with-pills branch from 48570c2 to af81b52 Compare May 15, 2024 21:19
@psybers
Copy link
Contributor

psybers commented May 16, 2024

Why was it changed to use a chevron on the right? To me, this makes it a bit confusing because now that chevron is being used for two purposes:

image

Here, the left chevron means you can expand the group. The right one means you can pop up a dialog.

@psybers
Copy link
Contributor

psybers commented May 16, 2024

And I guess this is just a bigger design question, as now there are chevrons all over and that apparently means "you can click on this". But it does somewhat confuse the viewer because chevrons mean "expand this" in some contexts.

The old style with underlines was clear: underlined text are links, you can click on those.

@MatissJanis
Copy link
Member

One more note:

  • the "0.00" amount is almost invisible to the naked eye - would be good to bump up the contrast there (screenshot 1)
Screenshot 2024-05-16 at 20 13 33

Other than that this looks really good!

@joel-jeremy joel-jeremy force-pushed the replace-underline-with-pills branch from 6bac9e1 to b1ceab8 Compare May 21, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔍 Ready for Review Pull Request is not reviewed yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants