Add the Shipping Cutoff e-commerce template (`ecommerce-shipping-cutoff`)
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 78/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- design
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8
- Forks
- 4
- Ø Merge
- 1 T. 21 Std.
- Gemergte PRs (30 T.)
- 34
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codercops/ogcops
-
Preview checker: a long `og:title` or `og:description` gets no warning when the page also has a normal title and descriptionEvtl. vergeben @Imhamza86 hat das heute übernommen. Offenbug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
codercops/ogcops#458 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Preview checker: a page that only has `og:image:url` is reported as having no imageEvtl. vergeben @MugdhoAI hat das heute übernommen. Offenbug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
codercops/ogcops#455 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URLEvtl. wieder frei @CreatorguyS hat das vor 34 Tagen übernommen, und es ist kein Pull Request offen. Offenbug enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
codercops/ogcops#378 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
good first issue templates
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 2 Tagen
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
codercops/ogcops#341 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in codercops/ogcops
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Vessel9817/onion-site-template#512 ·
Maintainer antworten meist innerhalb von 1 Tag
-
nightly-tests
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
BlackBeltTechnology/pi-agent-dashboard#1256 ·
Maintainer antworten meist innerhalb von 1 Tag
-
approved
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
fritzprix/libr-agent#3266 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
better-auth/better-auth#13101 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag