Add the Shipping Cutoff e-commerce template (`ecommerce-shipping-cutoff`)
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 78/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- design
Direção de pesquisa
Start with src/templates/event/countdown.ts for the date block and src/templates/ecommerce/coupon-code.ts for optional promotional content. Create src/templates/ecommerce/shipping-cutoff.ts, then re-export it from src/templates/ecommerce/index.ts and register it in src/templates/registry.ts. Done means the template handles blank options, centering, font shrinking and truncation, and readable light backgrounds as listed in the acceptance criteria.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Part of #5. For stores posting the last day to order before a holiday or a launch date, which is most of December for anyone who ships physical things.
Idea
A calendar-style date block on the left, the month on top ("DEC") and the day large under it ("18"). On the right, the heading ("Last day to order for holiday delivery") and up to three shipping options, each a method and its own cutoff on one line: "Standard / Order by Dec 15", "Express / Order by Dec 19", "Next day / Order by Dec 21". An optional note under the options ("Free gift wrap on every order") and the store name at the bottom.
The dates are plain text the user types. The template shouldn't work out "3 days left" or anything else from today's date, since a render has to give the same image every time.
Template details
- File:
src/templates/ecommerce/shipping-cutoff.ts, idecommerce-shipping-cutoff - Fields:
commonFields.title,month(text, "DEC"),day(text, "18"),method1tomethod3andcutoff1tocutoff3(text, optional, defaults above),note(text, optional),commonFields.siteName,commonFields.bgColor,commonFields.accentColor,commonFields.textColor
Where to look
- Closest references:
src/templates/event/countdown.ts(the month and day block),src/templates/ecommerce/coupon-code.ts(a store promo with an optional expiry line)
Acceptance criteria
- An option with a blank cutoff is skipped with no gap, an option with a cutoff but no method shows the cutoff on its own, and with no options at all the heading and note sit centered next to the date block
- A long heading shrinks with
autoFontSize()and then truncates, a long method or cutoff truncates on its line, and a three-letter month and a two-digit day always fit inside the date block - The date block, options and note read fine on a light background
- Re-exported in
src/templates/ecommerce/index.tsand registered in the E-commerce block ofsrc/templates/registry.ts - Meets the shared template checklist in #5
One template per contributor at a time, so more people get a chance.
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #451 in the description.
- Linguagem predominante
- TypeScript
- Estrelas
- 8
- Forks
- 4
- Merge médio
- 1d 21h
- PRs com merge (30d)
- 34
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
-
Preview checker: a long `og:title` or `og:description` gets no warning when the page also has a normal title and descriptionTalvez já em andamento @Imhamza86 assumiu hoje. Abertabug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
codercops/ogcops#458 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Preview checker: a page that only has `og:image:url` is reported as having no imageTalvez já em andamento @MugdhoAI assumiu hoje. Abertabug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
codercops/ogcops#455 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 2 dias
-
[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URLTalvez livre de novo @CreatorguyS assumiu há 34 dias e não há nenhum pull request aberto. Abertabug enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
codercops/ogcops#378 · 4 comentários ·
Mantenedores costumam responder em até 2 dias
-
good first issue templates
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 2 dias
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 30/100
codercops/ogcops#341 · 2 comentários ·
Mantenedores costumam responder em até 2 dias
Todas as issues de codercops/ogcops
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Vessel9817/onion-site-template#512 ·
Mantenedores costumam responder em até 1 dia
-
nightly-tests
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
BlackBeltTechnology/pi-agent-dashboard#1256 ·
Mantenedores costumam responder em até 1 dia
-
approved
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
fritzprix/libr-agent#3266 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
better-auth/better-auth#13101 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia