Add the Shipping Cutoff e-commerce template (`ecommerce-shipping-cutoff`)
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- design
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 8
- Forks
- 4
- Merge medio
- 1 d 21 h
- PR fusionados (30 d)
- 34
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de codercops/ogcops
-
Preview checker: a long `og:title` or `og:description` gets no warning when the page also has a normal title and descriptionPosiblemente ocupada @Imhamza86 la tomó hoy. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
codercops/ogcops#458 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Preview checker: a page that only has `og:image:url` is reported as having no imagePosiblemente ocupada @MugdhoAI la tomó hoy. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
codercops/ogcops#455 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URLQuizá libre de nuevo @CreatorguyS la tomó hace 34 días y no hay ningún pull request abierto. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
codercops/ogcops#378 · 4 comentarios ·
Los mantenedores suelen responder en 2 días
-
good first issue templates
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
codercops/ogcops#341 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de codercops/ogcops
Issues similares
-
clawsweeper:intake:bug clawsweeper:intake:needs-environment
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openclaw/openclaw#212827 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Use one constant for the 10,000-character input limitPosiblemente ocupada @NginxL la tomó hoy. Abiertogood first issue refactor
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
aniru-dh21/snap-validate#51 ·
Los mantenedores suelen responder en 1 día
-
dependencies effort: small good first issue priority: low
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
TMHSDigital/screencast-mcp#509 ·
Los mantenedores suelen responder en 1 día
-
from-review tech-debt testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
blamechris/chroxy#9520 ·
Los mantenedores suelen responder en 1 día