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

Add Underline in Account Header #2847

Merged
merged 22 commits into from
Jun 11, 2024

Conversation

Crazypkr1099
Copy link
Contributor

No description provided.

@github-actions github-actions bot changed the title Add Underline & Fixed Capitalization in Account Header [WIP] Add Underline & Fixed Capitalization in Account Header Jun 6, 2024
Copy link

netlify bot commented Jun 6, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit aa3ee33
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/6668137c65a9f10008aa4bf7
😎 Deploy Preview https://deploy-preview-2847.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 and removed 🚧 WIP labels Jun 6, 2024
Copy link
Contributor

github-actions bot commented Jun 6, 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.75 MB → 4.75 MB (+259 B) +0.01%
Changeset
File Δ Size
src/components/sidebar/Account.tsx 📈 +205 B (+4.46%) 4.49 kB → 4.69 kB
src/components/sidebar/Accounts.tsx 📈 +54 B (+1.47%) 3.6 kB → 3.65 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 3.01 MB → 3.01 MB (+259 B) +0.01%

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/narrow.js 75.66 kB 0%
static/js/usePreviewTransactions.js 790 B 0%
static/js/AppliedFilters.js 21.23 kB 0%
static/js/wide.js 263.53 kB 0%
static/js/ReportRouter.js 1.23 MB 0%

Copy link
Contributor

github-actions bot commented Jun 6, 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.13 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.13 MB 0%

@Crazypkr1099 Crazypkr1099 changed the title [WIP] Add Underline & Fixed Capitalization in Account Header Add Underline & Fixed Capitalization in Account Header Jun 6, 2024
@Teprifer
Copy link

Teprifer commented Jun 6, 2024

Hrm, the lines might sit better with a few tweaks, as they are they're a bit dominating.

The lines seems a bit too bold - note lines elsewhere are fairly faint.

Since they aren't sections of the sidebar, but rather subsections of all accounts, it might make more sense for them to not go fully across and instead only start where the text does, and end at the end of the numbers.

@Teprifer
Copy link

Teprifer commented Jun 7, 2024

Thinner line is good, thought I'd mock up my poorly worded other suggestion about line width, please forgive my bad paint job skills.

I think the second does look better and gives a better sense of hierarchy than all the way across since there's already a fully across line break between the menu options and the accounts section.

image

@Crazypkr1099
Copy link
Contributor Author

Thinner line is good, thought I'd mock up my poorly worded other suggestion about line width, please forgive my bad paint job skills.

I think the second does look better and gives a better sense of hierarchy than all the way across since there's already a fully across line break between the menu options and the accounts section.

image

I understand what you are saying, but to achieve this is quite difficult as the current way it is coded. I think its such a minor detail its not a huge deal right now to have the line extend the entire way. If you select the account, it adds the small rectangle showing its selected. If we have the line only part of the way, it would look very strange. Right now it looks normal.

Screenshot 2024-06-07 195155

Thanks. I would like to merge this as is.

@Crazypkr1099 Crazypkr1099 changed the title Add Underline & Fixed Capitalization in Account Header Add Underline in Account Header Jun 8, 2024
@carkom
Copy link
Contributor

carkom commented Jun 8, 2024

Thinner line is good, thought I'd mock up my poorly worded other suggestion about line width, please forgive my bad paint job skills.

I think the second does look better and gives a better sense of hierarchy than all the way across since there's already a fully across line break between the menu options and the accounts section.

image

I agree that the second is more desireable. With lines all the way across it looks like entirely new sections of the menu rather than a subsection of accounts. While it may be simpler to code the first, the second is doable and I think we should make an effort to use that look instead.

@Crazypkr1099
Copy link
Contributor Author

Thinner line is good, thought I'd mock up my poorly worded other suggestion about line width, please forgive my bad paint job skills.
I think the second does look better and gives a better sense of hierarchy than all the way across since there's already a fully across line break between the menu options and the accounts section.
image

I agree that the second is more desireable. With lines all the way across it looks like entirely new sections of the menu rather than a subsection of accounts. While it may be simpler to code the first, the second is doable and I think we should make an effort to use that look instead.

Kk, I managed to make it not take up the entire width... but when you select it, the border doesn't take the highlighted color. I am not skilled enough in JS/React to figure out how to do this, so if someone could take over from here that would be great (or pass me in the right direction). Thanks :)

@youngcw
Copy link
Contributor

youngcw commented Jun 10, 2024

Kk, I managed to make it not take up the entire width... but when you select it, the border doesn't take the highlighted color.

Im not sure what you are referring to by this. It looks good to me, pretty much exactly what I think @carkom was asking for.

@Crazypkr1099
Copy link
Contributor Author

Yeah your right. I was thinking when selected it should highlight purple, but honestly more I look at it, the more I think not. I'm happy with getting this merged.

@youngcw
Copy link
Contributor

youngcw commented Jun 10, 2024

@Teprifer @carkom Any complaints remaining? or are we good?

@Teprifer
Copy link

Looks good to me, thanks for taking the feedback on board @Crazypkr1099 :)

@Crazypkr1099
Copy link
Contributor Author

Looks good to me, thanks for taking the feedback on board @Crazypkr1099 :)

Can we merge it then?

@carkom carkom merged commit bf26ca4 into actualbudget:master Jun 11, 2024
19 checks passed
Copy link
Contributor

@lelemm lelemm left a comment

Choose a reason for hiding this comment

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

Found this minor problem in the master branch after updating my branches to master

style={
(name === 'Off budget' || name === 'For budget') && {
borderBottom: `1.5px solid rgba(255,255,255,0.4)`,
paddingBottom: '3px;',
Copy link
Contributor

Choose a reason for hiding this comment

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

After updating some branches with master, there is a console log all the time:

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah crap sorry... Didn't know about this. I'll create a PR tonight to fix this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

None yet

6 participants