digidem / digidem/comapeo-core-react

Construct icon URLs and return them with presets

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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.