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

Enable casing for entry types #9883

Closed
wants to merge 6 commits into from

Conversation

eric052199
Copy link

@eric052199 eric052199 commented May 14, 2023

Fixes #9840

This is an enhancement for #9840. (the third todo, currently still working on the second)
We enabled casing when adding field for entry type.

Compulsory checks

Preview Give feedback
image

@ThiloteE ThiloteE changed the title Fix for issue 9840 Fix for issue 9840 - Enable casing for entry types May 14, 2023
@ThiloteE ThiloteE added the ui label May 14, 2023
@calixtus calixtus changed the title Fix for issue 9840 - Enable casing for entry types Enable casing for entry types May 14, 2023
Comment on lines 19 to 22
// default String getDisplayName() {
// return StringUtil.capitalizeFirst(getName());
// }

Copy link
Member

Choose a reason for hiding this comment

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

Please remove artifacts instead of commenting it. This is what a VCS like git is made for.

Comment on lines 23 to 25
default String getDisplayName() {
return StringUtil.capitalizeFirst(getName());
return getName();
}
Copy link
Member

Choose a reason for hiding this comment

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

Although this fixes the issue, it may also have unforseen consequences.
Better question is, where is this method called. Why is this method called instead of the method getName? Please provide some reasoning.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe, the solution is as simple as calling getName in the customize entry view model code

Comment on lines +1 to +22
credential.helper=osxkeychain
init.defaultbranch=main
user.name=eric052199
[email protected]
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
remote.upstream.url=https://github.com/JabRef/jabref.git
remote.upstream.fetch=+refs/heads/main:refs/remotes/upstream/main
branch.main.remote=upstream
branch.main.merge=refs/heads/main
remote.origin.url=https://github.com/eric052199/jabref.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.eric-dev.remote=origin
branch.eric-dev.merge=refs/heads/eric-dev
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be an artifact of you working on your PR?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, i'm not really sure what this is about. Do i need to remove this?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, remove this

@calixtus
Copy link
Member

Thank you very much for your PR. There are some issues I tried to address above.

@koppor koppor added the status: changes required Pull requests that are not yet complete label May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: changes required Pull requests that are not yet complete ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance customization of entry types
4 participants