digidem / digidem/comapeo-core-react
Construct icon URLs and return them with presets
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 1
- Avg merge
- 5m
- Merged PRs (30d)
- 2
Description
usePreset() and useManyPresets() should return a list of URLs for available icon variants (SVG/PNG, size, pixel density). This is dependent on https://github.com/digidem/comapeo-core/issues/1114, although it would be possible to implement this without the upstream fix by making multiple requests to possible URLs, but that would not be great for perf.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the usePreset() and useManyPresets() entry points and read upstream comapeo-core issue #1114 to understand the required icon URL support. Done means both hooks return URLs covering the available SVG/PNG variants, sizes, and pixel densities without relying on inefficient multiple requests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100