-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Follow-up #12035 and #12068: Show an informative progress indicator when dragging and dropping PDF files to JabRef #12072
Conversation
Completed manually adding changes from https://github.com/JabRef/jabref/pull/12035/files. Awaiting peer-review from @mag-sun before marking pull request as ready for review. |
…added unit tests for maxLength null cases
Peer review from @mag-sun completed, the PR is now ready for review. |
Hi @koppor, I have opened this PR as you requested in #12068. For the two failing unit tests:
Please let me know if there are any changes you would like me to make, thank you in advance for the feedback. |
@BaronMac08 #12068 was closed. Maybe you mean #12072 -- please let pull requests open after changing something. Otherwise, it is really hard to follow. |
I think, not. |
Move the code to |
I have moved the shortenFileName() method to FileUtil, as @koppor suggested. All checks have passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments on the functionality of the ellipses. Maybe, you can fix it?
"... , longfilename.extremelylongextension , 5", | ||
"... , longfilename.extremelylongextension , 10", | ||
"... , longfilename.extremelylongextension , 20", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not good behavior.
Expected:
"... , longfilename.extremelylongextension , 5", | |
"... , longfilename.extremelylongextension , 10", | |
"... , longfilename.extremelylongextension , 20", | |
"lo.. , longfilename.extremelylongextension , 5", | |
"longfil... , longfilename.extremelylongextension , 10", | |
"longfilename.extr.... , longfilename.extremelylongextension , 20", |
Reason: There are plenty !! of characters available at 10 and 20. They should be used. Not just 3
"'' , thisisatestfile.pdf , -5", | ||
"'' , thisisatestfile.pdf , 0", | ||
"... , thisisatestfile.pdf , 3", | ||
"... , thisisatestfile.pdf , 5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please! Use all 5 characters: th...
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely, I will modify the functionality to make use of the available characters.
Drop of files does not work. ALL files are attached to ALL entries. Even on pressing Cancel. Please try out your things. Having 500 PDFs available is not too hard. I used all from my Downloads folder to test. - If not, you can try out the PDFs available at https://github.com/koppor/tugboat-mirror/tree/main/tugboat_issues. |
…dated progress messages for Importing, Indexing files.
Thank you for pointing out the issue. I believe the issue is caused by the grouping of all files' entries and then sending it to the indexManager as one big EntriesAddedEvent. Therefore, I perform the exact same test of dragging and dropping the PDF files provided at https://github.com/koppor/tugboat-mirror/tree/main/tugboat_issues into The difference between
Additionally, on both I am wondering what would be the correct behaviour for this dataset of PDF files so that the issue on branch |
Thank you for investigating. I needed to raise a new issue at #12098. |
Thank you for the quick follow-up in the filename methods. This is good to go now! |
Thank you for your guidance and advice! |
Closes #8738
A follow-up to #12035 and #12068
Builds upon: the branch
fix-melting-630
merged at #12001Modifications:
Additions:
UI Screenshots after modifications and additions:
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)