jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Add Commit and Push Feature

Open DominikVoigt opened this issue 4 months ago • 13 comments

Is your suggestion for improvement related to a problem? Please describe. When using the git feature, it would be helpful if the window that pops up after creating a commit also has an option to directly push the commit to the remote repository

Image Current Window: Image

Describe the solution you'd like Recommendation: Image

DominikVoigt avatar Jul 24 '26 10:07 DominikVoigt

⚠️ Assignment Limit Reached

Hi @BoomikaSN, you've already reached the limit of 2 active assignments. Issues are a great way to work on opensource, and we want to ensure that all contributors have the opportunity to work on issues.

jabref-machine avatar Jul 25 '26 05:07 jabref-machine

@BoomikaSN I am not sure about accounting system in your country. Here we count 1 2 3 4. Also: first second third. We also try to use the system the issue labels. And maybe you saw that this is a good first issue. Can you sing what is your type you should take next? If not then please read CONTRIBUTING.md again.

Edit: Moreover I did not see you trying out other pull requests etc.

Edit 2: You lied in the checklist of the linked PR. I think you are not taking this project serious. I feel very disrespected. As a consequence, my motivation to review any PR lowered. Please try to keep project maintainers motivated. If this is hard for you (which I can understand), please choose another project.

koppor avatar Jul 25 '26 09:07 koppor

Hi @DominikVoigt, I'd like to work on this issue as my first contribution to JabRef.

My plan: add a "Push" button alongside the existing commit action in the commit dialog, so users can push right after committing without needing to find a separate action. I'll wire it to the existing git service used for the commit flow (assuming there's already a push method available via JGit, since the pull/commit side already exists).

I'll dig into the codebase first to confirm the exact dialog/controller involved and follow up here with more specific questions if needed. Please let me know if there's any existing discussion or design direction I should be aware of before I start.

Ranjan-3105 avatar Jul 26 '26 17:07 Ranjan-3105

hi can you assign this task to me

Rajjoshi77 avatar Jul 29 '26 17:07 Rajjoshi77

/assign-me

Campalans03 avatar Jul 30 '26 11:07 Campalans03

👋 Hey @Campalans03, thank you for your interest in this issue! 🎉

We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.

For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.

In case you encounter failing tests during development, please check our developer FAQs!

Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.

Happy coding! 🚀

jabref-machine avatar Jul 30 '26 11:07 jabref-machine

Question

I've been working on this feature and have the functionality implemented. I added a commitAndPushButton (ButtonData.APPLY) alongside the existing Commit/Cancel buttons in GitCommitDialogView.fxml.

I've run into an issue: JavaFX's ButtonBar automatically reorders buttons based on their ButtonData value, rather than the order I declared them in the FXML. This means the "Cancel" button doesn't appear where I'd expect it relative to Commit and Commit and Push.

Is there a preferred approach in JabRef's codebase for controlling button order in dialogs like this? I've seen that ButtonBar exposes a buttonOrder property that accepts a custom order string, so i tried, using the buttonBar.setButtonOrder("OAC"); the order appears as intended but I wanted to check if there's already a utility used elsewhere in the project before or maybe just let it with the default order.


Screenshot of the unordered layout:

Image

Screenshot of the "OAC" aproach:

Image

Campalans03 avatar Jul 30 '26 17:07 Campalans03

Hi @DominikVoigt @koppor, I had expressed interest in working on this issue a few days ago and shared my proposed implementation approach above. I noticed it has now been assigned through /assign-me.

I wasn't aware that I needed to use the command to claim the issue. Would it still be okay for me to work on this, or should I pick up another issue? Thanks!

Ranjan-3105 avatar Jul 31 '26 08:07 Ranjan-3105

⚠️ Issue Already Assigned

Hi @Ranjan-3105, this issue is currently assigned to @Campalans03.

[!NOTE] This issue is pinned and will not be automatically unassigned.

Options for contributors
  • Collaborate: You can ask the assignee if they want help
  • Maintainer assistance: A maintainer can add you as co-assignee if appropriate
  • Wait for completion: The issue will remain assigned until the work is complete

jabref-machine avatar Jul 31 '26 08:07 jabref-machine

I wasn't aware that I needed to use the command to claim the issue. Would it still be okay for me to work on this, or should I pick up another issue? Thanks!

JabRef is a hobby project and we cannot offer support round the clock. Contributors just come, want to have a PR merged and leave. They don't read the README.md or CONTRIBUTING.md, but expect us to guide them fully.

I don't know about your goal. You can work in this and compare your solution with the other solution proposed. You can answer questions risen above.

If your goal is to have a PR merged, please pick another issue or wait a few weeks to see if the other person succeeds.

koppor avatar Aug 01 '26 14:08 koppor

Auto ordering is intended behaviour in buttonbar in Javafx. Different os win/Linux/Mac have a different default order of buttons. to serve default behaviour and muscle memory for users, button bar automatically reorders buttons. That's why you normally only declare button types in Javafx and not the buttons themselves.

calixtus avatar Aug 01 '26 15:08 calixtus

Best is to avoid manually reordering buttons.

calixtus avatar Aug 01 '26 15:08 calixtus

We think that this issue was fixed. Please head to https://builds.jabref.org/main to download a development build and try it out.

For any feedback, add a comment to the pull request at https://github.com/JabRef/jabref/pull/16440.

github-actions[bot] avatar Aug 31 '26 13:08 github-actions[bot]