bcgov / invasivesbc

Inventory and database repository for the creation, treatment, and report on BC Invasive plants and animals.
Apache License 2.0
13 stars 4 forks source link

Refactor tile set size shared functionality into a hook #3619

Closed plasticviking closed 3 weeks ago

plasticviking commented 3 weeks ago

useTileSizeThresholds(size: number) computes both color-based thresholds and whether size exceeds download limit. moves duplicated functionality into a single reusable hook. Move associated constants into a separate file for findability.

Overview

This PR includes the following proposed change(s):

Type of change

if your change is a breaking change, please add breaking change label to this PR

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Screenshots

Please add any relevant UI screenshots if applicable.

Checklist:

sonarcloud[bot] commented 3 weeks ago

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud