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

#108 feat(ui): Add icons in floorplan #512

Merged
merged 41 commits into from
May 6, 2024
Merged

#108 feat(ui): Add icons in floorplan #512

merged 41 commits into from
May 6, 2024

Conversation

TWilkin
Copy link
Owner

@TWilkin TWilkin commented May 6, 2024

  • Resolves Show sensor and device icon in rooms on UI #108:
    • Work out how many icons we could show. after grouping them by type.
    • Arranges them in a centred nice way.
    • If there are too many, show an ellipsis icon with an explanation of what is hidden.
  • Towards Add doors/window to floorplan #322:
    • Change the icon when a door/window sensor is open/closed.
  • Refactoring:
    • When rotating rotate the floorplan coordinates rather than the SVG, which fixes the alignment issues and ensures the icons are in the correct orientation and order.
    • Remove the outline as it looks bad.
    • Use a context for the API so it's easier to mock in tests.
  • Tests
  • Add tests to all services #297 Add snapshot tests for the Floorplan component.
  • Add test-setup which allows us to wrap any test that uses the API/react-query with the appropriate context providers.

@TWilkin TWilkin added enhancement New feature or request ui Relating to the UI labels May 6, 2024
@TWilkin TWilkin added this to the Widgets milestone May 6, 2024
@TWilkin TWilkin merged commit 312499f into main May 6, 2024
1 check passed
@TWilkin TWilkin deleted the 108.floorplan-icons branch May 6, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ui Relating to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show sensor and device icon in rooms on UI
1 participant