Add the Shipping Cutoff e-commerce template (`ecommerce-shipping-cutoff`)
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 8
- Fork
- 4
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 34
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codercops/ogcops
-
Preview checker: a long `og:title` or `og:description` gets no warning when the page also has a normal title and descriptionCó thể đã có người làm @Imhamza86 đã nhận hôm nay. Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
codercops/ogcops#458 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Preview checker: a page that only has `og:image:url` is reported as having no imageCó thể đã có người làm @MugdhoAI đã nhận hôm nay. Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
codercops/ogcops#455 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URLCó thể làm lại được @CreatorguyS đã nhận 34 ngày trước và không có pull request nào đang mở. Đang mởbug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
codercops/ogcops#378 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue templates
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
codercops/ogcops#341 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của codercops/ogcops
Issue tương tự
-
clawsweeper:intake:bug clawsweeper:intake:needs-environment
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openclaw/openclaw#212827 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Use one constant for the 10,000-character input limitCó thể đã có người làm @NginxL đã nhận hôm nay. Đang mởgood first issue refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aniru-dh21/snap-validate#51 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
dependencies effort: small good first issue priority: low
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
TMHSDigital/screencast-mcp#509 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
from-review tech-debt testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
blamechris/chroxy#9520 ·
Maintainer thường phản hồi trong vòng 1 ngày