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

fix(front): Fix buttons in Toolbar #115

Merged
merged 3 commits into from
Feb 8, 2024
Merged

fix(front): Fix buttons in Toolbar #115

merged 3 commits into from
Feb 8, 2024

Conversation

cpvannier
Copy link
Member

@cpvannier cpvannier commented Feb 8, 2024

Issue

Fixes #114

Description

  • Add missing tooltip for the bounding box and smart tool list buttons
  • Fix existing tooltips for the other tools
  • Use the SelectionTool.name as tooltipContent for all buttons
  • Fix a typo: polygoneTool > polygonTool
  • Redefine the smart tool list button with IconButton
    • IconButton allows the smart tool list button to use tooltipContent like the other buttons
    • on:dblclick is not implemented in IconButton. Show the model selection modal every time the smart tool list is opened instead. Closing and re-opening the smart tool list works similarly to double clicking.

- Use name attribute as tooltip, fix descriptions
- Fix typo polygoneTool > polygonTool
- Use IconButton for smart tool list button, which allows using the same tooltip as other buttons
- Redefine double click action as it is not implemented in IconButton
  - Show the model selection modal everytime the smart tool list is opened instead of on double click
  - Close the smart tool list when selecting a non smart tool to show the model selection modal when selecting the smart tool list again
@cpvannier cpvannier added enhancement New feature or request scope: front Related to Pixano frontend labels Feb 8, 2024
@cpvannier cpvannier added this to the Pixano 0.5.0 milestone Feb 8, 2024
@cpvannier cpvannier self-assigned this Feb 8, 2024
@cpvannier cpvannier changed the title fix(front): Fix tool buttons tooltips fix(front): Fix buttons in Toolbar Feb 8, 2024
Revert closing the smart list on tool change to prompt for model selection when re-opening the smart list.
Closing and re-opening the smart list manually to change model is enough.
@cpvannier cpvannier merged commit e5f7829 into develop Feb 8, 2024
5 checks passed
cpvannier added a commit that referenced this pull request Feb 15, 2024
* fix(front): Fix tool buttons tooltips

- Use name attribute as tooltip, fix descriptions
- Fix typo polygoneTool > polygonTool

* fix(front): Redefine smart tool list button with IconButton

- Use IconButton for smart tool list button, which allows using the same tooltip as other buttons
- Redefine double click action as it is not implemented in IconButton
  - Show the model selection modal everytime the smart tool list is opened instead of on double click
  - Close the smart tool list when selecting a non smart tool to show the model selection modal when selecting the smart tool list again

* fix(front): Revert closing the smart list on tool change

Revert closing the smart list on tool change to prompt for model selection when re-opening the smart list.
Closing and re-opening the smart list manually to change model is enough.
@cpvannier cpvannier deleted the fix/tool_tooltips branch February 20, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scope: front Related to Pixano frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix buttons in Toolbar
3 participants