oss-slu / oss-slu/DigitalBoneBox

Deselecting a bone or sub-bone in the viewer hides the info instead of showing parent info

Open
#248 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug front-end
Dominant language
JavaScript
Stars
8
Forks
18
Avg merge
8h 17m
Merged PRs (30d)
4

Description

Bug description and expected behavior

A clear and concise description of what the bug is, and what you expected to happen.

In the viewer, if the user selects a boneset from the dropdown, the boneset information (descriptions and image) is shown. When the user selects a bone, the bone information is shown. So, deselecting the bone should then show the boneset information again, but instead all the information is hidden:

https://github.com/user-attachments/assets/879171a2-ae0c-4d96-9d20-01f690b7f80e

Similarly, selecting a sub-bone and then deselecting it should display the information of the parent bone, but instead all of the information is hidden:

https://github.com/user-attachments/assets/2fab482d-bb3c-4961-9c04-448174134df2


Steps to reproduce

A list of steps it takes to see this bug.

  1. Select a boneset from the dropdown. The boneset information will be displayed.
  2. Select a bone from the dropdown. The bone information will be shown in place of the boneset information.
  3. Change the bone selection back to the default, effectively deselecting the bone. It should revert back to the previous display, where the boneset information was shown, but instead all the information goes away completely.

Acceptance Criteria

A checklist of conditions that must be met for this task to be considered complete. How will we verify that it's done correctly?

  • The buggy behavior no longer occurs.
  • All related code passes the repository's workflow checks (linting, tests).
  • The application runs without new errors after the changes are made.
  • (If applicable) New automated tests have been added to cover the changes.

Additional context

Add any other context or screenshots about the bug here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the viewer's boneset, bone, and sub-bone selection handling described in the reproduction steps, and trace how the default selection determines the displayed information. Verify that deselecting a bone restores boneset information and deselecting a sub-bone restores parent-bone information, then run the repository workflow checks and confirm the application has no new errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.