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

Library disappeared and Welcome tab is shown instead #12894

Open
2 tasks done
InAnYan opened this issue Apr 7, 2025 · 5 comments · May be fixed by #12909
Open
2 tasks done

Library disappeared and Welcome tab is shown instead #12894

InAnYan opened this issue Apr 7, 2025 · 5 comments · May be fixed by #12909
Assignees
Labels
📍 Assigned Assigned by assign-issue-action (or manually assigned) good first issue An issue intended for project-newcomers. Varies in difficulty. 📌 Pinned

Comments

@InAnYan
Copy link
Member

InAnYan commented Apr 7, 2025

JabRef version

Latest development branch build (please note build date below)

Operating system

GNU / Linux

Details on version and operating system

Arch Linux (MATE DE)

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Open JabRef.

"Welcome tab" appears.

  1. Create a new library (button in the upper-left corner).
  2. Create another library.

Image

Three tabs are listed in the upper bar: "Welcome", "untitled", "untitled".

  1. Click on the 2nd library (first "untitled", the first after "Welcome").
  2. Close the 2nd library (via cross near the name).

"Welcome" tab appears, instead of other "untitled" library.

If you instead delete the second "untitled" library (which is the 3rd in step 3), this issue won't appear.

Appendix

No response

@InAnYan
Copy link
Member Author

InAnYan commented Apr 7, 2025

This PR introduced "Welcome tab": #12461. Maybe you can spot a bug there 😋

@github-project-automation github-project-automation bot moved this to Free to take in Good First Issues Apr 7, 2025
@Siedlerchr Siedlerchr added the good first issue An issue intended for project-newcomers. Varies in difficulty. label Apr 7, 2025
@Zurtar
Copy link
Contributor

Zurtar commented Apr 7, 2025

/assign-me

@github-actions github-actions bot added the 📍 Assigned Assigned by assign-issue-action (or manually assigned) label Apr 7, 2025
Copy link
Contributor

github-actions bot commented Apr 7, 2025

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

We're excited to have you on board. Start by exploring our Contributing guidelines, and don't forget to check out our workspace setup guidelines to get started smoothly.

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

Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on JabRef's Gitter chat. And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback.

Happy coding! 🚀

@koppor koppor moved this from Free to take to Assigned in Good First Issues Apr 7, 2025
@Zurtar Zurtar linked a pull request Apr 7, 2025 that will close this issue
6 tasks
@koppor koppor moved this from Assigned to In Progress in Good First Issues Apr 7, 2025
@Zurtar
Copy link
Contributor

Zurtar commented Apr 9, 2025

I've started working on the issue but I need a bit of clarification. What is the preferred behaviour supposed to be? The reason the second library is "lost" is due to how the tab bar is hidden (#12395), the check to hide the tab bar only considers open libraries and doesn't include the welcome tab. The process looks like this:

  1. Initially the Welcome tab and two library tabs are open
  2. The user closes the tab directly to the right of the welcome tab, causing the new selected tab to "shift left" focusing the welcome tab
  3. A change in selection is fired, causing a check to hide the top app bar, which counts the number of open databases, and then if there is only a single one (and the user doesn't have the setting to hide disabled) it hides the tab bar. However because the Welcome tab is selected you "lose" the second library

The two options to fix this seem to be:

  • Keep the tab bar visible when there's one library and the Welcome tab open
  • Swap focus to the remaining library and hide the tab bar

I'd appreciate some direction on which solution to go with.

@InAnYan
Copy link
Member Author

InAnYan commented Apr 9, 2025

Hi, Zurtar! Thanks for thorough examination!

I think a typical user expects the 2nd variant: hide the tab bar (which "contains" "Welcome" tab and a library), and show the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📍 Assigned Assigned by assign-issue-action (or manually assigned) good first issue An issue intended for project-newcomers. Varies in difficulty. 📌 Pinned
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants