[Bug] Difficulty Badge ignores its Accent Color field
Mantenedores costumam responder em até 1 dia
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Describe the bug
The Difficulty Badge template has an Accent Color field, but changing it does nothing. src/templates/tutorial/difficulty-badge.ts adds commonFields.accentColor to fields and sets a default of #E07A5F, but render never reads params.accentColor. The bar colours come from the fixed difficultyConfig (green, amber, red), and nothing else in the image uses the accent.
To Reproduce
- Go to https://og.codercops.com/create/tutorial?template=tutorial-difficulty-badge and open Customize
- Change Accent Color to anything
- The preview doesn't change
The API is the same: /api/og?template=tutorial-difficulty-badge&accentColor=%232563EB renders the same image as the default.
Expected behavior
Either the accent shows up somewhere in the image, or the template doesn't offer the field.
Actual behavior
The field is there and the image ignores it.
Environment
- Browser: Chrome
- OS: macOS
Additional context
Since the difficulty colours mean something, I'd remove accentColor from fields and defaults rather than recolour the bars, and add a test in tests/templates/ that the template doesn't expose it. If you'd rather keep it, I can use it for the duration pill instead.
- Linguagem predominante
- TypeScript
- Estrelas
- 8
- Forks
- 4
- Merge médio
- 8h 47min
- PRs com merge (30d)
- 157
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de codercops/ogcops
-
[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URLTalvez já em andamento @CreatorguyS assumiu há 2 dias. Abertabug enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
codercops/ogcops#378 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
[Bug] Clipboard fallback reports success even when copying failsTalvez já em andamento @srikar-naidu assumiu há 2 dias. Abertabug
codercops/ogcops#384 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Preview checker: entity names like `&constructor;` decode to function sourceTalvez já em andamento @amitsinha-cell assumiu há 3 dias. Abertabug
codercops/ogcops#356 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Add the Do and Don't tutorial template (`tutorial-do-dont`)Talvez já em andamento @Ravindar-Amogh-Gummadavelly assumiu há 3 dias. Abertagood first issue templates
codercops/ogcops#355 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 30/100
codercops/ogcops#341 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de codercops/ogcops
Issues semelhantes
-
mobile-app
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Open-Locker/Open-Locker#352 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
leanprover-community/lean4game#589 ·
Mantenedores costumam responder em até 2 dias
-
Add: CS Action BGAbertacheck:passed streams:add
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
unocss/unocss#5421 · 1 comentário ·
Mantenedores costumam responder em até 1 dia