Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- tasks/brooklinen/solution/site/README.md +4 -0
- tasks/brooklinen/solution/site/implementation/Dockerfile +7 -0
- tasks/brooklinen/solution/site/implementation/README.md +5 -0
- tasks/brooklinen/solution/site/implementation/backend/model.json +435 -0
- tasks/brooklinen/solution/site/implementation/backend/runtime.json +104 -0
- tasks/brooklinen/solution/site/implementation/clone/app.py +581 -0
- tasks/brooklinen/solution/site/implementation/clone/backend/site_backend_integration.py +112 -0
- tasks/brooklinen/solution/site/implementation/clone/catalog.py +212 -0
- tasks/brooklinen/solution/site/implementation/clone/content.py +487 -0
- tasks/brooklinen/solution/site/implementation/clone/data/assets.json +0 -0
- tasks/brooklinen/solution/site/implementation/clone/data/catalog.json +0 -0
- tasks/brooklinen/solution/site/implementation/clone/data/p0-products.json +73 -0
- tasks/brooklinen/solution/site/implementation/clone/data/page-assets.json +345 -0
- tasks/brooklinen/solution/site/implementation/clone/data/swatches.json +0 -0
- tasks/brooklinen/solution/site/implementation/clone/requirements.txt +2 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/012126_BKL_Q1MarchLilos9149_x_PDP_WO_30df4e95-cf28-46e2-9108-06a745d4eb5a__600x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/12_Bedding_CuratedBundle_WashedClassic_TonalBundleInSeaSpray_Starter_1xa_PDP_WO__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/250723_WashedClassicOverhead7372x_PDP_WO_114fa573-eb14-4783-82cc-49283a67b8d1__600x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/36697cd395bb478e85b1f4219fedc6b0__600x.png +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK0655_1__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK07DE_1__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK3A1A_1__600x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK6CE2_1__1000x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK6CE2_1__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK92A8_1__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK9711_1__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_22-07_HomeFragrance_8ozCandle_BrightIdea_1x_WOgrey__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-01_Laundry_Bath_Wool_Dryer_Balls_1x_WOgrey__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_COR_1x_WOgrey_82b5b6f5-9a41-462d-a6d0-3bc087f02041__600x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_DUV_1x_WOgrey__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_PC_2x_WOgrey_4f1cac79-4ccf-4329-aba7-8468274ea4be__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_PC_2x_WOgrey_4f1cac79-4ccf-4329-aba7-8468274ea4be__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_PC_2x_WOgrey__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-06_Bedding_ClassicLuxe_Cream_PCDUVSet_1x_WOgrey_fc4a9704-1848-4b9c-ae18-192e0e17382__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-06_Bedding_ClassicLuxe_Cream_PCDUVSet_Bundle_1x_9c662093-d6da-4a58-8885-95f6123c8de__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-07_Bath_Robe_StripedMidnightNavy_Flat_1x_WOgrey_2cc0e48b-f194-4283-b0e6-919b0dbe6b1__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-08_Bedding_ClassicLuxe_Abyss_PCDUVSet_1x_WOgrey_9fa7e067-af2a-4b3e-9b68-470ac0e928d__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Robe_Smoke_Flat_1x_ec9384cd-1640-456e-9e12-ed2bb85b5d36__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Robe_White_Flat_1x_c16809ff-2055-4153-bbef-c918024fc2b2__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_BSB_Vanilla_White_1x_WOgrey__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_BTB_White_1x_WOgrey__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_Texture_White_1x_WOgrey_37268f01-3cfb-4306-80c5-41886a18f661__600x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_Texture_White_1x_WOgrey_8f6f8196-4d94-4f57-8812-f74a950e515b__600x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_Texture_White_1x_WOgrey_a942b2b4-8b56-4925-bc76-4f719060e345__600x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-11_Bath_Waffle_Texture_BotanicalGreen_1x_WOgrey_4ff97974-03a4-4425-8205-c85c96ac30e__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-12_Bath_WaffleTowels_Look6_HZx_PDP_WO_879969da-33ca-4bf3-8193-b1999b767345__600x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_24-01_Bath_RobeTowelBundle_White_1x_WOgrey_2_02111bec-c243-49f5-82c6-c78ae2c9dff7__150x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_24-01_Bath_Waffle_Robe_BotanicalGreen_Flat_1x_WOgrey__400x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_24-01_Bath_Waffle_Robe_White_Flat_1x_WOgrey__600x.jpg +3 -0
- tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_24-03_Bedding_Insert_Pillow_Throw_1x_WOgrey__400x.jpg +3 -0
tasks/brooklinen/solution/site/README.md
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Oracle support
|
| 2 |
+
|
| 3 |
+
The materializer assembles the frozen clone, backend, and reference adapter as
|
| 4 |
+
the private implementation. No additional oracle-only behavior is required.
|
tasks/brooklinen/solution/site/implementation/Dockerfile
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
+
WORKDIR /srv/reference
|
| 3 |
+
COPY . .
|
| 4 |
+
ENV HOST=0.0.0.0 PORT=8080 DATA_DIR=/tmp/websitebench-brooklinen-reference-data SEED=0 TZ=UTC
|
| 5 |
+
RUN ./compile.sh
|
| 6 |
+
HEALTHCHECK --interval=2s --timeout=3s --retries=30 CMD python3 -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/healthz', timeout=2)"
|
| 7 |
+
CMD ["./executable"]
|
tasks/brooklinen/solution/site/implementation/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Direct reference adapter
|
| 2 |
+
|
| 3 |
+
The materializer overlays these ABI files on the frozen Brooklinen clone and
|
| 4 |
+
backend. The same assembled bytes form the private oracle implementation; the
|
| 5 |
+
clone and backend are not duplicated in this authoring directory.
|
tasks/brooklinen/solution/site/implementation/backend/model.json
ADDED
|
@@ -0,0 +1,435 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "offline-clone.backend-model.v1",
|
| 3 |
+
"site_id": "brooklinen",
|
| 4 |
+
"status": "draft",
|
| 5 |
+
"profile": "offline-benchmark",
|
| 6 |
+
"database": {
|
| 7 |
+
"engine": "sqlite",
|
| 8 |
+
"location_policy": "runtime-data-outside-candidate",
|
| 9 |
+
"concurrency_model": "wal-transactional-single-writer",
|
| 10 |
+
"migration_strategy": "versioned-forward-migrations",
|
| 11 |
+
"deterministic_reset": true,
|
| 12 |
+
"restart_persistence": true,
|
| 13 |
+
"site_isolation": "one-database-per-site",
|
| 14 |
+
"proofs": [
|
| 15 |
+
{
|
| 16 |
+
"obligation": "data-location",
|
| 17 |
+
"status": "planned",
|
| 18 |
+
"evidence": []
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"obligation": "schema-migration",
|
| 22 |
+
"status": "planned",
|
| 23 |
+
"evidence": []
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"obligation": "deterministic-reset",
|
| 27 |
+
"status": "planned",
|
| 28 |
+
"evidence": []
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"obligation": "restart-persistence",
|
| 32 |
+
"status": "planned",
|
| 33 |
+
"evidence": []
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"obligation": "backup-restore",
|
| 37 |
+
"status": "planned",
|
| 38 |
+
"evidence": []
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"obligation": "concurrency",
|
| 42 |
+
"status": "planned",
|
| 43 |
+
"evidence": []
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
"auth_semantics": {
|
| 48 |
+
"account_database_scope": "site-isolated",
|
| 49 |
+
"credential_storage": "salted-scrypt-hash",
|
| 50 |
+
"session_storage": "opaque-cookie-digest-at-rest",
|
| 51 |
+
"registration_account_creation": "after-email-verification",
|
| 52 |
+
"verification_challenge_storage": "salted-hash",
|
| 53 |
+
"password_reset_enumeration": "indistinguishable-public-response",
|
| 54 |
+
"mail_default": "LOCAL_ONLY",
|
| 55 |
+
"mail_statuses": [
|
| 56 |
+
"LOCAL_ONLY",
|
| 57 |
+
"SMTP_PENDING",
|
| 58 |
+
"SMTP_SENT",
|
| 59 |
+
"SMTP_FAILED"
|
| 60 |
+
],
|
| 61 |
+
"smtp_activation": "explicit-complete-config-only",
|
| 62 |
+
"smtp_delivery_ceiling": 3,
|
| 63 |
+
"rejected_secret_journaling": "forbidden",
|
| 64 |
+
"legacy_write_policy": "read-compatible-write-rejected"
|
| 65 |
+
},
|
| 66 |
+
"common_capabilities": {
|
| 67 |
+
"account_registration": "account-registration",
|
| 68 |
+
"account_sign_in": "account-sign-in",
|
| 69 |
+
"session_lifecycle": "session-lifecycle",
|
| 70 |
+
"password_recovery": "password-recovery",
|
| 71 |
+
"email_delivery": "email-delivery"
|
| 72 |
+
},
|
| 73 |
+
"capabilities": [
|
| 74 |
+
{
|
| 75 |
+
"id": "account-registration",
|
| 76 |
+
"label": "Verified local account registration",
|
| 77 |
+
"priority": "p0",
|
| 78 |
+
"category": "authentication",
|
| 79 |
+
"implementation_status": "planned",
|
| 80 |
+
"entities": [
|
| 81 |
+
{
|
| 82 |
+
"name": "pending-registration",
|
| 83 |
+
"identity": "opaque pending id bound to one browser session",
|
| 84 |
+
"owner_scope": "session",
|
| 85 |
+
"persistence": "durable"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"name": "local-account",
|
| 89 |
+
"identity": "site-local account id and unique normalized email",
|
| 90 |
+
"owner_scope": "account",
|
| 91 |
+
"persistence": "durable"
|
| 92 |
+
}
|
| 93 |
+
],
|
| 94 |
+
"state_machine": {
|
| 95 |
+
"kind": "challenge-lifecycle",
|
| 96 |
+
"states": [
|
| 97 |
+
"collecting",
|
| 98 |
+
"pending-verification",
|
| 99 |
+
"verified",
|
| 100 |
+
"account-created",
|
| 101 |
+
"expired",
|
| 102 |
+
"locked"
|
| 103 |
+
],
|
| 104 |
+
"transitions": [
|
| 105 |
+
{
|
| 106 |
+
"from": "collecting",
|
| 107 |
+
"to": "pending-verification",
|
| 108 |
+
"trigger": "validated registration request"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"from": "pending-verification",
|
| 112 |
+
"to": "verified",
|
| 113 |
+
"trigger": "correct unexpired code within attempt budget"
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"from": "verified",
|
| 117 |
+
"to": "account-created",
|
| 118 |
+
"trigger": "transactional account creation and session rotation"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"from": "pending-verification",
|
| 122 |
+
"to": "expired",
|
| 123 |
+
"trigger": "challenge expiry"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"from": "pending-verification",
|
| 127 |
+
"to": "locked",
|
| 128 |
+
"trigger": "verification attempt budget exhausted"
|
| 129 |
+
}
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
"server_authorities": [
|
| 133 |
+
"The server normalizes identity and hashes password and code.",
|
| 134 |
+
"An account is created only after successful verification.",
|
| 135 |
+
"Duplicate normalized email creation is rejected transactionally."
|
| 136 |
+
],
|
| 137 |
+
"external_effect": "none",
|
| 138 |
+
"journey_ids": [],
|
| 139 |
+
"invariant_ids": [],
|
| 140 |
+
"proofs": {
|
| 141 |
+
"evidence": {},
|
| 142 |
+
"planned": [
|
| 143 |
+
"valid",
|
| 144 |
+
"invalid",
|
| 145 |
+
"duplicate",
|
| 146 |
+
"stale",
|
| 147 |
+
"foreign-owner",
|
| 148 |
+
"unauthorized-role",
|
| 149 |
+
"restart",
|
| 150 |
+
"migration",
|
| 151 |
+
"concurrency"
|
| 152 |
+
],
|
| 153 |
+
"not_applicable": []
|
| 154 |
+
}
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"id": "account-sign-in",
|
| 158 |
+
"label": "Password-based local account sign-in",
|
| 159 |
+
"priority": "p0",
|
| 160 |
+
"category": "authentication",
|
| 161 |
+
"implementation_status": "planned",
|
| 162 |
+
"entities": [
|
| 163 |
+
{
|
| 164 |
+
"name": "local-account",
|
| 165 |
+
"identity": "site-local account id and normalized email",
|
| 166 |
+
"owner_scope": "account",
|
| 167 |
+
"persistence": "durable"
|
| 168 |
+
}
|
| 169 |
+
],
|
| 170 |
+
"state_machine": {
|
| 171 |
+
"kind": "entity-lifecycle",
|
| 172 |
+
"states": [
|
| 173 |
+
"signed-out",
|
| 174 |
+
"identified",
|
| 175 |
+
"authenticated",
|
| 176 |
+
"rejected"
|
| 177 |
+
],
|
| 178 |
+
"transitions": [
|
| 179 |
+
{
|
| 180 |
+
"from": "signed-out",
|
| 181 |
+
"to": "identified",
|
| 182 |
+
"trigger": "normalized email submitted"
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"from": "identified",
|
| 186 |
+
"to": "authenticated",
|
| 187 |
+
"trigger": "constant-time password verification succeeds"
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"from": "identified",
|
| 191 |
+
"to": "rejected",
|
| 192 |
+
"trigger": "credentials are invalid"
|
| 193 |
+
}
|
| 194 |
+
]
|
| 195 |
+
},
|
| 196 |
+
"server_authorities": [
|
| 197 |
+
"The server verifies salted password hashes.",
|
| 198 |
+
"The server rotates the authenticated session.",
|
| 199 |
+
"Client-selected fixture identity is not authentication."
|
| 200 |
+
],
|
| 201 |
+
"external_effect": "none",
|
| 202 |
+
"journey_ids": [],
|
| 203 |
+
"invariant_ids": [],
|
| 204 |
+
"proofs": {
|
| 205 |
+
"evidence": {},
|
| 206 |
+
"planned": [
|
| 207 |
+
"valid",
|
| 208 |
+
"invalid",
|
| 209 |
+
"duplicate",
|
| 210 |
+
"stale",
|
| 211 |
+
"foreign-owner",
|
| 212 |
+
"unauthorized-role",
|
| 213 |
+
"restart",
|
| 214 |
+
"migration",
|
| 215 |
+
"concurrency"
|
| 216 |
+
],
|
| 217 |
+
"not_applicable": []
|
| 218 |
+
}
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"id": "session-lifecycle",
|
| 222 |
+
"label": "Anonymous and authenticated browser sessions",
|
| 223 |
+
"priority": "p0",
|
| 224 |
+
"category": "authentication",
|
| 225 |
+
"implementation_status": "planned",
|
| 226 |
+
"entities": [
|
| 227 |
+
{
|
| 228 |
+
"name": "browser-session",
|
| 229 |
+
"identity": "opaque cookie token with digest persisted at rest",
|
| 230 |
+
"owner_scope": "session",
|
| 231 |
+
"persistence": "durable"
|
| 232 |
+
}
|
| 233 |
+
],
|
| 234 |
+
"state_machine": {
|
| 235 |
+
"kind": "session-lifecycle",
|
| 236 |
+
"states": [
|
| 237 |
+
"anonymous",
|
| 238 |
+
"authenticated",
|
| 239 |
+
"revoked",
|
| 240 |
+
"expired"
|
| 241 |
+
],
|
| 242 |
+
"transitions": [
|
| 243 |
+
{
|
| 244 |
+
"from": "anonymous",
|
| 245 |
+
"to": "authenticated",
|
| 246 |
+
"trigger": "successful sign-in or registration rotates session"
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"from": "authenticated",
|
| 250 |
+
"to": "revoked",
|
| 251 |
+
"trigger": "sign-out or security reset"
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"from": "anonymous",
|
| 255 |
+
"to": "expired",
|
| 256 |
+
"trigger": "session expiry"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"from": "authenticated",
|
| 260 |
+
"to": "expired",
|
| 261 |
+
"trigger": "session expiry"
|
| 262 |
+
}
|
| 263 |
+
]
|
| 264 |
+
},
|
| 265 |
+
"server_authorities": [
|
| 266 |
+
"Raw session tokens are never stored in the database.",
|
| 267 |
+
"Ownership is resolved from the server-side session record.",
|
| 268 |
+
"Sign-out revokes server-side authority before deleting the cookie."
|
| 269 |
+
],
|
| 270 |
+
"external_effect": "none",
|
| 271 |
+
"journey_ids": [],
|
| 272 |
+
"invariant_ids": [],
|
| 273 |
+
"proofs": {
|
| 274 |
+
"evidence": {},
|
| 275 |
+
"planned": [
|
| 276 |
+
"valid",
|
| 277 |
+
"invalid",
|
| 278 |
+
"duplicate",
|
| 279 |
+
"stale",
|
| 280 |
+
"foreign-owner",
|
| 281 |
+
"unauthorized-role",
|
| 282 |
+
"restart",
|
| 283 |
+
"migration",
|
| 284 |
+
"concurrency"
|
| 285 |
+
],
|
| 286 |
+
"not_applicable": []
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"id": "password-recovery",
|
| 291 |
+
"label": "Enumeration-resistant local password recovery",
|
| 292 |
+
"priority": "p0",
|
| 293 |
+
"category": "authentication",
|
| 294 |
+
"implementation_status": "planned",
|
| 295 |
+
"entities": [
|
| 296 |
+
{
|
| 297 |
+
"name": "password-reset-challenge",
|
| 298 |
+
"identity": "opaque reset id bound to one browser session",
|
| 299 |
+
"owner_scope": "session",
|
| 300 |
+
"persistence": "durable"
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"name": "local-account",
|
| 304 |
+
"identity": "nullable concealed account binding",
|
| 305 |
+
"owner_scope": "account",
|
| 306 |
+
"persistence": "durable"
|
| 307 |
+
}
|
| 308 |
+
],
|
| 309 |
+
"state_machine": {
|
| 310 |
+
"kind": "challenge-lifecycle",
|
| 311 |
+
"states": [
|
| 312 |
+
"requested",
|
| 313 |
+
"verified",
|
| 314 |
+
"consumed",
|
| 315 |
+
"expired",
|
| 316 |
+
"locked"
|
| 317 |
+
],
|
| 318 |
+
"transitions": [
|
| 319 |
+
{
|
| 320 |
+
"from": "requested",
|
| 321 |
+
"to": "verified",
|
| 322 |
+
"trigger": "correct unexpired code within attempt budget"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"from": "verified",
|
| 326 |
+
"to": "consumed",
|
| 327 |
+
"trigger": "password is replaced and sessions are revoked"
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"from": "requested",
|
| 331 |
+
"to": "expired",
|
| 332 |
+
"trigger": "challenge expiry"
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"from": "requested",
|
| 336 |
+
"to": "locked",
|
| 337 |
+
"trigger": "verification attempt budget exhausted"
|
| 338 |
+
}
|
| 339 |
+
]
|
| 340 |
+
},
|
| 341 |
+
"server_authorities": [
|
| 342 |
+
"Known and unknown emails receive indistinguishable public responses.",
|
| 343 |
+
"Only the server binds a reset flow to an account.",
|
| 344 |
+
"Password replacement revokes prior authenticated sessions."
|
| 345 |
+
],
|
| 346 |
+
"external_effect": "local-only",
|
| 347 |
+
"journey_ids": [],
|
| 348 |
+
"invariant_ids": [],
|
| 349 |
+
"proofs": {
|
| 350 |
+
"evidence": {},
|
| 351 |
+
"planned": [
|
| 352 |
+
"valid",
|
| 353 |
+
"invalid",
|
| 354 |
+
"duplicate",
|
| 355 |
+
"stale",
|
| 356 |
+
"foreign-owner",
|
| 357 |
+
"unauthorized-role",
|
| 358 |
+
"restart",
|
| 359 |
+
"migration",
|
| 360 |
+
"concurrency"
|
| 361 |
+
],
|
| 362 |
+
"not_applicable": []
|
| 363 |
+
}
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"id": "email-delivery",
|
| 367 |
+
"label": "Truthful local verification and recovery mail outbox",
|
| 368 |
+
"priority": "p0",
|
| 369 |
+
"category": "communication",
|
| 370 |
+
"implementation_status": "planned",
|
| 371 |
+
"entities": [
|
| 372 |
+
{
|
| 373 |
+
"name": "mail-outbox-entry",
|
| 374 |
+
"identity": "site-local outbox id and purpose-bound flow id",
|
| 375 |
+
"owner_scope": "system",
|
| 376 |
+
"persistence": "durable"
|
| 377 |
+
}
|
| 378 |
+
],
|
| 379 |
+
"state_machine": {
|
| 380 |
+
"kind": "delivery-lifecycle",
|
| 381 |
+
"states": [
|
| 382 |
+
"local-only",
|
| 383 |
+
"smtp-pending",
|
| 384 |
+
"smtp-sent",
|
| 385 |
+
"smtp-failed"
|
| 386 |
+
],
|
| 387 |
+
"transitions": [
|
| 388 |
+
{
|
| 389 |
+
"from": "local-only",
|
| 390 |
+
"to": "smtp-pending",
|
| 391 |
+
"trigger": "operator enables complete explicit SMTP configuration"
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"from": "smtp-pending",
|
| 395 |
+
"to": "smtp-sent",
|
| 396 |
+
"trigger": "SMTP transport confirms delivery handoff"
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"from": "smtp-pending",
|
| 400 |
+
"to": "smtp-failed",
|
| 401 |
+
"trigger": "delivery attempt fails or ceiling is reached"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"from": "smtp-failed",
|
| 405 |
+
"to": "smtp-pending",
|
| 406 |
+
"trigger": "bounded idempotent retry below the delivery ceiling"
|
| 407 |
+
}
|
| 408 |
+
]
|
| 409 |
+
},
|
| 410 |
+
"server_authorities": [
|
| 411 |
+
"Offline mode records LOCAL_ONLY and never claims external delivery.",
|
| 412 |
+
"SMTP is disabled unless every required setting is present.",
|
| 413 |
+
"Claim, retry, and startup replay share one delivery ceiling."
|
| 414 |
+
],
|
| 415 |
+
"external_effect": "local-only",
|
| 416 |
+
"journey_ids": [],
|
| 417 |
+
"invariant_ids": [],
|
| 418 |
+
"proofs": {
|
| 419 |
+
"evidence": {},
|
| 420 |
+
"planned": [
|
| 421 |
+
"valid",
|
| 422 |
+
"invalid",
|
| 423 |
+
"duplicate",
|
| 424 |
+
"stale",
|
| 425 |
+
"foreign-owner",
|
| 426 |
+
"unauthorized-role",
|
| 427 |
+
"restart",
|
| 428 |
+
"migration",
|
| 429 |
+
"concurrency"
|
| 430 |
+
],
|
| 431 |
+
"not_applicable": []
|
| 432 |
+
}
|
| 433 |
+
}
|
| 434 |
+
]
|
| 435 |
+
}
|
tasks/brooklinen/solution/site/implementation/backend/runtime.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"database": {
|
| 3 |
+
"data_dir": "data",
|
| 4 |
+
"engine": "sqlite",
|
| 5 |
+
"filename": "brooklinen.sqlite3",
|
| 6 |
+
"legacy_unbound_migration": false,
|
| 7 |
+
"migration_hook": null,
|
| 8 |
+
"seed_hook": null,
|
| 9 |
+
"volume_identity": "websitebench-brooklinen-data"
|
| 10 |
+
},
|
| 11 |
+
"deployment": {
|
| 12 |
+
"profiles": {
|
| 13 |
+
"cloudflare-review": {
|
| 14 |
+
"mail_adapter": "redis-resend",
|
| 15 |
+
"payment_adapter": "local-sandbox",
|
| 16 |
+
"persistence": "ephemeral-reset"
|
| 17 |
+
},
|
| 18 |
+
"docker-volume": {
|
| 19 |
+
"mail_adapter": "effects-gateway",
|
| 20 |
+
"payment_adapter": "local-sandbox",
|
| 21 |
+
"persistence": "persistent-volume"
|
| 22 |
+
},
|
| 23 |
+
"offline-harbor": {
|
| 24 |
+
"mail_adapter": "local-outbox",
|
| 25 |
+
"payment_adapter": "local-sandbox",
|
| 26 |
+
"persistence": "persistent"
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"mail": {
|
| 31 |
+
"purposes": {
|
| 32 |
+
"password-reset": {
|
| 33 |
+
"body": "Your password reset code is ${code}.",
|
| 34 |
+
"expiry": "This code expires in ${minutes} minutes.",
|
| 35 |
+
"footer": "Ignore this message if you did not contact Brooklinen.",
|
| 36 |
+
"lead": "A password reset was requested for Brooklinen.",
|
| 37 |
+
"required_variables": [
|
| 38 |
+
"code",
|
| 39 |
+
"minutes"
|
| 40 |
+
],
|
| 41 |
+
"secret_variables": [
|
| 42 |
+
"code"
|
| 43 |
+
],
|
| 44 |
+
"subject": "Reset your Brooklinen password",
|
| 45 |
+
"template_id": "brooklinen.password-reset.v1"
|
| 46 |
+
},
|
| 47 |
+
"registration": {
|
| 48 |
+
"body": "Your verification code is ${code}.",
|
| 49 |
+
"expiry": "This code expires in ${minutes} minutes.",
|
| 50 |
+
"footer": "This code is only for Brooklinen.",
|
| 51 |
+
"lead": "Finish creating your Brooklinen account.",
|
| 52 |
+
"required_variables": [
|
| 53 |
+
"code",
|
| 54 |
+
"minutes"
|
| 55 |
+
],
|
| 56 |
+
"secret_variables": [
|
| 57 |
+
"code"
|
| 58 |
+
],
|
| 59 |
+
"subject": "Verify your Brooklinen account",
|
| 60 |
+
"template_id": "brooklinen.registration.v1"
|
| 61 |
+
}
|
| 62 |
+
},
|
| 63 |
+
"sender": {
|
| 64 |
+
"address_env": "RESEND_FROM_EMAIL",
|
| 65 |
+
"display_name": "Brooklinen"
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
"payments": {
|
| 69 |
+
"currency": "USD",
|
| 70 |
+
"default_adapter": "local-sandbox",
|
| 71 |
+
"local_sandbox": {
|
| 72 |
+
"scenarios": [
|
| 73 |
+
{
|
| 74 |
+
"display_label": "Simulated approval",
|
| 75 |
+
"id": "sandbox-approved",
|
| 76 |
+
"outcome": "approved"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"display_label": "Simulated decline",
|
| 80 |
+
"id": "sandbox-declined",
|
| 81 |
+
"outcome": "declined"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"display_label": "Simulated retry",
|
| 85 |
+
"id": "sandbox-retry",
|
| 86 |
+
"outcome": "retryable"
|
| 87 |
+
}
|
| 88 |
+
]
|
| 89 |
+
},
|
| 90 |
+
"stripe_test": null
|
| 91 |
+
},
|
| 92 |
+
"schema_version": "websitebench.site-backend-runtime.v1",
|
| 93 |
+
"session": {
|
| 94 |
+
"host_only": true,
|
| 95 |
+
"http_only": true,
|
| 96 |
+
"same_site": "Lax",
|
| 97 |
+
"secure": true
|
| 98 |
+
},
|
| 99 |
+
"site": {
|
| 100 |
+
"id": "brooklinen",
|
| 101 |
+
"label": "Brooklinen",
|
| 102 |
+
"public_origin": "https://brooklinen.offline.invalid"
|
| 103 |
+
}
|
| 104 |
+
}
|
tasks/brooklinen/solution/site/implementation/clone/app.py
ADDED
|
@@ -0,0 +1,581 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Brooklinen offline clone — WebsiteBench candidate application.
|
| 2 |
+
|
| 3 |
+
Serves the frozen source-derived catalogue, journeys and states entirely from
|
| 4 |
+
local data. No runtime remote request is made; carts, accounts, orders, mail and
|
| 5 |
+
payments are deterministic local sandbox effects.
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import math
|
| 11 |
+
import pathlib
|
| 12 |
+
import secrets
|
| 13 |
+
from typing import Any
|
| 14 |
+
|
| 15 |
+
from fastapi import FastAPI, Form, Query, Request
|
| 16 |
+
from fastapi.responses import HTMLResponse, JSONResponse, RedirectResponse, Response
|
| 17 |
+
from fastapi.staticfiles import StaticFiles
|
| 18 |
+
from fastapi.templating import Jinja2Templates
|
| 19 |
+
|
| 20 |
+
import catalog as cat
|
| 21 |
+
import content as C
|
| 22 |
+
import store
|
| 23 |
+
from backend.site_backend_integration import open_site_services
|
| 24 |
+
|
| 25 |
+
BASE = pathlib.Path(__file__).resolve().parent
|
| 26 |
+
SITE_ID = "brooklinen"
|
| 27 |
+
DISPLAY_NAME = "Brooklinen"
|
| 28 |
+
SESSION_COOKIE = "brooklinen_session"
|
| 29 |
+
BATCH_SIZE = 22 # source-observed first collection batch
|
| 30 |
+
PAYMENT_SCENARIOS = [
|
| 31 |
+
{"id": "sandbox-approved", "label": "Simulated approval"},
|
| 32 |
+
{"id": "sandbox-declined", "label": "Simulated decline"},
|
| 33 |
+
{"id": "sandbox-retry", "label": "Simulated retry"},
|
| 34 |
+
]
|
| 35 |
+
|
| 36 |
+
app = FastAPI(title=DISPLAY_NAME)
|
| 37 |
+
app.mount("/static", StaticFiles(directory=BASE / "static"), name="static")
|
| 38 |
+
app.mount("/assets", StaticFiles(directory=BASE / "static/assets"), name="assets")
|
| 39 |
+
templates = Jinja2Templates(directory=BASE / "frontend/templates")
|
| 40 |
+
templates.env.globals["display_name"] = DISPLAY_NAME
|
| 41 |
+
|
| 42 |
+
_backend = None
|
| 43 |
+
_auth = None
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
def services():
|
| 47 |
+
global _backend, _auth
|
| 48 |
+
if _backend is None:
|
| 49 |
+
_backend, _auth = open_site_services()
|
| 50 |
+
with _backend.lifecycle.connection() as conn:
|
| 51 |
+
store.ensure_schema(conn)
|
| 52 |
+
return _backend, _auth
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def conn():
|
| 56 |
+
backend, _ = services()
|
| 57 |
+
return backend.lifecycle.connection()
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
# ---------------------------------------------------------------- session
|
| 61 |
+
def session_token(request: Request) -> str:
|
| 62 |
+
return request.cookies.get(SESSION_COOKIE) or ""
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def ensure_session(request: Request, response: Response) -> str:
|
| 66 |
+
"""Bind the browser to a session issued by the local auth store."""
|
| 67 |
+
_, auth = services()
|
| 68 |
+
token = session_token(request)
|
| 69 |
+
issued, _state = auth.ensure_session(token or None)
|
| 70 |
+
if issued != token:
|
| 71 |
+
response.set_cookie(SESSION_COOKIE, issued, httponly=True, samesite="lax", path="/")
|
| 72 |
+
return issued
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def current_customer(token: str) -> dict | None:
|
| 76 |
+
_, auth = services()
|
| 77 |
+
if not token:
|
| 78 |
+
return None
|
| 79 |
+
try:
|
| 80 |
+
resolved = auth.resolve_session(token)
|
| 81 |
+
except Exception:
|
| 82 |
+
return None
|
| 83 |
+
if not resolved or not resolved.get("authenticated"):
|
| 84 |
+
return None
|
| 85 |
+
account = resolved.get("account") or {}
|
| 86 |
+
email = account.get("email_normalized")
|
| 87 |
+
if not email:
|
| 88 |
+
return None
|
| 89 |
+
import time as _time
|
| 90 |
+
return {"email": email, "display_name": account.get("display_name"),
|
| 91 |
+
"created_at": _time.strftime("%b %Y", _time.localtime(resolved.get("created_at", 0)))}
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
# ---------------------------------------------------------------- cart model
|
| 95 |
+
def cart_view(token: str) -> dict[str, Any]:
|
| 96 |
+
idx = cat.variant_index()
|
| 97 |
+
items, subtotal, savings = [], 0.0, 0.0
|
| 98 |
+
if token:
|
| 99 |
+
with conn() as c:
|
| 100 |
+
rows = store.cart_rows(c, token)
|
| 101 |
+
for variant_id, quantity in rows:
|
| 102 |
+
found = idx.get(variant_id)
|
| 103 |
+
if not found:
|
| 104 |
+
continue
|
| 105 |
+
handle, v = found
|
| 106 |
+
p = cat.catalog()["products"][handle]
|
| 107 |
+
unit = float(v["price"])
|
| 108 |
+
unit_sale = round(unit * (1 - cat.SITEWIDE_DISCOUNT), 2)
|
| 109 |
+
subtotal += unit_sale * quantity
|
| 110 |
+
savings += (unit - unit_sale) * quantity
|
| 111 |
+
items.append({
|
| 112 |
+
"variant_id": variant_id, "handle": handle, "title": p["title"],
|
| 113 |
+
"option1": v.get("option1"), "option2": v.get("option2"),
|
| 114 |
+
"quantity": quantity, "unit_price": unit, "unit_sale_price": unit_sale,
|
| 115 |
+
"on_sale": True,
|
| 116 |
+
"image": cat.img_url(v.get("image") or (p["images"][0] if p["images"] else None), cat.SWATCH),
|
| 117 |
+
})
|
| 118 |
+
remaining = max(0.0, cat.FREE_SHIPPING_THRESHOLD - subtotal)
|
| 119 |
+
return {
|
| 120 |
+
"lines": items,
|
| 121 |
+
"item_count": sum(i["quantity"] for i in items),
|
| 122 |
+
"subtotal": round(subtotal, 2),
|
| 123 |
+
"savings": round(savings, 2),
|
| 124 |
+
"free_shipping_remaining": round(remaining, 2),
|
| 125 |
+
"free_shipping_pct": min(100, int(subtotal / cat.FREE_SHIPPING_THRESHOLD * 100)) if subtotal else 0,
|
| 126 |
+
"shipping_label": "Free" if remaining <= 0 and subtotal else "TBD",
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
def base_ctx(request: Request, **extra) -> dict[str, Any]:
|
| 131 |
+
token = session_token(request)
|
| 132 |
+
ctx = {
|
| 133 |
+
"request": request,
|
| 134 |
+
"main_nav": C.MAIN_NAV,
|
| 135 |
+
"nav_panels": C.NAV_PANELS,
|
| 136 |
+
"nav_free_shipping": C.NAV_FREE_SHIPPING,
|
| 137 |
+
"footer_nav": C.FOOTER_NAV,
|
| 138 |
+
"announcement": C.ANNOUNCEMENTS[1],
|
| 139 |
+
"cart": cart_view(token),
|
| 140 |
+
"customer": current_customer(token),
|
| 141 |
+
"current_nav": request.url.path,
|
| 142 |
+
# The source raises this offer through a third-party script a few seconds into a
|
| 143 |
+
# first visit. Reproducing that timing would make every frame non-deterministic, so
|
| 144 |
+
# the clone exposes it as an explicit state instead of an automatic overlay.
|
| 145 |
+
"show_offer_modal": request.query_params.get("offer") == "1"
|
| 146 |
+
and request.cookies.get("bk_offer") is None,
|
| 147 |
+
"q": request.query_params.get("q"),
|
| 148 |
+
"request_path": request.url.path,
|
| 149 |
+
"newsletter_message": None,
|
| 150 |
+
"show_social_proof": request.url.path != "/",
|
| 151 |
+
}
|
| 152 |
+
ctx.update(extra)
|
| 153 |
+
return ctx
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
def render(name: str, request: Request, status_code: int = 200, **extra) -> HTMLResponse:
|
| 157 |
+
ctx = base_ctx(request, **extra)
|
| 158 |
+
response = templates.TemplateResponse(request, name, ctx, status_code=status_code)
|
| 159 |
+
ensure_session(request, response)
|
| 160 |
+
return response
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
# ---------------------------------------------------------------- health
|
| 164 |
+
@app.get("/healthz")
|
| 165 |
+
def healthz() -> dict[str, object]:
|
| 166 |
+
return {"ok": True, "site_id": SITE_ID}
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
# ---------------------------------------------------------------- home
|
| 170 |
+
@app.get("/", response_class=HTMLResponse)
|
| 171 |
+
def home(request: Request):
|
| 172 |
+
products = cat.catalog()["products"]
|
| 173 |
+
|
| 174 |
+
def module(spec):
|
| 175 |
+
return {"title": spec["title"],
|
| 176 |
+
"products": [products[h] for h in spec["handles"] if h in products]}
|
| 177 |
+
|
| 178 |
+
categories = [dict(c) for c in C.HOME_CATEGORIES]
|
| 179 |
+
spotlight = [dict(s) for s in C.HOME_SPOTLIGHT]
|
| 180 |
+
duo = dict(C.DUO_SHOP)
|
| 181 |
+
duo["products"] = [products[h] for h in duo["handles"] if h in products]
|
| 182 |
+
duo["image"] = (duo["products"][0]["card_image"] if duo["products"] else None)
|
| 183 |
+
return render("home.html", request,
|
| 184 |
+
hero=dict(C.HOME_HERO), new_hero=dict(C.NEW_HERO),
|
| 185 |
+
collection_module=module(C.HOME_COLLECTION),
|
| 186 |
+
new_arrivals_module=module(C.HOME_NEW_ARRIVALS),
|
| 187 |
+
categories=categories, duo=duo, reviews=C.HOME_REVIEWS,
|
| 188 |
+
spotlight=spotlight, press=C.PRESS, stores=C.STORES)
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
# ---------------------------------------------------------------- landing pages
|
| 192 |
+
@app.get("/pages/{slug}", response_class=HTMLResponse)
|
| 193 |
+
def page(request: Request, slug: str):
|
| 194 |
+
if slug in C.LANDING_PAGES:
|
| 195 |
+
spec = C.LANDING_PAGES[slug]
|
| 196 |
+
rows, used = [], set()
|
| 197 |
+
for row in spec["rows"]:
|
| 198 |
+
kind = row.get("kind", "products")
|
| 199 |
+
if kind != "products":
|
| 200 |
+
rows.append({**row, "kind": kind})
|
| 201 |
+
continue
|
| 202 |
+
col = cat.collection(row["collection"])
|
| 203 |
+
if not col:
|
| 204 |
+
continue
|
| 205 |
+
pool = cat.products_for(col["product_handles"])
|
| 206 |
+
wanted = row.get("bundle_type")
|
| 207 |
+
if wanted:
|
| 208 |
+
pool = [p for p in pool if wanted in p["facets"].get("bundle_type", [])]
|
| 209 |
+
# Two source rows share one bundle-type tag; keep their products distinct.
|
| 210 |
+
fresh = [p for p in pool if p["handle"] not in used] or pool
|
| 211 |
+
picked = fresh[: row["limit"]]
|
| 212 |
+
used.update(p["handle"] for p in picked)
|
| 213 |
+
rows.append({"kind": "products", "id": row.get("id"), "title": row["title"],
|
| 214 |
+
"url": row.get("url"), "includes": row.get("includes"),
|
| 215 |
+
"products": picked})
|
| 216 |
+
fabrics = []
|
| 217 |
+
for i, f in enumerate(spec["fabrics"]):
|
| 218 |
+
image = f.get("image")
|
| 219 |
+
if not image:
|
| 220 |
+
handle = f["url"].rsplit("/", 1)[-1]
|
| 221 |
+
col = cat.collection(handle) or cat.collection("all-towels")
|
| 222 |
+
sample = cat.products_for(col["product_handles"][i: i + 1])
|
| 223 |
+
image = sample[0]["card_image"] if sample else None
|
| 224 |
+
fabrics.append({**f, "image": image})
|
| 225 |
+
spotlight = []
|
| 226 |
+
for i, sp in enumerate(spec.get("spotlight", [])):
|
| 227 |
+
col = cat.collection(sp["url"].rsplit("/", 1)[-1]) or cat.collection("best-sellers")
|
| 228 |
+
sample = cat.products_for(col["product_handles"][i: i + 1])
|
| 229 |
+
spotlight.append({**sp, "image": sample[0]["card_image"] if sample else None})
|
| 230 |
+
page_ctx = {**spec, "slug": slug, "rows": rows, "fabrics": fabrics, "spotlight": spotlight}
|
| 231 |
+
return render("landing.html", request, page=page_ctx)
|
| 232 |
+
if slug in C.CONTENT_PAGES:
|
| 233 |
+
title, body = C.CONTENT_PAGES[slug]
|
| 234 |
+
return render("content.html", request, page={"title": title, "body": body})
|
| 235 |
+
return render("notfound.html", request, status_code=404)
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
# ---------------------------------------------------------------- collections
|
| 239 |
+
@app.get("/collections/{handle}", response_class=HTMLResponse)
|
| 240 |
+
def collection(request: Request, handle: str, batch: int = Query(1, ge=1)):
|
| 241 |
+
col = cat.collection(handle)
|
| 242 |
+
if not col:
|
| 243 |
+
return render("notfound.html", request, status_code=404)
|
| 244 |
+
products = cat.products_for(col["product_handles"])
|
| 245 |
+
|
| 246 |
+
selected: dict[str, list[str]] = {}
|
| 247 |
+
for key, _label in cat.FACET_GROUPS:
|
| 248 |
+
values = request.query_params.getlist(key)
|
| 249 |
+
if values:
|
| 250 |
+
selected[key] = values
|
| 251 |
+
|
| 252 |
+
def matches(p):
|
| 253 |
+
return all(any(v in p["facets"].get(key, []) for v in values)
|
| 254 |
+
for key, values in selected.items())
|
| 255 |
+
|
| 256 |
+
# Facet counts come from the products the *other* selected facets still allow, so a
|
| 257 |
+
# group never hides its own alternatives.
|
| 258 |
+
facets = []
|
| 259 |
+
for key, label in cat.FACET_GROUPS:
|
| 260 |
+
others = {k: v for k, v in selected.items() if k != key}
|
| 261 |
+
pool = [p for p in products
|
| 262 |
+
if all(any(v in p["facets"].get(k, []) for v in vals) for k, vals in others.items())]
|
| 263 |
+
counts: dict[str, int] = {}
|
| 264 |
+
for p in pool:
|
| 265 |
+
for value in p["facets"].get(key, []):
|
| 266 |
+
counts[value] = counts.get(value, 0) + 1
|
| 267 |
+
if not counts:
|
| 268 |
+
continue
|
| 269 |
+
order = cat.FACET_ORDER.get(key)
|
| 270 |
+
names = ([v for v in order if v in counts] + sorted(k for k in counts if k not in order)
|
| 271 |
+
if order else sorted(counts))
|
| 272 |
+
facets.append({"name": key, "label": label,
|
| 273 |
+
"options": [{"value": v, "count": counts[v],
|
| 274 |
+
"checked": v in selected.get(key, [])} for v in names]})
|
| 275 |
+
|
| 276 |
+
filtered = [p for p in products if matches(p)]
|
| 277 |
+
total = len(filtered)
|
| 278 |
+
shown = filtered[: BATCH_SIZE * batch]
|
| 279 |
+
query = "".join(f"&{k}={v}" for k, values in selected.items() for v in values)
|
| 280 |
+
return render("collection.html", request, collection=col, products=shown, total=total,
|
| 281 |
+
facets=facets, has_more=len(shown) < total,
|
| 282 |
+
more_url=f"/collections/{handle}?batch={batch + 1}{query}",
|
| 283 |
+
lede=C.COLLECTION_LEDE.get(handle),
|
| 284 |
+
fabrics=C.COLLECTION_FABRICS.get(handle),
|
| 285 |
+
active_filters=sum(len(v) for v in selected.values()))
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
# ---------------------------------------------------------------- product
|
| 289 |
+
@app.get("/products/{handle}", response_class=HTMLResponse)
|
| 290 |
+
def product(request: Request, handle: str, variant: int | None = None,
|
| 291 |
+
image: int = 0, added: bool = False):
|
| 292 |
+
data = cat.catalog()["products"]
|
| 293 |
+
p = data.get(handle)
|
| 294 |
+
if not p:
|
| 295 |
+
return render("notfound.html", request, status_code=404)
|
| 296 |
+
variants = p["variants"]
|
| 297 |
+
selected = next((v for v in variants if v["id"] == variant), variants[0])
|
| 298 |
+
colors, seen = [], set()
|
| 299 |
+
for v in variants:
|
| 300 |
+
if v.get("option1") in seen:
|
| 301 |
+
continue
|
| 302 |
+
seen.add(v.get("option1"))
|
| 303 |
+
meta = cat.swatch_table().get(v.get("option1") or "", {})
|
| 304 |
+
colors.append({"id": v["id"], "title": v.get("option1"), "hex": meta.get("hex"),
|
| 305 |
+
"description": meta.get("description"),
|
| 306 |
+
"swatch": cat.img_url(v.get("image"), cat.SWATCH)})
|
| 307 |
+
sizes = []
|
| 308 |
+
if len(p["options"]) > 1:
|
| 309 |
+
for v in variants:
|
| 310 |
+
if v.get("option1") == selected.get("option1") and v.get("option2"):
|
| 311 |
+
sizes.append({"id": v["id"], "label": v["option2"]})
|
| 312 |
+
gallery_srcs = p["images"][:4]
|
| 313 |
+
gallery = [{"thumb": cat.img_url(s, cat.HERO if i == 0 else cat.GALLERY)}
|
| 314 |
+
for i, s in enumerate(gallery_srcs)]
|
| 315 |
+
image = max(0, min(image, len(gallery_srcs) - 1)) if gallery_srcs else 0
|
| 316 |
+
hero = None
|
| 317 |
+
if selected.get("image") and image == 0:
|
| 318 |
+
hero = cat.img_url(selected["image"], cat.HERO) or cat.img_url(selected["image"], cat.GALLERY)
|
| 319 |
+
if hero is None and gallery_srcs:
|
| 320 |
+
hero = cat.img_url(gallery_srcs[image], cat.HERO if image == 0 else cat.GALLERY)
|
| 321 |
+
unit = float(selected["price"])
|
| 322 |
+
view = {
|
| 323 |
+
**p,
|
| 324 |
+
"lede": _lede(p),
|
| 325 |
+
"social_note": f"{40 + (p['id'] % 60)} people have this in their cart right now.",
|
| 326 |
+
"details": [
|
| 327 |
+
{"title": "Details", "body": p["body_html"]},
|
| 328 |
+
{"title": "Shipping & Returns", "body": "<p>Free ground shipping within the contiguous U.S. on orders "
|
| 329 |
+
"of $100+, before tax. 365-day happiness guarantee.</p>"},
|
| 330 |
+
{"title": "Care", "body": "<p>Machine wash cold, tumble dry low. Skip fabric softener.</p>"},
|
| 331 |
+
],
|
| 332 |
+
}
|
| 333 |
+
selected_view = {**selected, "price": unit,
|
| 334 |
+
"sale_price": round(unit * (1 - cat.SITEWIDE_DISCOUNT), 2),
|
| 335 |
+
"color_description": cat.swatch_table()
|
| 336 |
+
.get(selected.get("option1") or "", {}).get("description")}
|
| 337 |
+
related = cat.products_for(
|
| 338 |
+
[h for h in (cat.collection("all-towels") or {"product_handles": []})["product_handles"] if h != handle][:4]
|
| 339 |
+
)
|
| 340 |
+
return render("product.html", request, product=view, variant=selected_view, colors=colors,
|
| 341 |
+
sizes=sizes, gallery=gallery, hero_image=hero, image_index=image,
|
| 342 |
+
related=related, added=added)
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
def _lede(p: dict) -> str:
|
| 346 |
+
import re
|
| 347 |
+
text = re.sub(r"<[^>]+>", " ", p["body_html"])
|
| 348 |
+
text = re.sub(r"\s+", " ", text).strip()
|
| 349 |
+
return text[:150] + ("…" if len(text) > 150 else "")
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
# ---------------------------------------------------------------- cart routes
|
| 353 |
+
@app.get("/cart", response_class=HTMLResponse)
|
| 354 |
+
def cart_page(request: Request):
|
| 355 |
+
return render("cart.html", request)
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
@app.get("/cart.js")
|
| 359 |
+
def cart_js(request: Request):
|
| 360 |
+
view = cart_view(session_token(request))
|
| 361 |
+
return JSONResponse({
|
| 362 |
+
"item_count": view["item_count"],
|
| 363 |
+
"total_price": int(round(view["subtotal"] * 100)),
|
| 364 |
+
"items": [{"variant_id": i["variant_id"], "title": i["title"], "quantity": i["quantity"],
|
| 365 |
+
"line_price": int(round(i["unit_sale_price"] * i["quantity"] * 100)),
|
| 366 |
+
"options_with_values": [{"name": "Color", "value": i["option1"]}]}
|
| 367 |
+
for i in view["lines"]],
|
| 368 |
+
})
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
@app.post("/cart/add")
|
| 372 |
+
def cart_add(request: Request, variant_id: int = Form(...), quantity: int = Form(1)):
|
| 373 |
+
idx = cat.variant_index()
|
| 374 |
+
if variant_id not in idx:
|
| 375 |
+
return RedirectResponse("/cart", status_code=303)
|
| 376 |
+
handle, _ = idx[variant_id]
|
| 377 |
+
response = RedirectResponse(f"/products/{handle}?variant={variant_id}&added=true", status_code=303)
|
| 378 |
+
token = ensure_session(request, response)
|
| 379 |
+
with conn() as c:
|
| 380 |
+
store.cart_add(c, token, variant_id, max(1, quantity))
|
| 381 |
+
return response
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
@app.post("/cart/change")
|
| 385 |
+
def cart_change(request: Request, variant_id: int = Form(...), quantity: int = Form(...)):
|
| 386 |
+
response = RedirectResponse("/cart", status_code=303)
|
| 387 |
+
token = ensure_session(request, response)
|
| 388 |
+
with conn() as c:
|
| 389 |
+
store.cart_set(c, token, variant_id, quantity)
|
| 390 |
+
return response
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
@app.post("/cart/remove")
|
| 394 |
+
def cart_remove(request: Request, variant_id: int = Form(...)):
|
| 395 |
+
response = RedirectResponse("/cart", status_code=303)
|
| 396 |
+
token = ensure_session(request, response)
|
| 397 |
+
with conn() as c:
|
| 398 |
+
store.cart_remove(c, token, variant_id)
|
| 399 |
+
return response
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
# ---------------------------------------------------------------- search
|
| 403 |
+
@app.get("/search", response_class=HTMLResponse)
|
| 404 |
+
def search(request: Request, q: str = ""):
|
| 405 |
+
query = (q or "").strip().lower()
|
| 406 |
+
results = []
|
| 407 |
+
if query:
|
| 408 |
+
for p in cat.catalog()["products"].values():
|
| 409 |
+
haystack = f"{p['title']} {p['product_type']} {' '.join(p['tags'])}".lower()
|
| 410 |
+
if query in haystack:
|
| 411 |
+
results.append(p)
|
| 412 |
+
results.sort(key=lambda p: (query not in p["title"].lower(), p["title"]))
|
| 413 |
+
return render("search.html", request, q=q, products=results[:48], total=len(results))
|
| 414 |
+
|
| 415 |
+
|
| 416 |
+
# ---------------------------------------------------------------- offer modal
|
| 417 |
+
@app.post("/offer/dismiss")
|
| 418 |
+
def offer_dismiss(request: Request, choice: str = Form("close")):
|
| 419 |
+
referer = request.headers.get("referer") or "/"
|
| 420 |
+
response = RedirectResponse(referer, status_code=303)
|
| 421 |
+
response.set_cookie("bk_offer", choice, max_age=60 * 60 * 24, samesite="lax", path="/")
|
| 422 |
+
return response
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
@app.post("/newsletter")
|
| 426 |
+
def newsletter(request: Request, email: str = Form(...)):
|
| 427 |
+
response = RedirectResponse(request.headers.get("referer") or "/", status_code=303)
|
| 428 |
+
with conn() as c:
|
| 429 |
+
store.newsletter_add(c, email)
|
| 430 |
+
store.outbox_add(c, email, "Welcome to the list",
|
| 431 |
+
"Thanks for signing up for Brooklinen news and offers.")
|
| 432 |
+
return response
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
# ---------------------------------------------------------------- account
|
| 436 |
+
ACCOUNT_NAV = [
|
| 437 |
+
{"label": "Orders", "url": "/account/orders"},
|
| 438 |
+
{"label": "Profile", "url": "/account/profile"},
|
| 439 |
+
{"label": "My Rewards", "url": "/account/rewards"},
|
| 440 |
+
{"label": "Wishlist", "url": "/account/wishlist"},
|
| 441 |
+
]
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
@app.get("/account", response_class=HTMLResponse)
|
| 445 |
+
def account_root(request: Request):
|
| 446 |
+
return RedirectResponse("/account/orders", status_code=303)
|
| 447 |
+
|
| 448 |
+
|
| 449 |
+
@app.get("/account/{view}", response_class=HTMLResponse)
|
| 450 |
+
def account_view(request: Request, view: str):
|
| 451 |
+
if view in {"login", "register", "reset"}:
|
| 452 |
+
name = "register.html" if view == "register" else "login.html"
|
| 453 |
+
return render(name, request, stage=request.query_params.get("stage"),
|
| 454 |
+
email=request.cookies.get("bk_pending_email"))
|
| 455 |
+
customer = current_customer(session_token(request))
|
| 456 |
+
if not customer:
|
| 457 |
+
return RedirectResponse("/account/login", status_code=303)
|
| 458 |
+
if view not in {"orders", "profile", "rewards", "wishlist"}:
|
| 459 |
+
return render("notfound.html", request, status_code=404)
|
| 460 |
+
orders = []
|
| 461 |
+
if view == "orders":
|
| 462 |
+
with conn() as c:
|
| 463 |
+
orders = store.orders_for(c, customer["email"])
|
| 464 |
+
heading = {"orders": "Orders", "profile": "Profile", "rewards": "My Rewards",
|
| 465 |
+
"wishlist": "Wishlist"}[view]
|
| 466 |
+
return render("account.html", request, view=view, heading=heading, orders=orders,
|
| 467 |
+
account_nav=ACCOUNT_NAV, rewards={"points": 0})
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
@app.post("/account/login")
|
| 471 |
+
def account_login(request: Request, email: str = Form(...), password: str = Form(...)):
|
| 472 |
+
_, auth = services()
|
| 473 |
+
response = RedirectResponse("/account/orders", status_code=303)
|
| 474 |
+
token = ensure_session(request, response)
|
| 475 |
+
try:
|
| 476 |
+
result = auth.sign_in(token, email=email, password=password)
|
| 477 |
+
except Exception:
|
| 478 |
+
return render("login.html", request, error="Incorrect email or password.", email=email)
|
| 479 |
+
rotated = (result or {}).get("session_token")
|
| 480 |
+
if rotated and rotated != token:
|
| 481 |
+
with conn() as c:
|
| 482 |
+
store.cart_merge(c, token, rotated)
|
| 483 |
+
response.set_cookie(SESSION_COOKIE, rotated, httponly=True, samesite="lax", path="/")
|
| 484 |
+
return response
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
@app.post("/account/logout")
|
| 488 |
+
def account_logout(request: Request):
|
| 489 |
+
_, auth = services()
|
| 490 |
+
response = RedirectResponse("/", status_code=303)
|
| 491 |
+
try:
|
| 492 |
+
auth.sign_out(session_token(request))
|
| 493 |
+
except Exception:
|
| 494 |
+
pass
|
| 495 |
+
return response
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
@app.post("/account/register")
|
| 499 |
+
def account_register(request: Request, email: str = Form(...), password: str = Form(...)):
|
| 500 |
+
_, auth = services()
|
| 501 |
+
response = RedirectResponse("/account/register?stage=verify", status_code=303)
|
| 502 |
+
token = ensure_session(request, response)
|
| 503 |
+
response.set_cookie("bk_pending_email", email, max_age=1800, samesite="lax", path="/")
|
| 504 |
+
try:
|
| 505 |
+
auth.start_registration(token, email=email, display_name=email.split("@")[0],
|
| 506 |
+
password=password, restart_invalid_flow=True)
|
| 507 |
+
except Exception: # deterministic, non-enumerating message
|
| 508 |
+
return render("register.html", request, error="We could not start that registration.",
|
| 509 |
+
email=email)
|
| 510 |
+
mail = auth.local_mail_for_session(token, purpose="registration") or {}
|
| 511 |
+
code = mail.get("verification_code")
|
| 512 |
+
body = f"Your verification code is {code}." if code else "Your verification code is in the local auth store."
|
| 513 |
+
with conn() as c:
|
| 514 |
+
store.outbox_add(c, email, "Verify your Brooklinen account", body)
|
| 515 |
+
return response
|
| 516 |
+
|
| 517 |
+
|
| 518 |
+
@app.post("/account/register/verify")
|
| 519 |
+
def account_register_verify(request: Request, code: str = Form(...)):
|
| 520 |
+
_, auth = services()
|
| 521 |
+
token = session_token(request)
|
| 522 |
+
email = request.cookies.get("bk_pending_email", "")
|
| 523 |
+
try:
|
| 524 |
+
auth.verify_registration_code(token, code)
|
| 525 |
+
completed = auth.complete_registration(token)
|
| 526 |
+
except Exception:
|
| 527 |
+
return render("register.html", request, stage="verify", email=email,
|
| 528 |
+
error="That code did not match. Check the local outbox and try again.")
|
| 529 |
+
response = RedirectResponse("/account/orders", status_code=303)
|
| 530 |
+
rotated = completed.get("session_token")
|
| 531 |
+
if rotated and rotated != token:
|
| 532 |
+
with conn() as c:
|
| 533 |
+
store.cart_merge(c, token, rotated)
|
| 534 |
+
response.set_cookie(SESSION_COOKIE, rotated, httponly=True, samesite="lax", path="/")
|
| 535 |
+
response.delete_cookie("bk_pending_email", path="/")
|
| 536 |
+
return response
|
| 537 |
+
|
| 538 |
+
|
| 539 |
+
@app.get("/checkout", response_class=HTMLResponse)
|
| 540 |
+
def checkout(request: Request):
|
| 541 |
+
token = session_token(request)
|
| 542 |
+
view = cart_view(token)
|
| 543 |
+
if not view["lines"]:
|
| 544 |
+
return RedirectResponse("/cart", status_code=303)
|
| 545 |
+
return render("checkout.html", request, scenarios=PAYMENT_SCENARIOS)
|
| 546 |
+
|
| 547 |
+
|
| 548 |
+
@app.post("/checkout")
|
| 549 |
+
def checkout_submit(request: Request, email: str = Form(...), scenario: str = Form("sandbox-approved")):
|
| 550 |
+
token = session_token(request)
|
| 551 |
+
view = cart_view(token)
|
| 552 |
+
if not view["lines"]:
|
| 553 |
+
return RedirectResponse("/cart", status_code=303)
|
| 554 |
+
customer = current_customer(token)
|
| 555 |
+
account_email = (customer or {}).get("email") or email
|
| 556 |
+
with conn() as c:
|
| 557 |
+
order = store.create_order(
|
| 558 |
+
c, session_token=token, account_email=account_email, subtotal=view["subtotal"],
|
| 559 |
+
lines=[{"variant_id": l["variant_id"], "title": l["title"], "quantity": l["quantity"],
|
| 560 |
+
"price": l["unit_sale_price"]} for l in view["lines"]],
|
| 561 |
+
scenario=scenario,
|
| 562 |
+
)
|
| 563 |
+
if order["outcome"] == "approved":
|
| 564 |
+
store.cart_clear(c, token)
|
| 565 |
+
store.outbox_add(c, account_email, f"Your Brooklinen order {order['number']}",
|
| 566 |
+
f"We received your order {order['number']} for "
|
| 567 |
+
f"${view['subtotal']:.2f}. This is a local sandbox order.")
|
| 568 |
+
return render("order.html", request, order=order, total=view["subtotal"], email=account_email)
|
| 569 |
+
|
| 570 |
+
|
| 571 |
+
@app.get("/dev/outbox", response_class=HTMLResponse)
|
| 572 |
+
def outbox(request: Request):
|
| 573 |
+
with conn() as c:
|
| 574 |
+
messages = store.outbox_all(c)
|
| 575 |
+
return render("outbox.html", request, messages=messages)
|
| 576 |
+
|
| 577 |
+
|
| 578 |
+
# ---------------------------------------------------------------- fallback
|
| 579 |
+
@app.exception_handler(404)
|
| 580 |
+
async def not_found(request: Request, exc): # noqa: ANN001
|
| 581 |
+
return render("notfound.html", request, status_code=404)
|
tasks/brooklinen/solution/site/implementation/clone/backend/site_backend_integration.py
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Generated, site-bound backend integration seam."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import importlib
|
| 6 |
+
import json
|
| 7 |
+
import os
|
| 8 |
+
import sqlite3
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from typing import Any, Callable
|
| 11 |
+
|
| 12 |
+
from websitebench.local_clone_auth import LocalAuthStore
|
| 13 |
+
from websitebench.site_backend import (
|
| 14 |
+
SiteBackend,
|
| 15 |
+
load_runtime,
|
| 16 |
+
serve_jsonl,
|
| 17 |
+
validate_allowlist,
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
DEFAULT_RUNTIME_PATH = (
|
| 22 |
+
Path(__file__).resolve().parents[2] / "backend" / "runtime.json"
|
| 23 |
+
)
|
| 24 |
+
BRIDGE_DESCRIPTOR_PATH = (
|
| 25 |
+
Path(__file__).resolve().parents[2] / "backend" / "node-bridge.json"
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def _declared_hook(
|
| 30 |
+
declaration: str | None,
|
| 31 |
+
) -> Callable[[sqlite3.Connection], None] | None:
|
| 32 |
+
if declaration is None:
|
| 33 |
+
return None
|
| 34 |
+
module_name, function_name = declaration.split(":", 1)
|
| 35 |
+
module = importlib.import_module(module_name)
|
| 36 |
+
hook: Any = getattr(module, function_name, None)
|
| 37 |
+
if not callable(hook):
|
| 38 |
+
raise RuntimeError(f"declared backend hook is not callable: {declaration}")
|
| 39 |
+
actual = f"{hook.__module__}:{hook.__name__}"
|
| 40 |
+
if actual != declaration:
|
| 41 |
+
raise RuntimeError(
|
| 42 |
+
f"declared backend hook resolved as {actual!r}, expected {declaration!r}"
|
| 43 |
+
)
|
| 44 |
+
return hook
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def open_site_services() -> tuple[SiteBackend, LocalAuthStore]:
|
| 48 |
+
"""Open one bound database; never omit the site id for permanent auth."""
|
| 49 |
+
|
| 50 |
+
runtime_path = Path(
|
| 51 |
+
os.environ.get(
|
| 52 |
+
"WEBSITEBENCH_SITE_BACKEND_RUNTIME",
|
| 53 |
+
str(DEFAULT_RUNTIME_PATH),
|
| 54 |
+
)
|
| 55 |
+
).resolve()
|
| 56 |
+
runtime = load_runtime(runtime_path)
|
| 57 |
+
migration_hook = _declared_hook(runtime.migration_hook)
|
| 58 |
+
seed_hook = _declared_hook(runtime.seed_hook)
|
| 59 |
+
deployed_database = os.environ.get(
|
| 60 |
+
"WEBSITEBENCH_SITE_BACKEND_DATABASE",
|
| 61 |
+
)
|
| 62 |
+
if deployed_database is None:
|
| 63 |
+
backend = SiteBackend.open(
|
| 64 |
+
runtime_path,
|
| 65 |
+
migration_hook=migration_hook,
|
| 66 |
+
seed_hook=seed_hook,
|
| 67 |
+
)
|
| 68 |
+
else:
|
| 69 |
+
database_path = Path(deployed_database).resolve()
|
| 70 |
+
if database_path.name != runtime.database_filename:
|
| 71 |
+
raise RuntimeError(
|
| 72 |
+
"deployed database filename does not match runtime contract"
|
| 73 |
+
)
|
| 74 |
+
backend = SiteBackend.open(
|
| 75 |
+
json.loads(runtime_path.read_text(encoding="utf-8")),
|
| 76 |
+
data_root=database_path.parent,
|
| 77 |
+
migration_hook=migration_hook,
|
| 78 |
+
seed_hook=seed_hook,
|
| 79 |
+
)
|
| 80 |
+
if backend.lifecycle.database_path != database_path:
|
| 81 |
+
raise RuntimeError(
|
| 82 |
+
"deployed database path does not match backend preflight"
|
| 83 |
+
)
|
| 84 |
+
backend.lifecycle.initialize()
|
| 85 |
+
auth = LocalAuthStore(
|
| 86 |
+
backend.lifecycle.database_path,
|
| 87 |
+
site_id=backend.config.site_id,
|
| 88 |
+
)
|
| 89 |
+
auth.ensure_schema()
|
| 90 |
+
return backend, auth
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def run_stdio_bridge() -> None:
|
| 94 |
+
"""Run only operations frozen in this site's descriptor."""
|
| 95 |
+
|
| 96 |
+
backend, auth = open_site_services()
|
| 97 |
+
descriptor = json.loads(BRIDGE_DESCRIPTOR_PATH.read_text(encoding="utf-8"))
|
| 98 |
+
allowed = validate_allowlist(
|
| 99 |
+
descriptor,
|
| 100 |
+
expected_site_id=backend.config.site_id,
|
| 101 |
+
)
|
| 102 |
+
serve_jsonl(backend, auth, allowed, sys.stdin, sys.stdout)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
if __name__ == "__main__":
|
| 106 |
+
import argparse
|
| 107 |
+
import sys
|
| 108 |
+
|
| 109 |
+
parser = argparse.ArgumentParser(prog="websitebench-node-backend-bridge")
|
| 110 |
+
parser.add_argument("--stdio", action="store_true", required=True)
|
| 111 |
+
parser.parse_args()
|
| 112 |
+
run_stdio_bridge()
|
tasks/brooklinen/solution/site/implementation/clone/catalog.py
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Read-only catalogue view over the frozen, source-derived product data.
|
| 2 |
+
|
| 3 |
+
Every image path resolves to a byte-exact local file under static/assets/img;
|
| 4 |
+
the clone makes no runtime remote request.
|
| 5 |
+
"""
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
import json
|
| 9 |
+
import pathlib
|
| 10 |
+
import re
|
| 11 |
+
from functools import lru_cache
|
| 12 |
+
|
| 13 |
+
BASE = pathlib.Path(__file__).resolve().parent
|
| 14 |
+
DATA = BASE / "data"
|
| 15 |
+
IMG_DIR = BASE / "static/assets/img"
|
| 16 |
+
PAGE_DIR = BASE / "static/assets/page"
|
| 17 |
+
|
| 18 |
+
CARD, HERO, GALLERY, SWATCH = "400x", "1000x", "600x", "150x"
|
| 19 |
+
# Storefront-wide promotion observed on the source (15% off, sitewide banner code).
|
| 20 |
+
SITEWIDE_DISCOUNT = 0.15
|
| 21 |
+
FREE_SHIPPING_THRESHOLD = 100.0
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def local_name(src: str, size: str) -> str:
|
| 25 |
+
base = src.partition("?")[0].rsplit("/", 1)[-1]
|
| 26 |
+
stem, _, ext = base.rpartition(".")
|
| 27 |
+
stem = re.sub(r"[^A-Za-z0-9_.-]", "-", stem)[:90]
|
| 28 |
+
return f"{stem}__{size}.{ext}"
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def img_url(src: str | None, size: str) -> str | None:
|
| 32 |
+
if not src:
|
| 33 |
+
return None
|
| 34 |
+
name = local_name(src, size)
|
| 35 |
+
return f"/static/assets/img/{name}" if (IMG_DIR / name).exists() else None
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def page_url(src: str | None) -> str | None:
|
| 39 |
+
if not src:
|
| 40 |
+
return None
|
| 41 |
+
name = re.sub(r"[^A-Za-z0-9_.-]", "-", src.partition("?")[0].rsplit("/", 1)[-1])[:110]
|
| 42 |
+
return f"/static/assets/page/{name}" if (PAGE_DIR / name).exists() else None
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
COLOR_FAMILIES = ["White", "Cream", "Beige", "Grey", "Blue", "Brown", "Green",
|
| 46 |
+
"Multi", "Orange", "Pink", "Red", "Yellow"]
|
| 47 |
+
SIZE_ORDER = ["Twin", "Twin XL", "Full", "Queen", "King", "Cali King", "Standard", "Euro"]
|
| 48 |
+
FABRICS = ["Brushed Flannel", "Classic Percale", "Heathered Cashmere", "Luxe Sateen",
|
| 49 |
+
"Plush", "Ribbed Cotton TENCEL\u2122", "Super-Plush", "Waffle",
|
| 50 |
+
"Washed Classic Percale", "Washed European Linen"]
|
| 51 |
+
PATTERNS = {"Stripes": ("stripe", "striped"), "Florals": ("floral", "bloom", "dandelion", "botanical"),
|
| 52 |
+
"Abstract": ("abstract", "patchwork", "tandem", "weave", "checker", "plaid", "gingham")}
|
| 53 |
+
BUNDLE_TYPES = {"Bedding Move-In Bundles": ("move-in",), "Comforter & Duvet Bundles": ("comforter",),
|
| 54 |
+
"Core Sheet Sets": ("core sheet",), "Duvet & Quilt Sets": ("duvet set", "quilt set"),
|
| 55 |
+
"Hardcore Sheet Bundles": ("hardcore",), "No Flat Sheet Set Bundles": ("no flat",),
|
| 56 |
+
"Starter Bundles": ("starter",)}
|
| 57 |
+
COMFORTER_TYPES = {"Down": ("down",), "Lightweight": ("lightweight",), "All-Season": ("all-season", "all season")}
|
| 58 |
+
BEDDING_LAYERS = {"Essentials": ("essential",), "Base Layer": ("sheet", "pillowcase"),
|
| 59 |
+
"Top Layer": ("duvet", "comforter", "quilt", "blanket")}
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
def _hex_family(hex_value: str | None, name: str) -> str | None:
|
| 63 |
+
"""Classify a swatch into the source's twelve colour families."""
|
| 64 |
+
lowered = name.lower()
|
| 65 |
+
if any(w in lowered for w in ("stripe", "patchwork", "multi", "plaid", "gingham", "floral", "check")):
|
| 66 |
+
return "Multi"
|
| 67 |
+
if not hex_value or not hex_value.startswith("#") or len(hex_value) != 7:
|
| 68 |
+
for family in COLOR_FAMILIES:
|
| 69 |
+
if family.lower() in lowered:
|
| 70 |
+
return family
|
| 71 |
+
return None
|
| 72 |
+
r, g, b = (int(hex_value[i:i + 2], 16) for i in (1, 3, 5))
|
| 73 |
+
mx, mn = max(r, g, b), min(r, g, b)
|
| 74 |
+
chroma, light = mx - mn, mx / 255
|
| 75 |
+
if chroma < 26:
|
| 76 |
+
if light > 0.93:
|
| 77 |
+
return "White"
|
| 78 |
+
if light > 0.82:
|
| 79 |
+
return "Cream"
|
| 80 |
+
return "Grey"
|
| 81 |
+
import colorsys
|
| 82 |
+
hue = colorsys.rgb_to_hsv(r / 255, g / 255, b / 255)[0] * 360
|
| 83 |
+
if hue < 16 or hue >= 340:
|
| 84 |
+
return "Red" if light > 0.45 and chroma > 70 else "Brown"
|
| 85 |
+
if hue < 42:
|
| 86 |
+
return "Brown" if light < 0.62 else ("Beige" if chroma < 70 else "Orange")
|
| 87 |
+
if hue < 68:
|
| 88 |
+
return "Yellow"
|
| 89 |
+
if hue < 165:
|
| 90 |
+
return "Green"
|
| 91 |
+
if hue < 260:
|
| 92 |
+
return "Blue"
|
| 93 |
+
if hue < 290:
|
| 94 |
+
return "Blue"
|
| 95 |
+
return "Pink"
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def _facets_for(product: dict, swatches: dict) -> dict[str, list[str]]:
|
| 99 |
+
title = product["title"].lower()
|
| 100 |
+
tags = {t.lower() for t in product["tags"]}
|
| 101 |
+
colors, sizes, patterns = [], [], []
|
| 102 |
+
for v in product["variants"]:
|
| 103 |
+
name = v.get("option1") or ""
|
| 104 |
+
meta = swatches.get(name, {})
|
| 105 |
+
family = _hex_family(meta.get("hex"), name)
|
| 106 |
+
if family and family not in colors:
|
| 107 |
+
colors.append(family)
|
| 108 |
+
size = v.get("option2")
|
| 109 |
+
if size and size not in sizes:
|
| 110 |
+
sizes.append(size)
|
| 111 |
+
lowered = name.lower()
|
| 112 |
+
for label, needles in PATTERNS.items():
|
| 113 |
+
if any(n in lowered for n in needles) and label not in patterns:
|
| 114 |
+
patterns.append(label)
|
| 115 |
+
if not patterns:
|
| 116 |
+
patterns = ["Solid"]
|
| 117 |
+
fabric = [f for f in FABRICS if f.lower() in title or f.lower() in tags]
|
| 118 |
+
featured = []
|
| 119 |
+
if "bundle" in title or "bundle savings" in tags:
|
| 120 |
+
featured.append("Bundle Savings")
|
| 121 |
+
if any("cooling" in t for t in tags) or "percale" in title:
|
| 122 |
+
featured.append("Cooling")
|
| 123 |
+
if any("hsa" in t for t in tags):
|
| 124 |
+
featured.append("HSA/FSA Eligible")
|
| 125 |
+
bundle = [k for k, needles in BUNDLE_TYPES.items() if any(n in title for n in needles)]
|
| 126 |
+
comforter = [k for k, needles in COMFORTER_TYPES.items()
|
| 127 |
+
if any(n in title for n in needles)] if "comforter" in title else []
|
| 128 |
+
layers = [k for k, needles in BEDDING_LAYERS.items() if any(n in title for n in needles)]
|
| 129 |
+
return {"product_type": [product["product_type"]] if product["product_type"] else [],
|
| 130 |
+
"color": colors, "size": [s for s in SIZE_ORDER if s in sizes] or sizes,
|
| 131 |
+
"fabric": fabric, "featured": featured, "pattern": patterns,
|
| 132 |
+
"bundle_type": bundle, "comforter_type": comforter, "bedding_layers": layers}
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
FACET_GROUPS = [("product_type", "Product Type"), ("color", "Color"), ("size", "Size"),
|
| 136 |
+
("fabric", "Fabric"), ("featured", "Featured"), ("bedding_layers", "Bedding Layers"),
|
| 137 |
+
("bundle_type", "Bundle Type"), ("pattern", "Pattern"),
|
| 138 |
+
("comforter_type", "Comforter Type")]
|
| 139 |
+
FACET_ORDER = {"color": COLOR_FAMILIES, "size": SIZE_ORDER, "fabric": FABRICS}
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
def _stable_reviews(handle: str) -> int:
|
| 143 |
+
"""Deterministic per-product review count; no source review data is copied."""
|
| 144 |
+
return 40 + (sum(handle.encode()) * 37) % 4000
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
@lru_cache(maxsize=1)
|
| 148 |
+
def swatch_table() -> dict:
|
| 149 |
+
"""Site-wide colour table (hex, pattern image, copy) as published by the source."""
|
| 150 |
+
path = DATA / "swatches.json"
|
| 151 |
+
return json.loads(path.read_text(encoding="utf-8")) if path.exists() else {}
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
@lru_cache(maxsize=1)
|
| 155 |
+
def catalog() -> dict:
|
| 156 |
+
raw = json.loads((DATA / "catalog.json").read_text(encoding="utf-8"))
|
| 157 |
+
p0 = set(json.loads((DATA / "p0-products.json").read_text(encoding="utf-8")))
|
| 158 |
+
for handle, p in raw["products"].items():
|
| 159 |
+
p["detail_closed"] = handle in p0
|
| 160 |
+
p["card_image"] = img_url(p["images"][0] if p["images"] else None, CARD)
|
| 161 |
+
p["review_count"] = _stable_reviews(handle)
|
| 162 |
+
p["sale_price"] = round(p["price_min"] * (1 - SITEWIDE_DISCOUNT), 2)
|
| 163 |
+
p["on_sale"] = True
|
| 164 |
+
p["discount_pct"] = int(SITEWIDE_DISCOUNT * 100)
|
| 165 |
+
p["badge"] = _badge(p)
|
| 166 |
+
seen, swatches = set(), []
|
| 167 |
+
for v in p["variants"]:
|
| 168 |
+
key = v.get("option1")
|
| 169 |
+
if key in seen:
|
| 170 |
+
continue
|
| 171 |
+
seen.add(key)
|
| 172 |
+
meta = swatch_table().get(key or "", {})
|
| 173 |
+
swatches.append({"title": key, "hex": meta.get("hex"),
|
| 174 |
+
"description": meta.get("description"),
|
| 175 |
+
"image": img_url(v.get("image"), SWATCH)})
|
| 176 |
+
p["swatches"] = swatches
|
| 177 |
+
p["facets"] = _facets_for(p, swatch_table())
|
| 178 |
+
raw["by_handle"] = raw["products"]
|
| 179 |
+
return raw
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
def _badge(p: dict) -> str | None:
|
| 183 |
+
tags = {t.lower() for t in p["tags"]}
|
| 184 |
+
if "super-plush towels" in tags or "super-plush 2.0" in tags:
|
| 185 |
+
return "FLUFFIEST"
|
| 186 |
+
if any("cooling" in t for t in tags):
|
| 187 |
+
return "COOLING"
|
| 188 |
+
if "newarrivals" in tags:
|
| 189 |
+
return "NEW"
|
| 190 |
+
if "best sellers" in tags:
|
| 191 |
+
return "BEST SELLER"
|
| 192 |
+
return None
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
def products_for(handles) -> list[dict]:
|
| 196 |
+
by = catalog()["products"]
|
| 197 |
+
return [by[h] for h in handles if h in by]
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
def collection(handle: str) -> dict | None:
|
| 201 |
+
for c in catalog()["collections"]:
|
| 202 |
+
if c["handle"] == handle:
|
| 203 |
+
return c
|
| 204 |
+
return None
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
def variant_index() -> dict[int, tuple[str, dict]]:
|
| 208 |
+
idx = {}
|
| 209 |
+
for handle, p in catalog()["products"].items():
|
| 210 |
+
for v in p["variants"]:
|
| 211 |
+
idx[v["id"]] = (handle, v)
|
| 212 |
+
return idx
|
tasks/brooklinen/solution/site/implementation/clone/content.py
ADDED
|
@@ -0,0 +1,487 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Source-observed page copy, navigation and merchandising modules.
|
| 2 |
+
|
| 3 |
+
Every string here was read from the live source pages during capture; nothing is
|
| 4 |
+
invented marketing copy beyond the deterministic local-sandbox notices.
|
| 5 |
+
"""
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
MAIN_NAV = [
|
| 9 |
+
{"label": "Sheets", "url": "/collections/all-sheets"},
|
| 10 |
+
{"label": "Bed", "url": "/pages/all-bed"},
|
| 11 |
+
{"label": "Bath", "url": "/pages/all-bath"},
|
| 12 |
+
{"label": "Bundle Savings", "url": "/pages/all-bundles"},
|
| 13 |
+
{"label": "Home", "url": "/collections/throw-blankets-pillow-covers"},
|
| 14 |
+
{"label": "Featured", "url": "/collections/best-sellers"},
|
| 15 |
+
{"label": "Sale", "url": "/collections/last-call"},
|
| 16 |
+
]
|
| 17 |
+
|
| 18 |
+
FOOTER_NAV = [
|
| 19 |
+
{"title": "About", "links": [
|
| 20 |
+
{"label": "About Us", "url": "/pages/about"},
|
| 21 |
+
{"label": "Press", "url": "/pages/press"},
|
| 22 |
+
{"label": "Reviews", "url": "/pages/reviews"},
|
| 23 |
+
{"label": "Our Stores", "url": "/pages/our-stores"},
|
| 24 |
+
{"label": "HSA/FSA Eligible", "url": "/pages/hsa-fsa-eligible"},
|
| 25 |
+
{"label": "Education Center", "url": "/pages/care-guide"},
|
| 26 |
+
]},
|
| 27 |
+
{"title": "Community", "links": [
|
| 28 |
+
{"label": "Brooklinen Rewards", "url": "/pages/rewards"},
|
| 29 |
+
{"label": "Brookliving", "url": "/pages/brookliving"},
|
| 30 |
+
{"label": "Trade & Hospitality", "url": "/pages/trade"},
|
| 31 |
+
{"label": "Corporate Gifting", "url": "/pages/corporate-gifting"},
|
| 32 |
+
]},
|
| 33 |
+
{"title": "Need Help?", "links": [
|
| 34 |
+
{"label": "FAQ & Support", "url": "/pages/faq"},
|
| 35 |
+
{"label": "Returns & Exchanges", "url": "/pages/returns"},
|
| 36 |
+
{"label": "Care Guide", "url": "/pages/care-guide"},
|
| 37 |
+
{"label": "E-Gift Card", "url": "/products/rise-ai-giftcard"},
|
| 38 |
+
{"label": "Gift Card Balance", "url": "/pages/check-gift-card-balance"},
|
| 39 |
+
]},
|
| 40 |
+
{"title": "Get In Touch", "links": [
|
| 41 |
+
{"label": "Contact Us", "url": "/pages/contact"},
|
| 42 |
+
{"label": "Careers", "url": "/pages/careers"},
|
| 43 |
+
{"label": "Sign Up for Texts", "url": "/pages/sms-signup"},
|
| 44 |
+
]},
|
| 45 |
+
]
|
| 46 |
+
|
| 47 |
+
ANNOUNCEMENTS = [
|
| 48 |
+
"Shop bundles with built-in savings.",
|
| 49 |
+
"Fast, free shipping on orders $100 or more.",
|
| 50 |
+
"Just for you: 15% off your first order.",
|
| 51 |
+
]
|
| 52 |
+
|
| 53 |
+
HOME_HERO = {
|
| 54 |
+
"heading": "BEST. SHEETS. EVER.",
|
| 55 |
+
"heading_lockup": "/static/assets/page/BEST._SHEETS._EVER._Lockup.svg",
|
| 56 |
+
"image": "/static/assets/page/hero-poster-1.jpg",
|
| 57 |
+
"body": "Get our cool, crisp Classic Percale or soft, smooth Luxe Sheets, and sleep like the best.",
|
| 58 |
+
"cta": "Shop Sheets",
|
| 59 |
+
"url": "/collections/all-sheets",
|
| 60 |
+
"secondary_cta": "Explore the Campaign",
|
| 61 |
+
"secondary_url": "/pages/about",
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
HOME_CATEGORIES = [
|
| 65 |
+
{"label": "All Bedding", "url": "/pages/all-bed",
|
| 66 |
+
"image": "/static/assets/page/260623_BKL_Q3-08---August-Newness7012x_8x9_WO__w500.jpg"},
|
| 67 |
+
{"label": "Bundle Savings", "url": "/pages/all-bundles",
|
| 68 |
+
"image": "/static/assets/page/260623_BKL_Q3-08---August-Newness7280x_8x9_WO__w500.jpg",
|
| 69 |
+
"badge": "/static/assets/page/15_off_Badge__w500.png"},
|
| 70 |
+
{"label": "Duvet Inserts & Pillows", "url": "/collections/duvet-inserts-pillows",
|
| 71 |
+
"image": "/static/assets/page/BKL_25111_UtilityEducation_Scene2Shot2_071x_8x9_WO__w500.jpg"},
|
| 72 |
+
{"label": "All Bath", "url": "/pages/all-bath",
|
| 73 |
+
"image": "/static/assets/page/BKL_26-04_WaffleWorld_Look5_5297x_8x9_WO__w500.jpg"},
|
| 74 |
+
{"label": "New Arrivals", "url": "/collections/new-arrivals",
|
| 75 |
+
"image": "/static/assets/page/BKL_26-05_Tencel_Look4_989x_8x9_WO__w500.jpg"},
|
| 76 |
+
{"label": "All Sheets", "url": "/collections/all-sheets",
|
| 77 |
+
"image": "/static/assets/page/260623_BKL_Q3-08---August-Newness7070x_BLUR_8x9_WO__w500.jpg"},
|
| 78 |
+
]
|
| 79 |
+
|
| 80 |
+
HOME_REVIEWS = [
|
| 81 |
+
{"headline": "Like Sleeping On A Cloud", "who": "Sarah T.",
|
| 82 |
+
"body": "Literally the best sleep I've gotten in ages. I never want to get out of bed..."},
|
| 83 |
+
{"headline": "Can't Stop Talking About Them", "who": "Linda B.",
|
| 84 |
+
"body": "Better than any fine hotel towels I've ever used. I'm so happy with this purchase!"},
|
| 85 |
+
{"headline": "Now I Get It", "who": "Marcus R.",
|
| 86 |
+
"body": "I finally understand the hype. Soft, cool and they have held up wash after wash."},
|
| 87 |
+
]
|
| 88 |
+
|
| 89 |
+
HOME_SPOTLIGHT = [
|
| 90 |
+
{"label": "Waffle World", "url": "/pages/waffle-world",
|
| 91 |
+
"image": "/static/assets/page/BKL_26-04_WaffleWorld_Look3_4824x_PDP_WO_71c5add5-3dbf-4940-812c-ba635e9268e1__w500.jpg"},
|
| 92 |
+
{"label": "Brooklinen Browns", "url": "/pages/brooklinen-browns",
|
| 93 |
+
"image": "/static/assets/page/260623_BKL_Q3-08---August-Newness7012x_8x9_WO_fff7634a-13fe-482c-b597-6c9cd72e1bff__w500.jpg"},
|
| 94 |
+
{"label": "Bedding Bundles", "url": "/collections/sheet-bundles",
|
| 95 |
+
"image": "/static/assets/page/Bedding_Bundles_8x9_22c62d8b-63e5-45ff-a9cd-9099b3c8da68__w500.jpg"},
|
| 96 |
+
{"label": "The Cooling Shop", "url": "/pages/cooling-shop",
|
| 97 |
+
"image": "/static/assets/page/BKL_26-01_AprNewArrivals_Look2_304x_8x9_WO_1cf12f7b-2e0a-4566-977a-6891d4087461__w500.jpg"},
|
| 98 |
+
]
|
| 99 |
+
|
| 100 |
+
# Fabric tiles carry the source's own module imagery, localised under static/assets/page.
|
| 101 |
+
BEDDING_FABRICS = [
|
| 102 |
+
{"label": "Luxe Sateen", "note": "Ridiculously soft, smooth", "url": "/collections/luxe-sateen-sheets",
|
| 103 |
+
"image": "/static/assets/page/BKL_24-06_Bedding_Luxe_Storm_Detail_1x_400x200_WO.jpg"},
|
| 104 |
+
{"label": "Classic Percale", "note": "Wonderfully crisp, cool", "url": "/collections/classic-percale-sheets",
|
| 105 |
+
"image": "/static/assets/page/BKL_23-05_Bedding_Classic_FreshMoss_Detail_1x_8x4_WO.jpg"},
|
| 106 |
+
{"label": "Washed Classic Percale", "note": "Perfectly lived in, breathable",
|
| 107 |
+
"url": "/collections/washed-classic-sheets",
|
| 108 |
+
"image": "/static/assets/page/BKL_25-07_Bedding_WashedClassic_MistChambray_Texture_1x_WO_4x2.jpg"},
|
| 109 |
+
{"label": "Washed European Linen", "note": "Super airy, relaxed", "url": "/collections/washed-linen-sheets",
|
| 110 |
+
"image": "/static/assets/page/BKL_26-02_Bedding_Linen_OxfordStripeinAbyssChambray_Detail_1_x_8x4_WO.jpg"},
|
| 111 |
+
{"label": "Heathered Cashmere", "note": "Supremely warm, indulgent", "url": "/collections/quilts-bed-blankets",
|
| 112 |
+
"image": "/static/assets/page/BKL_24-08_Oct_HeatheredCashmere_0131x_800x400_WO--1-.jpg"},
|
| 113 |
+
]
|
| 114 |
+
|
| 115 |
+
BATH_FABRICS = [
|
| 116 |
+
{"label": "Super Plush", "url": "/collections/super-plush-towels", "note": "Thick, ultra-soft, spa-worthy.",
|
| 117 |
+
"image": "/static/assets/page/BKL_25-12_Bath_SP_StripedBotanicalGreen_Texture_1_x_4x2_WO__600x.jpg"},
|
| 118 |
+
{"label": "Plush", "url": "/collections/plush-towels", "note": "Mid-weight, soft, effortless.",
|
| 119 |
+
"image": "/static/assets/page/BKL_24-12_Bath_Plush_Texture_FreshMoss_1x_800x400_WO__600x.jpg"},
|
| 120 |
+
{"label": "Waffle", "url": "/collections/waffle-towels", "note": "Lightweight, textured, quick-drying.",
|
| 121 |
+
"image": "/static/assets/page/BKL_23-11_Bath_Waffle_Texture_BotanicalGreen_1x_800x400_WO__600x.jpg"},
|
| 122 |
+
{"label": "TENCEL™", "url": "/collections/ribbed-cotton-tencel-towels", "note": "Lightweight, softly ribbed, breathable.",
|
| 123 |
+
"image": "/static/assets/page/BKL_26-05_Bath_Towels_Tencel_Texture_Frost_1x_4x4_WO_56a450a9-51ea-4cec-8b6f-30b820c922a8__600x.jpg"},
|
| 124 |
+
{"label": "Beach", "url": "/collections/beach-towels", "note": "Extra-soft and fast-drying.",
|
| 125 |
+
"image": "/static/assets/page/BKL_25-01_Bath_BeachTowels_Marigold_Flatlay_2x_800x400_WO__600x.jpg"},
|
| 126 |
+
]
|
| 127 |
+
|
| 128 |
+
# Landing pages: title, SEO copy and the product rows observed on the source page.
|
| 129 |
+
LANDING_PAGES = {
|
| 130 |
+
"all-bath": {
|
| 131 |
+
"title": "All Bath",
|
| 132 |
+
"row_heading_align": "center",
|
| 133 |
+
"seo_title": "Bath Towels, Robes & More | Award-Winning | Brooklinen",
|
| 134 |
+
"fabric_heading": "Shop By Fabric",
|
| 135 |
+
"fabrics": BATH_FABRICS,
|
| 136 |
+
"rows": [
|
| 137 |
+
{"title": "Bath Towels", "collection": "all-towels", "limit": 6, "url": None},
|
| 138 |
+
{"title": "Bath Bundles", "collection": "bath-towel-bundles", "limit": 6, "url": None},
|
| 139 |
+
{"title": "Robes", "collection": "robes", "limit": 3, "url": "/collections/robes"},
|
| 140 |
+
{"title": "Bath Mats", "collection": "bath-rugs-mats", "limit": 3, "url": "/collections/bath-rugs-mats"},
|
| 141 |
+
{"title": "Shower Curtains", "collection": "shower-curtains", "limit": 3, "url": "/collections/shower-curtains"},
|
| 142 |
+
{"title": "Beach Towels", "collection": "beach-towels", "limit": 3, "url": "/collections/beach-towels"},
|
| 143 |
+
],
|
| 144 |
+
"seo_heading": "What Makes Our Bath the Best",
|
| 145 |
+
"seo_html": "<p>Looking for the best bathroom towel? You came to the right place. As the most-awarded in "
|
| 146 |
+
"the shower sphere, we can confidently say our bathroom towels are worth the hype. Every towel "
|
| 147 |
+
"is made from long-staple Turkish cotton, so it gets softer and more absorbent with every wash.</p>",
|
| 148 |
+
},
|
| 149 |
+
"all-bed": {
|
| 150 |
+
"title": "All Bed",
|
| 151 |
+
"seo_title": "Bedding, Duvets & Comforters | Brooklinen",
|
| 152 |
+
"fabric_heading": "Shop by Fabric",
|
| 153 |
+
"fabrics": BEDDING_FABRICS,
|
| 154 |
+
"rows": [
|
| 155 |
+
{"title": "Sheets", "collection": "all-sheets", "limit": 6, "url": "/collections/all-sheets"},
|
| 156 |
+
{"title": "Best Sellers", "collection": "best-sellers", "limit": 6, "url": "/collections/best-sellers"},
|
| 157 |
+
],
|
| 158 |
+
"seo_heading": "Sleep Like the Best",
|
| 159 |
+
"seo_html": "<p>From cool, crisp Classic Percale to soft, smooth Luxe Sateen, every Brooklinen sheet set is "
|
| 160 |
+
"made from long-staple cotton and backed by our 365-day happiness guarantee.</p>",
|
| 161 |
+
},
|
| 162 |
+
"all-bundles": {
|
| 163 |
+
"title": "Bundle Savings",
|
| 164 |
+
"lede": "Mix. Match. Save. Sleep. Make your bed by bundling your favorite colors and patterns now.",
|
| 165 |
+
"seo_title": "All Bundles \u2013 Brooklinen",
|
| 166 |
+
# Source opens this page with a "Jump to:" pill bar, not a fabric strip.
|
| 167 |
+
"jump_to": True,
|
| 168 |
+
"row_heading_align": "left",
|
| 169 |
+
"rows": [
|
| 170 |
+
{"id": "hardcore-sheet-bundles", "title": "Hardcore Sheet Bundles",
|
| 171 |
+
"collection": "sheet-bundles", "limit": 3,
|
| 172 |
+
"includes": "Includes 1 Fitted Sheet, 1 Flat Sheet, 1 Duvet Cover, and 4 Pillowcases",
|
| 173 |
+
"bundle_type": "Hardcore Sheet Bundles"},
|
| 174 |
+
{"id": "featured", "title": "Starter Bundles", "collection": "sheet-bundles", "limit": 3,
|
| 175 |
+
"includes": "Includes 1 Sheet Set and 1 Bed Blanket", "bundle_type": "Starter Bundles"},
|
| 176 |
+
{"id": "move-in-bundles", "title": "Move-In Bundles", "collection": "sheet-bundles", "limit": 3,
|
| 177 |
+
"includes": "Includes 1 Fitted Sheet, 1 Flat Sheet, 1 Duvet Cover, 4 Pillowcases, "
|
| 178 |
+
"1 Comforter, and 2 Pillows",
|
| 179 |
+
"bundle_type": "Bedding Move-In Bundles"},
|
| 180 |
+
{"kind": "promo-band", "title": "NEW Arrivals!",
|
| 181 |
+
"body": "The best in bed & bath, now in limited edition colors.",
|
| 182 |
+
"cta": "Shop Now", "url": "/collections/new-arrivals"},
|
| 183 |
+
{"kind": "fabric-strip", "title": "Shop by Fabric"},
|
| 184 |
+
{"id": "duvet-quilt-sets", "title": "Duvet & Quilt Sets", "collection": "sheet-bundles", "limit": 3,
|
| 185 |
+
"includes": "Includes 1 Duvet Cover or Quilt and 2 Pillowcases or Shams",
|
| 186 |
+
"bundle_type": "Duvet & Quilt Sets"},
|
| 187 |
+
{"id": "comforter-sets", "title": "Comforter Sets", "collection": "sheet-bundles", "limit": 3,
|
| 188 |
+
"includes": "Includes 1 Comforter and 2 Shams", "bundle_type": "Comforter & Duvet Bundles"},
|
| 189 |
+
{"id": "comforter-duvet-bundles", "title": "Duvet Insert Bundles",
|
| 190 |
+
"collection": "sheet-bundles", "limit": 3,
|
| 191 |
+
"includes": "Includes 1 Duvet Cover, 2 Pillowcases, and 1 Comforter",
|
| 192 |
+
"bundle_type": "Comforter & Duvet Bundles"},
|
| 193 |
+
{"id": "core-sheet-sets", "title": "Core Sheet Sets", "collection": "sheet-bundles", "limit": 3,
|
| 194 |
+
"includes": "Includes 1 Fitted Sheet, 1 Flat Sheet, and 2 Pillowcases",
|
| 195 |
+
"bundle_type": "Core Sheet Sets"},
|
| 196 |
+
{"id": "bath-bundles", "title": "Bath Bundles", "collection": "bath-towel-bundles", "limit": 3,
|
| 197 |
+
"url": "/collections/bath-towel-bundles"},
|
| 198 |
+
],
|
| 199 |
+
"fabrics": BEDDING_FABRICS,
|
| 200 |
+
"spotlight_title": "More to Explore",
|
| 201 |
+
"spotlight": [
|
| 202 |
+
{"label": "All Sheets", "url": "/collections/all-sheets"},
|
| 203 |
+
{"label": "New Arrivals", "url": "/collections/new-arrivals"},
|
| 204 |
+
],
|
| 205 |
+
},
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
CONTENT_PAGES = {
|
| 209 |
+
"about": ("About Us", "<p>Brooklinen started in a Brooklyn apartment with one idea: luxury bedding should not "
|
| 210 |
+
"cost a fortune. We work directly with mills, skip the middlemen and pass the savings on.</p>"),
|
| 211 |
+
"returns": ("Returns & Exchanges", "<p>Every order is covered by our 365-day happiness guarantee. If it is not "
|
| 212 |
+
"love at first sleep, start a return within 365 days for a full refund.</p>"),
|
| 213 |
+
"faq": ("FAQ & Support", "<p><strong>Does Brooklinen offer free US shipping?</strong><br>Yes — free ground "
|
| 214 |
+
"shipping within the contiguous U.S. on orders of $100+, before tax.</p>"
|
| 215 |
+
"<p><strong>How do I track my order?</strong><br>Sign in and open Orders in your "
|
| 216 |
+
"account.</p>"),
|
| 217 |
+
"care-guide": ("Care Guide", "<p>Wash sheets and towels in cold water on a gentle cycle. Tumble dry low. Skip "
|
| 218 |
+
"the fabric softener — it coats the fibres and reduces absorbency.</p>"),
|
| 219 |
+
"our-stores": ("Our Stores", "<p>Come say hi, IRL. We've got comfort in the bag (yours) at a store near you.</p>"),
|
| 220 |
+
"reviews": ("Reviews", "<p>175,000+ 5-star reviews and counting.</p>"),
|
| 221 |
+
"rewards": ("Brooklinen Rewards", "<p>Earn points on every order. 400 points = $10 off, 1000 points = $25 off, "
|
| 222 |
+
"2000 points = $50 off.</p>"),
|
| 223 |
+
"contact": ("Contact Us", "<p>Reach the Brooklinen team any day of the week. In this offline clone, messages are "
|
| 224 |
+
"written to the local outbox instead of being sent.</p>"),
|
| 225 |
+
"press": ("Press", "<p>In the news.</p>"),
|
| 226 |
+
"careers": ("Careers", "<p>Join the team.</p>"),
|
| 227 |
+
"trade": ("Trade & Hospitality", "<p>Outfit your property with Brooklinen.</p>"),
|
| 228 |
+
"corporate-gifting": ("Corporate Gifting", "<p>Gift comfort at scale.</p>"),
|
| 229 |
+
"brookliving": ("Brookliving", "<p>Stories about living well at home.</p>"),
|
| 230 |
+
"hsa-fsa-eligible": ("HSA/FSA Eligible", "<p>Select products are HSA/FSA eligible.</p>"),
|
| 231 |
+
"sms-signup": ("Sign Up for Texts", "<p>Get drops and deals by text. In this clone, sign-ups land in the local "
|
| 232 |
+
"outbox.</p>"),
|
| 233 |
+
"check-gift-card-balance": ("Gift Card Balance", "<p>Check the remaining balance on a Brooklinen gift card.</p>"),
|
| 234 |
+
"about-sheets": ("About Our Sheets", "<p>Every Brooklinen sheet starts with long-staple cotton. Classic Percale "
|
| 235 |
+
"is cool and crisp with a matte finish; Luxe Sateen is smooth and lustrous; Washed Classic "
|
| 236 |
+
"Percale is lived in from the first night; Washed European Linen is airy and relaxed.</p>"),
|
| 237 |
+
"about-pillows": ("About Our Pillows", "<p>Down, down alternative and a firmness for every sleeping position. "
|
| 238 |
+
"Every pillow ships with our 365-day happiness guarantee.</p>"),
|
| 239 |
+
"about-comforters": ("About Our Comforters", "<p>Our comforters come in Down and Down Alternative, in "
|
| 240 |
+
"Lightweight and All-Season weights, so you can match your bed to your climate.</p>"),
|
| 241 |
+
"about-towels": ("About Our Towels", "<p>Long-staple Turkish cotton in four weaves: Super-Plush, Plush, "
|
| 242 |
+
"Waffle and Ribbed Cotton TENCEL\u2122. Every towel gets softer and more absorbent with "
|
| 243 |
+
"each wash.</p>"),
|
| 244 |
+
"best-sheets-ever": ("BEST. SHEETS. EVER.", "<p>Robby Hoffman, Mikal Bridges, Alana Haim and Ben Marshall love "
|
| 245 |
+
"our sheets. See the campaign and join them.</p>"),
|
| 246 |
+
"the-cooling-shop": ("The Cooling Shop", "<p>Percale weaves, breathable linen and quick-drying waffle, for "
|
| 247 |
+
"everyone who sleeps hot.</p>"),
|
| 248 |
+
"cooling-shop": ("The Cooling Shop", "<p>Percale weaves, breathable linen and quick-drying waffle, for "
|
| 249 |
+
"everyone who sleeps hot.</p>"),
|
| 250 |
+
"waffle-world": ("Waffle World", "<p>Soft, fluffy and cooling. Our waffle weave, across bath and bed.</p>"),
|
| 251 |
+
"brooklinen-browns": ("Brooklinen Browns", "<p>Oak, Nutmeg, Maple and every warm brown in between.</p>"),
|
| 252 |
+
"luxe": ("Luxier Luxe Sateen Sheets", "<p>Our smoothest, most lustrous sateen, now even softer.</p>"),
|
| 253 |
+
"privacy": ("Privacy Policy", "<p>How we handle data.</p>"),
|
| 254 |
+
"terms-of-service": ("Terms of Service", "<p>The terms that govern use of this site.</p>"),
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
# Collection lede copy as published beside each collection title.
|
| 258 |
+
COLLECTION_LEDE = {
|
| 259 |
+
"all-sheets": "You spend 1/3 of your life in bed, sleep with the coolest, softest, and smoothest "
|
| 260 |
+
"sheets in the game.",
|
| 261 |
+
"all-towels": "The most-awarded towels in the shower sphere, in the weights and weaves you want.",
|
| 262 |
+
"robes": "Wear your comfort on your sleeve.",
|
| 263 |
+
"bath-towel-bundles": "Save big on the best drip.",
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
# Collection fabric strips, as published between the collection title and the filter
|
| 267 |
+
# rail. Tile imagery is served by the source from its Accentuate metafield CDN.
|
| 268 |
+
COLLECTION_FABRICS = {
|
| 269 |
+
"all-sheets": [
|
| 270 |
+
{"label": "Luxe Sateen", "note": "Ridiculously soft, smooth",
|
| 271 |
+
"url": "/collections/luxe-sateen-sheets",
|
| 272 |
+
"image": "/static/assets/page/BKL_24-06_Bedding_Luxe_Storm_Detail_1x_400x200_WO.jpg"},
|
| 273 |
+
{"label": "Classic Percale", "note": "Wonderfully crisp, cool",
|
| 274 |
+
"url": "/collections/classic-percale-sheets",
|
| 275 |
+
"image": "/static/assets/page/BKL_23-05_Bedding_Classic_FreshMoss_Detail_1x_8x4_WO.jpg"},
|
| 276 |
+
{"label": "Washed Classic Percale", "note": "Perfectly lived in, breathable",
|
| 277 |
+
"url": "/collections/washed-classic-sheets",
|
| 278 |
+
"image": "/static/assets/page/BKL_25-07_Bedding_WashedClassic_MistChambray_Texture_1x_WO_4x2.jpg"},
|
| 279 |
+
{"label": "Washed European Linen", "note": "Super airy, relaxed",
|
| 280 |
+
"url": "/collections/washed-linen-sheets",
|
| 281 |
+
"image": "/static/assets/page/BKL_26-02_Bedding_Linen_OxfordStripeinAbyssChambray_Detail_1_x_8x4_WO.jpg"},
|
| 282 |
+
{"label": "Heathered Cashmere", "note": "Supremely warm, indulgent",
|
| 283 |
+
"url": "/collections/quilts-bed-blankets",
|
| 284 |
+
"image": "/static/assets/page/BKL_24-08_Oct_HeatheredCashmere_0131x_800x400_WO--1-.jpg"},
|
| 285 |
+
],
|
| 286 |
+
"all-towels": BATH_FABRICS,
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
# ---------------------------------------------------------------- mega menu
|
| 290 |
+
# Panel geometry as observed on the source: full-bleed drawer under the header,
|
| 291 |
+
# a free-shipping strip, then link columns at x=104 / 442-555 / promo cards.
|
| 292 |
+
NAV_PANELS = {
|
| 293 |
+
"Sheets": {
|
| 294 |
+
"columns": [
|
| 295 |
+
{"kind": "links", "items": [
|
| 296 |
+
{"label": "Shop All Sheets", "url": "/collections/all-sheets"},
|
| 297 |
+
{"label": "Best Selling Sheets", "url": "/collections/best-sellers?product_type=Sheet+Sets"},
|
| 298 |
+
{"label": "New Sheets", "url": "/collections/new-arrivals?product_type=Sheet+Sets"},
|
| 299 |
+
{"label": "Sheet Sets", "url": "/collections/all-sheets?product_type=Sheet+Sets"},
|
| 300 |
+
{"label": "Fitted & Flat Sheets", "url": "/collections/fitted-flat-sheets"},
|
| 301 |
+
{"label": "Pillowcases & Shams", "url": "/collections/pillowcases-shams"},
|
| 302 |
+
]},
|
| 303 |
+
{"kind": "fabric", "title": "SHOP BY FABRIC", "items": [
|
| 304 |
+
{"label": "Luxe Sateen", "note": "Ridiculously soft, smooth", "url": "/collections/luxe-sateen-sheets"},
|
| 305 |
+
{"label": "Classic Percale", "note": "Crisp, cool", "url": "/collections/classic-percale-sheets"},
|
| 306 |
+
{"label": "Washed Classic Percale", "note": "Lived in, breathable", "url": "/collections/washed-classic-sheets"},
|
| 307 |
+
{"label": "Washed European Linen", "note": "Airy, relaxed", "url": "/collections/washed-linen-sheets"},
|
| 308 |
+
]},
|
| 309 |
+
{"kind": "promo", "items": [
|
| 310 |
+
{"label": "Best. Sheets. Ever.", "note": "Don\u2019t just take our word for it.",
|
| 311 |
+
"url": "/collections/all-sheets",
|
| 312 |
+
"image": "/static/assets/page/260708_BKL_Q3BrandCampaign_AlanaHaim_SH_01_357x_800x800_WO__w600.jpg"},
|
| 313 |
+
]},
|
| 314 |
+
],
|
| 315 |
+
},
|
| 316 |
+
"Bed": {
|
| 317 |
+
"columns": [
|
| 318 |
+
{"kind": "links", "items": [
|
| 319 |
+
{"label": "All Bedding", "url": "/pages/all-bed"},
|
| 320 |
+
{"label": "Best Selling Bedding", "url": "/collections/best-sellers?product_type=Duvet+Covers"},
|
| 321 |
+
{"label": "New Bedding", "url": "/collections/new-arrivals"},
|
| 322 |
+
{"label": "All Sheets", "url": "/collections/all-sheets"},
|
| 323 |
+
{"label": "Bedding Bundles", "url": "/collections/sheet-bundles", "badge": "UP TO 15% OFF"},
|
| 324 |
+
{"label": "Duvet Inserts & Comforters", "url": "/collections/comforters"},
|
| 325 |
+
{"label": "Duvet Covers", "url": "/collections/duvet-covers"},
|
| 326 |
+
{"label": "Quilts & Blankets", "url": "/collections/quilts-bed-blankets"},
|
| 327 |
+
{"label": "Throws & Decorative Pillows", "url": "/collections/throw-blankets-pillow-covers"},
|
| 328 |
+
{"label": "Pillows, Pillowcases & Shams", "url": "/collections/pillowcases-shams"},
|
| 329 |
+
{"label": "Fitted & Flat Sheets", "url": "/collections/fitted-flat-sheets"},
|
| 330 |
+
]},
|
| 331 |
+
{"kind": "fabric", "title": "SHOP BY FABRIC", "items": [
|
| 332 |
+
{"label": "Luxe Sateen", "note": "Ridiculously soft, smooth", "url": "/collections/luxe-sateen-sheets"},
|
| 333 |
+
{"label": "Classic Percale", "note": "Crisp, cool", "url": "/collections/classic-percale-sheets"},
|
| 334 |
+
{"label": "Washed Classic Percale", "note": "Lived in, breathable", "url": "/collections/washed-classic-sheets"},
|
| 335 |
+
{"label": "Washed European Linen", "note": "Airy, relaxed", "url": "/collections/washed-linen-sheets"},
|
| 336 |
+
{"label": "Shop All Sheets", "url": "/collections/all-sheets"},
|
| 337 |
+
]},
|
| 338 |
+
{"kind": "links", "items": [
|
| 339 |
+
{"label": "About Our Sheets", "url": "/pages/about-sheets"},
|
| 340 |
+
{"label": "About Our Pillows", "url": "/pages/about-pillows"},
|
| 341 |
+
{"label": "About Our Comforters", "url": "/pages/about-comforters"},
|
| 342 |
+
{"label": "HSA/FSA Eligible", "url": "/pages/hsa-fsa-eligible"},
|
| 343 |
+
]},
|
| 344 |
+
{"kind": "promo", "items": [
|
| 345 |
+
{"label": "NEW Washed Classic Percale", "url": "/collections/washed-classic-sheets",
|
| 346 |
+
"image": "/static/assets/page/260623_BKL_Q3-08---August-Newness7057x_8x8_WO__w600.jpg"},
|
| 347 |
+
]},
|
| 348 |
+
],
|
| 349 |
+
},
|
| 350 |
+
"Bath": {
|
| 351 |
+
"columns": [
|
| 352 |
+
{"kind": "links", "items": [
|
| 353 |
+
{"label": "All Bath", "url": "/pages/all-bath"},
|
| 354 |
+
{"label": "Best Selling Bath", "url": "/collections/best-sellers?product_type=Towels"},
|
| 355 |
+
{"label": "New Bath", "url": "/collections/new-arrivals?product_type=Towels"},
|
| 356 |
+
{"label": "All Towels", "url": "/collections/all-towels"},
|
| 357 |
+
{"label": "Bath Bundles", "url": "/collections/bath-towel-bundles", "badge": "UP TO 10% OFF"},
|
| 358 |
+
{"label": "Robes", "url": "/collections/robes"},
|
| 359 |
+
{"label": "Bath Mats", "url": "/collections/bath-rugs-mats"},
|
| 360 |
+
{"label": "Shower Curtains", "url": "/collections/shower-curtains"},
|
| 361 |
+
{"label": "Beach Towels & Accessories", "url": "/collections/beach-towels"},
|
| 362 |
+
]},
|
| 363 |
+
{"kind": "fabric", "title": "SHOP BY FABRIC", "items": [
|
| 364 |
+
{"label": "Super-Plush", "note": "Thick, ultra-soft, spa-worthy.", "badge": "BEST SELLER",
|
| 365 |
+
"url": "/collections/super-plush-towels"},
|
| 366 |
+
{"label": "Plush", "note": "Mid-weight, soft, effortless.", "url": "/collections/plush-towels"},
|
| 367 |
+
{"label": "Waffle", "note": "Lightweight, textured, quick-drying.", "url": "/collections/waffle-towels"},
|
| 368 |
+
{"label": "Ribbed Cotton TENCEL\u2122", "note": "Lightweight, softly ribbed, breathable.",
|
| 369 |
+
"url": "/collections/ribbed-cotton-tencel-towels"},
|
| 370 |
+
{"label": "About Our Towels", "url": "/pages/about-towels"},
|
| 371 |
+
]},
|
| 372 |
+
{"kind": "promo", "items": [
|
| 373 |
+
{"label": "The NEWEST From Super-Plush", "url": "/collections/super-plush-towels",
|
| 374 |
+
"image": "/static/assets/page/BKL_26-06_Bath_SP_Striped-Nutmeg_Texture_1x_8x8_WO__w600.jpg"},
|
| 375 |
+
{"label": "Bath Bundles", "url": "/collections/bath-towel-bundles",
|
| 376 |
+
"image": "/static/assets/page/BKL_26-04_WaffleWorld_Look5_5330x_1x1_WO__w600.jpg"},
|
| 377 |
+
]},
|
| 378 |
+
],
|
| 379 |
+
},
|
| 380 |
+
"Bundle Savings": {
|
| 381 |
+
"columns": [
|
| 382 |
+
{"kind": "links", "offset": 329, "items": [
|
| 383 |
+
{"label": "All Bundles", "url": "/pages/all-bundles", "badge": "UP TO 15% OFF"},
|
| 384 |
+
{"label": "Bedding Bundles", "url": "/collections/sheet-bundles", "badge": "UP TO 15% OFF"},
|
| 385 |
+
{"label": "Bath Bundles", "url": "/collections/bath-towel-bundles", "badge": "UP TO 10% OFF"},
|
| 386 |
+
]},
|
| 387 |
+
{"kind": "promo", "items": [
|
| 388 |
+
{"label": "Bedding Bundles",
|
| 389 |
+
"note": "Mix & match everything but the mattress, and save big when you do.",
|
| 390 |
+
"url": "/collections/sheet-bundles",
|
| 391 |
+
"image": "/static/assets/page/BKL_26-04_BKL_LuxeOverheads_Look2_0249x_1x1_WO__w600.jpg"},
|
| 392 |
+
]},
|
| 393 |
+
],
|
| 394 |
+
},
|
| 395 |
+
"Home": {
|
| 396 |
+
"columns": [
|
| 397 |
+
{"kind": "links", "offset": 329, "items": [
|
| 398 |
+
{"label": "Throws & Decorative Pillows", "url": "/collections/throw-blankets-pillow-covers"},
|
| 399 |
+
{"label": "Laundry Care", "url": "/collections/laundry-care"},
|
| 400 |
+
{"label": "Candles & Home Fragrance", "url": "/collections/candles-home-fragrance"},
|
| 401 |
+
]},
|
| 402 |
+
{"kind": "promo", "items": [
|
| 403 |
+
{"label": "NEW Bigtime Throw Blankets",
|
| 404 |
+
"note": "Lightweight and huggable, in our latest colors.",
|
| 405 |
+
"url": "/collections/throw-blankets-pillow-covers",
|
| 406 |
+
"image": "/static/assets/page/260623_BKL_Q3-08---August-Newness7314x_8x8_WO__w600.jpg"},
|
| 407 |
+
]},
|
| 408 |
+
],
|
| 409 |
+
},
|
| 410 |
+
"Featured": {
|
| 411 |
+
"columns": [
|
| 412 |
+
{"kind": "links", "items": [
|
| 413 |
+
{"label": "Best Sellers", "url": "/collections/best-sellers"},
|
| 414 |
+
{"label": "All New Arrivals", "url": "/collections/new-arrivals"},
|
| 415 |
+
{"label": "New Sheets", "url": "/collections/new-arrivals?product_type=Sheet+Sets"},
|
| 416 |
+
{"label": "New Bedding", "url": "/collections/new-arrivals?product_type=Duvet+Covers"},
|
| 417 |
+
{"label": "New Blankets", "url": "/collections/new-arrivals?product_type=Throw+Blankets"},
|
| 418 |
+
{"label": "New Bath", "url": "/collections/new-arrivals?product_type=Towels"},
|
| 419 |
+
{"label": "E-Gift Card", "url": "/products/rise-ai-giftcard"},
|
| 420 |
+
]},
|
| 421 |
+
{"kind": "trending", "title": "TRENDING", "items": [
|
| 422 |
+
{"label": "BEST. SHEETS. EVER.", "url": "/pages/best-sheets-ever"},
|
| 423 |
+
{"label": "Back to Campus Essentials", "url": "/collections/back-to-campus"},
|
| 424 |
+
{"label": "The Cooling Shop", "url": "/pages/the-cooling-shop"},
|
| 425 |
+
{"label": "Waffle World", "url": "/pages/waffle-world"},
|
| 426 |
+
{"label": "Brooklinen Browns", "url": "/pages/brooklinen-browns"},
|
| 427 |
+
{"label": "HSA/FSA Eligible", "url": "/pages/hsa-fsa-eligible"},
|
| 428 |
+
{"label": "Luxier Luxe Sateen Sheets", "url": "/pages/luxe"},
|
| 429 |
+
]},
|
| 430 |
+
{"kind": "promo", "items": [
|
| 431 |
+
{"label": "Waffle World", "note": "Soft, fluffy, and cooling.",
|
| 432 |
+
"url": "/pages/waffle-world",
|
| 433 |
+
"image": "/static/assets/page/BKL_26-04_WaffleWorld_Look11_0527x_1x1_WO_2__w600.jpg"},
|
| 434 |
+
{"label": "BEST. SHEETS. EVER.", "note": "Robby Hoffman loves our sheet.",
|
| 435 |
+
"url": "/pages/best-sheets-ever",
|
| 436 |
+
"image": "/static/assets/page/260708_BKL_Q3BrandCampaign_RobbyHoffman_SH_01_149x_800x800_WO__w600.jpg"},
|
| 437 |
+
]},
|
| 438 |
+
],
|
| 439 |
+
},
|
| 440 |
+
}
|
| 441 |
+
|
| 442 |
+
NAV_FREE_SHIPPING = "Free shipping on orders $100+*"
|
| 443 |
+
|
| 444 |
+
# ---------------------------------------------------------------- home modules
|
| 445 |
+
# Product carousels, in the source's own order.
|
| 446 |
+
HOME_COLLECTION = {
|
| 447 |
+
"title": "Shop the Collection",
|
| 448 |
+
"handles": ["luxe-core-sheet-set", "classic-core-sheet-set", "luxe-hardcore-sheet-bundle",
|
| 449 |
+
"classic-hardcore-sheet-bundle", "classic-duvet-cover", "luxe-duvet-set"],
|
| 450 |
+
}
|
| 451 |
+
HOME_NEW_ARRIVALS = {
|
| 452 |
+
"title": "Shop New Arrivals",
|
| 453 |
+
"handles": ["washed-classic-core-sheet-set", "classic-core-sheet-set", "washed-linen-duvet-cover",
|
| 454 |
+
"luxe-duvet-set", "weekend-wash-quilt", "luxe-core-sheet-set"],
|
| 455 |
+
}
|
| 456 |
+
NEW_HERO = {
|
| 457 |
+
"heading": "New New New",
|
| 458 |
+
"body": "Refresh your sheets with limited-edition colors & patterns.",
|
| 459 |
+
"cta": "Shop Now",
|
| 460 |
+
"url": "/collections/new-arrivals",
|
| 461 |
+
"image": "/static/assets/page/260623_BKL_Q3-08---August-Newness7070x_BLUR_8x9_WO__w500.jpg",
|
| 462 |
+
}
|
| 463 |
+
DUO_SHOP = {
|
| 464 |
+
"heading": "Classic Percale & Luxe Sateen are sheets even celebs obsess over.",
|
| 465 |
+
"cta": "Shop Now",
|
| 466 |
+
"url": "/collections/all-sheets",
|
| 467 |
+
"handles": ["classic-core-sheet-set", "classic-duvet-cover", "luxe-core-sheet-set",
|
| 468 |
+
"luxe-hardcore-sheet-bundle", "classic-pillowcases", "luxe-no-flat-sheet-set-bundle"],
|
| 469 |
+
}
|
| 470 |
+
PRESS = {
|
| 471 |
+
"heading": "In the News",
|
| 472 |
+
"cta": "Shop Award-Winners",
|
| 473 |
+
"url": "/collections/best-sellers",
|
| 474 |
+
"logos": [
|
| 475 |
+
"/static/assets/page/logo--architectural-digest__w300.png",
|
| 476 |
+
"/static/assets/page/logo--wirecutter__w300.png",
|
| 477 |
+
"/static/assets/page/logo--vogue__w300.png",
|
| 478 |
+
"/static/assets/page/logo--good-housekeeping__w300.png",
|
| 479 |
+
"/static/assets/page/6155f04bb97efe856be28f0d_Good_Morning_America__w300.png",
|
| 480 |
+
],
|
| 481 |
+
}
|
| 482 |
+
STORES = {
|
| 483 |
+
"heading": "Come Say Hi, IRL",
|
| 484 |
+
"body": "We've got comfort in the bag (yours) at a store near you.",
|
| 485 |
+
"cta": "Find Your Store",
|
| 486 |
+
"url": "/pages/our-stores",
|
| 487 |
+
}
|
tasks/brooklinen/solution/site/implementation/clone/data/assets.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/brooklinen/solution/site/implementation/clone/data/catalog.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/brooklinen/solution/site/implementation/clone/data/p0-products.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"beach-towel",
|
| 3 |
+
"classic-core-sheet-set",
|
| 4 |
+
"classic-dreamweave-hardcore-bundle",
|
| 5 |
+
"classic-duvet-set",
|
| 6 |
+
"classic-fitted-sheets",
|
| 7 |
+
"classic-hardcore-sheet-bundle",
|
| 8 |
+
"classic-no-flat-sheet-set-bundle",
|
| 9 |
+
"content-bse-alana-haim",
|
| 10 |
+
"content-bse-all-sheets-cta",
|
| 11 |
+
"content-bse-all-sheets-double",
|
| 12 |
+
"content-bse-ben-marshall",
|
| 13 |
+
"content-bse-mikal-bridges",
|
| 14 |
+
"content-bse-robby-hoffman",
|
| 15 |
+
"content-super-plush-2-0",
|
| 16 |
+
"content-tencel-towels",
|
| 17 |
+
"cotton-shorty-robe",
|
| 18 |
+
"dedcool-brooklinen-super-plush-robe",
|
| 19 |
+
"dreamweave-waffle-4-piece-bath-towel-bundle",
|
| 20 |
+
"dreamweave-waffle-shower-curtain",
|
| 21 |
+
"handwoven-rug",
|
| 22 |
+
"linen-shower-curtain",
|
| 23 |
+
"luxe-core-sheet-set",
|
| 24 |
+
"luxe-dreamweave-hardcore-bundle",
|
| 25 |
+
"luxe-dreamweave-starter-bundle",
|
| 26 |
+
"luxe-duvet-cover",
|
| 27 |
+
"luxe-duvet-set",
|
| 28 |
+
"luxe-hardcore-sheet-bundle",
|
| 29 |
+
"luxe-no-flat-sheet-set-bundle",
|
| 30 |
+
"luxe-pillowcases",
|
| 31 |
+
"mine-and-yours-robe-bundle",
|
| 32 |
+
"parkside-beach-blanket",
|
| 33 |
+
"patchwork-shower-curtain",
|
| 34 |
+
"plush-4-piece-bath-towel-bundle",
|
| 35 |
+
"plush-bath-mat",
|
| 36 |
+
"plush-bath-sheet-bundle",
|
| 37 |
+
"plush-bath-sheets",
|
| 38 |
+
"plush-bath-towel-bundle",
|
| 39 |
+
"plush-bath-towels",
|
| 40 |
+
"plush-towel-move-in-bundle",
|
| 41 |
+
"pride-stripe-beach-towel",
|
| 42 |
+
"reversible-looped-bath-mat",
|
| 43 |
+
"ribbed-cotton-tencel-bath-towel-bundle",
|
| 44 |
+
"ribbed-cotton-tencel-bath-towels-set-of-2",
|
| 45 |
+
"ribbed-cotton-tencel-set-of-4-bath-towel-bundle",
|
| 46 |
+
"rise-ai-giftcard",
|
| 47 |
+
"set-of-2-classic-percale-core-sheet-set-bundle",
|
| 48 |
+
"set-of-2-luxe-sateen-core-sheet-set-bundle",
|
| 49 |
+
"soft-weave-bath-mat",
|
| 50 |
+
"super-plush-4-piece-bath-towel-bundle",
|
| 51 |
+
"super-plush-bath-sheet-bundle",
|
| 52 |
+
"super-plush-bath-sheets",
|
| 53 |
+
"super-plush-bath-towel-bundle",
|
| 54 |
+
"super-plush-bath-towels",
|
| 55 |
+
"super-plush-robe",
|
| 56 |
+
"super-plush-shorty-robe",
|
| 57 |
+
"super-plush-towel-and-robe-bundle",
|
| 58 |
+
"super-plush-towel-move-in-bundle",
|
| 59 |
+
"surfside-stripe-terry-tote",
|
| 60 |
+
"terry-bucket-hat",
|
| 61 |
+
"tufted-bath-rug",
|
| 62 |
+
"tufted-cotton-bath-mat",
|
| 63 |
+
"waffle-bath-sheets",
|
| 64 |
+
"waffle-bath-towel-bundle",
|
| 65 |
+
"waffle-bath-towels",
|
| 66 |
+
"waffle-robe",
|
| 67 |
+
"washed-classic-core-sheet-set",
|
| 68 |
+
"washed-classic-dreamweave-starter-bundle",
|
| 69 |
+
"washed-classic-duvet-set",
|
| 70 |
+
"washed-classic-hardcore-sheet-bundle",
|
| 71 |
+
"washed-linen-core-sheet-set",
|
| 72 |
+
"washed-linen-hardcore-sheet-bundle"
|
| 73 |
+
]
|
tasks/brooklinen/solution/site/implementation/clone/data/page-assets.json
ADDED
|
@@ -0,0 +1,345 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"path": "static/assets/page/Best-In-Bed_Lockup_web-only_Blue.svg",
|
| 4 |
+
"bytes": 6001,
|
| 5 |
+
"sha256": "74b2effa01efeed33fb617aff18b13835e866413b03669ab3e86cc34fbcc2301",
|
| 6 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/Best-In-Bed_Lockup_web-only_Blue.svg?v=1770997710&width=100",
|
| 7 |
+
"status": "downloaded"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"path": "static/assets/page/BEST._SHEETS._EVER._Lockup.svg",
|
| 11 |
+
"bytes": 8817,
|
| 12 |
+
"sha256": "835125ff8a75328ff3ec01bdaed303a5fdf5a9d94cf83d1b334a26d4c2457f07",
|
| 13 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BEST._SHEETS._EVER._Lockup.svg?v=1785445569&width=600",
|
| 14 |
+
"status": "downloaded"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"path": "static/assets/page/BKL_25-12_Bath_SP_StripedBotanicalGreen_Texture_1_x_4x2_WO__600x.jpg",
|
| 18 |
+
"bytes": 41635,
|
| 19 |
+
"sha256": "1deb42874a52ef31e23b281f96c8146eb31c3dbae891288973f925b6cfa15dbc",
|
| 20 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_25-12_Bath_SP_StripedBotanicalGreen_Texture_1_x_4x2_WO_600x.jpg",
|
| 21 |
+
"status": "downloaded"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"path": "static/assets/page/BKL_24-12_Bath_Plush_Texture_FreshMoss_1x_800x400_WO__600x.jpg",
|
| 25 |
+
"bytes": 48625,
|
| 26 |
+
"sha256": "00a2617de36d62171b94b9a98afb7027e2c02807a59f049f434211685f2ea317",
|
| 27 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_24-12_Bath_Plush_Texture_FreshMoss_1x_800x400_WO_600x.jpg",
|
| 28 |
+
"status": "downloaded"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"path": "static/assets/page/BKL_23-11_Bath_Waffle_Texture_BotanicalGreen_1x_800x400_WO__600x.jpg",
|
| 32 |
+
"bytes": 58871,
|
| 33 |
+
"sha256": "8d5db113bbd3da6c4fc75b6b94c5430647e87e39bcef3d25cf79c3c2548f02b0",
|
| 34 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_23-11_Bath_Waffle_Texture_BotanicalGreen_1x_800x400_WO_600x.jpg",
|
| 35 |
+
"status": "downloaded"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"path": "static/assets/page/BKL_26-05_Bath_Towels_Tencel_Texture_Frost_1x_4x4_WO_56a450a9-51ea-4cec-8b6f-30b820c922a8__600x.jpg",
|
| 39 |
+
"bytes": 54559,
|
| 40 |
+
"sha256": "36a0d2b473f1eb7bca261edf78c7df73302c684f6b8dc73508edec8dd84aa4c2",
|
| 41 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_26-05_Bath_Towels_Tencel_Texture_Frost_1x_4x4_WO_56a450a9-51ea-4cec-8b6f-30b820c922a8_600x.jpg",
|
| 42 |
+
"status": "downloaded"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"path": "static/assets/page/BKL_25-01_Bath_BeachTowels_Marigold_Flatlay_2x_800x400_WO__600x.jpg",
|
| 46 |
+
"bytes": 93257,
|
| 47 |
+
"sha256": "0ac230d81cb17bc2ecf8205d013044d34ad6965c8c61a0eb39da8fa20ee0cea9",
|
| 48 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_25-01_Bath_BeachTowels_Marigold_Flatlay_2x_800x400_WO_600x.jpg",
|
| 49 |
+
"status": "downloaded"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"path": "static/assets/page/hero-poster-1.jpg",
|
| 53 |
+
"bytes": 2757,
|
| 54 |
+
"sha256": "b9db0549d3d21ed6f7ece3b21065d6add0b85b7e24c102902c95ad6050b28a32",
|
| 55 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/preview_images/c0196c2c562144fc9f9242d10f7aadcc.thumbnail.0000000000_small.jpg",
|
| 56 |
+
"status": "downloaded"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"path": "static/assets/page/BKL_24-06_Bedding_Luxe_Storm_Detail_1x_400x200_WO.jpg",
|
| 60 |
+
"bytes": 25221,
|
| 61 |
+
"sha256": "5fa9d7c703082b52e763b2ee25484506cb173ec2356b3c740679069099819be5",
|
| 62 |
+
"source_url": "https://cdn.accentuate.io/288841433178/1744823737552/BKL_24-06_Bedding_Luxe_Storm_Detail_1x_400x200_WO.jpg?v=1780074014623&transform=resize=800x400",
|
| 63 |
+
"status": "downloaded"
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"path": "static/assets/page/BKL_23-05_Bedding_Classic_FreshMoss_Detail_1x_8x4_WO.jpg",
|
| 67 |
+
"bytes": 29853,
|
| 68 |
+
"sha256": "f533bfaab87fa6d9dc3fafba19872611ec0dee9775a66bf4f54be84ddddc895a",
|
| 69 |
+
"source_url": "https://cdn.accentuate.io/288841433178/1744823774149/BKL_23-05_Bedding_Classic_FreshMoss_Detail_1x_8x4_WO.jpg?v=1784124744293&transform=resize=800x400",
|
| 70 |
+
"status": "downloaded"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"path": "static/assets/page/BKL_25-07_Bedding_WashedClassic_MistChambray_Texture_1x_WO_4x2.jpg",
|
| 74 |
+
"bytes": 55426,
|
| 75 |
+
"sha256": "3f452d596351c007d598b3521a696d35b7bfc3f1d573ce2c609553f85db5d735",
|
| 76 |
+
"source_url": "https://cdn.accentuate.io/288841433178/1756997652937/BKL_25-07_Bedding_WashedClassic_MistChambray_Texture_1x_WO_4x2.jpg?v=1756997652937&transform=resize=800x400",
|
| 77 |
+
"status": "downloaded"
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"path": "static/assets/page/BKL_26-02_Bedding_Linen_OxfordStripeinAbyssChambray_Detail_1_x_8x4_WO.jpg",
|
| 81 |
+
"bytes": 121303,
|
| 82 |
+
"sha256": "5300b45e6facc24659173e5cf67c3a81bc1f2ae1f02f4bf05899cd7db650ae71",
|
| 83 |
+
"source_url": "https://cdn.accentuate.io/288841433178/1744823809523/BKL_26-02_Bedding_Linen_OxfordStripeinAbyssChambray_Detail_1_x_8x4_WO.jpg?v=1784124788835&transform=resize=800x400",
|
| 84 |
+
"status": "downloaded"
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"path": "static/assets/page/BKL_24-08_Oct_HeatheredCashmere_0131x_800x400_WO--1-.jpg",
|
| 88 |
+
"bytes": 39578,
|
| 89 |
+
"sha256": "c5aedf234e31b587f4585359d021e103ac9dbcc47d20ca3e97112157f15eb9ff",
|
| 90 |
+
"source_url": "https://cdn.accentuate.io/288841433178/1744823870162/BKL_24-08_Oct_HeatheredCashmere_0131x_800x400_WO-(1).jpg?v=1744823870162&transform=resize=800x400",
|
| 91 |
+
"status": "downloaded"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"path": "static/assets/page/260708_BKL_Q3BrandCampaign_AlanaHaim_SH_01_357x_800x800_WO__w600.jpg",
|
| 95 |
+
"bytes": 65998,
|
| 96 |
+
"sha256": "96d838c7bd2576133e64d0af98af130ac2b58c2d1bbb6b4fd695869a081ac7a0",
|
| 97 |
+
"source_url": "https://cdn.shopify.com/s/files/1/0951/7126/files/260708_BKL_Q3BrandCampaign_AlanaHaim_SH_01_357x_800x800_WO.jpg?v=1787780304&width=600",
|
| 98 |
+
"status": "downloaded"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"path": "static/assets/page/260623_BKL_Q3-08---August-Newness7057x_8x8_WO__w600.jpg",
|
| 102 |
+
"bytes": 132832,
|
| 103 |
+
"sha256": "cc92d7a8978dd13e7c61acbbd90549ceea12cc78628363d25db1448359b7c663",
|
| 104 |
+
"source_url": "https://cdn.shopify.com/s/files/1/0951/7126/files/260623_BKL_Q3-08---August-Newness7057x_8x8_WO.jpg?v=1787005329&width=600",
|
| 105 |
+
"status": "downloaded"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"path": "static/assets/page/BKL_26-06_Bath_SP_Striped-Nutmeg_Texture_1x_8x8_WO__w600.jpg",
|
| 109 |
+
"bytes": 147120,
|
| 110 |
+
"sha256": "3408d6d00ec90f42d3d43f18f33972f3b2ec9ba1e103fc618efff77e065c5907",
|
| 111 |
+
"source_url": "https://cdn.shopify.com/s/files/1/0951/7126/files/BKL_26-06_Bath_SP_Striped-Nutmeg_Texture_1x_8x8_WO.jpg?v=1787005329&width=600",
|
| 112 |
+
"status": "downloaded"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"path": "static/assets/page/BKL_26-04_WaffleWorld_Look5_5330x_1x1_WO__w600.jpg",
|
| 116 |
+
"bytes": 58366,
|
| 117 |
+
"sha256": "17106c239f634cbd432ba609a65abc416bf4ab0a324c728a7b5c63e02c720310",
|
| 118 |
+
"source_url": "https://cdn.shopify.com/s/files/1/0951/7126/files/BKL_26-04_WaffleWorld_Look5_5330x_1x1_WO.jpg?v=1782955153&width=600",
|
| 119 |
+
"status": "downloaded"
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"path": "static/assets/page/BKL_26-04_BKL_LuxeOverheads_Look2_0249x_1x1_WO__w600.jpg",
|
| 123 |
+
"bytes": 56398,
|
| 124 |
+
"sha256": "59104dbf630a2346209d475164d7a2eee98f7c4c9cb8f752995b0fc926827d66",
|
| 125 |
+
"source_url": "https://cdn.shopify.com/s/files/1/0951/7126/files/BKL_26-04_BKL_LuxeOverheads_Look2_0249x_1x1_WO.jpg?v=1782955153&width=600",
|
| 126 |
+
"status": "downloaded"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"path": "static/assets/page/260623_BKL_Q3-08---August-Newness7314x_8x8_WO__w600.jpg",
|
| 130 |
+
"bytes": 115746,
|
| 131 |
+
"sha256": "1adf28fcf3a234819ff86dba12805df157fa81e4ae15c0cdf0d6b40bf1651f1c",
|
| 132 |
+
"source_url": "https://cdn.shopify.com/s/files/1/0951/7126/files/260623_BKL_Q3-08---August-Newness7314x_8x8_WO.jpg?v=1787005329&width=600",
|
| 133 |
+
"status": "downloaded"
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"path": "static/assets/page/BKL_26-04_WaffleWorld_Look11_0527x_1x1_WO_2__w600.jpg",
|
| 137 |
+
"bytes": 106484,
|
| 138 |
+
"sha256": "bb46cc31e1fcaa6dea3d9021540846777b9375d08211ea1a394cc7b9a58ba3e8",
|
| 139 |
+
"source_url": "https://cdn.shopify.com/s/files/1/0951/7126/files/BKL_26-04_WaffleWorld_Look11_0527x_1x1_WO_2.jpg?v=1782745573&width=600",
|
| 140 |
+
"status": "downloaded"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"path": "static/assets/page/260708_BKL_Q3BrandCampaign_RobbyHoffman_SH_01_149x_800x800_WO__w600.jpg",
|
| 144 |
+
"bytes": 89405,
|
| 145 |
+
"sha256": "efad66d9caa2d75929d00c944a77e486f0df7f609121fe83b47db6bcddc01401",
|
| 146 |
+
"source_url": "https://cdn.shopify.com/s/files/1/0951/7126/files/260708_BKL_Q3BrandCampaign_RobbyHoffman_SH_01_149x_800x800_WO.jpg?v=1787780299&width=600",
|
| 147 |
+
"status": "downloaded"
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"path": "static/assets/page/BKL_26-04_WaffleWorld_Look3_4824x_PDP_WO_71c5add5-3dbf-4940-812c-ba635e9268e1__w600.jpg",
|
| 151 |
+
"bytes": 161477,
|
| 152 |
+
"sha256": "2710c0b2431d14ad0ad2e252aaf1eaaf973713e9bf5b29952f82980f4bde8ac1",
|
| 153 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_26-04_WaffleWorld_Look3_4824x_PDP_WO_71c5add5-3dbf-4940-812c-ba635e9268e1.jpg?v=1786658032&width=600",
|
| 154 |
+
"status": "downloaded"
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"path": "static/assets/page/260623_BKL_Q3-08---August-Newness7012x_8x9_WO_fff7634a-13fe-482c-b597-6c9cd72e1bff__w600.jpg",
|
| 158 |
+
"bytes": 182053,
|
| 159 |
+
"sha256": "c840c2713527c5a1384282fb01f4a603599b6a79ee2334dd764a5fea3e29fe75",
|
| 160 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/260623_BKL_Q3-08---August-Newness7012x_8x9_WO_fff7634a-13fe-482c-b597-6c9cd72e1bff.jpg?v=1787323994&width=600",
|
| 161 |
+
"status": "downloaded"
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"path": "static/assets/page/BKL_26-01_AprNewArrivals_Look2_304x_8x9_WO_1cf12f7b-2e0a-4566-977a-6891d4087461__w600.jpg",
|
| 165 |
+
"bytes": 116546,
|
| 166 |
+
"sha256": "767ae5453014c57f38a3f696620628a96860e4340d43a571cc3baeb0f08cfed4",
|
| 167 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_26-01_AprNewArrivals_Look2_304x_8x9_WO_1cf12f7b-2e0a-4566-977a-6891d4087461.jpg?v=1786654314&width=600",
|
| 168 |
+
"status": "downloaded"
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"path": "static/assets/page/BEST._SHEETS._EVER._Lockup__w600.svg",
|
| 172 |
+
"bytes": 8817,
|
| 173 |
+
"sha256": "835125ff8a75328ff3ec01bdaed303a5fdf5a9d94cf83d1b334a26d4c2457f07",
|
| 174 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BEST._SHEETS._EVER._Lockup.svg?v=1785445569&width=600",
|
| 175 |
+
"status": "downloaded"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"path": "static/assets/page/BKL_25-11_Bedding_Classic_TandemStripeInFreshMoss_CSS_1_x_PDP_WO_193a243a-c70e-47be-9910__w600.jpg",
|
| 179 |
+
"bytes": 33971,
|
| 180 |
+
"sha256": "4a272bdea0e7a2b52449e8b8021a248144e472f754c42cfed647d40519391e8d",
|
| 181 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_25-11_Bedding_Classic_TandemStripeInFreshMoss_CSS_1_x_PDP_WO_193a243a-c70e-47be-9910-024c0bebc7ac.jpg?v=1780413020&width=600",
|
| 182 |
+
"status": "downloaded"
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"path": "static/assets/page/BKL_25-07_Bedding_Classic_Oak_DUV_1x_WOgrey_566188f2-66de-4c4c-897a-ef7af68f1ccd__w600.jpg",
|
| 186 |
+
"bytes": 20470,
|
| 187 |
+
"sha256": "bb8458ca0ca07e9093c4d25d55bdf68af7fc4141a1feaed1e9f784407310de98",
|
| 188 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_25-07_Bedding_Classic_Oak_DUV_1x_WOgrey_566188f2-66de-4c4c-897a-ef7af68f1ccd.jpg?v=1761079065&width=600",
|
| 189 |
+
"status": "downloaded"
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"path": "static/assets/page/BKL_25-06_Bedding_Luxe_WarmTerracotta_COR_1x_PDP_WOgrey_97360d64-627f-428a-8bb2-14a618f9__w600.jpg",
|
| 193 |
+
"bytes": 23894,
|
| 194 |
+
"sha256": "d541eba0529d030e8c6dc441999bbcbb085c209d0c9d44045c1408476c84d442",
|
| 195 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_25-06_Bedding_Luxe_WarmTerracotta_COR_1x_PDP_WOgrey_97360d64-627f-428a-8bb2-14a618f97c2e.jpg?v=1786985717&width=600",
|
| 196 |
+
"status": "downloaded"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"path": "static/assets/page/BKL_26-05_Bedding_Luxe_Aegean_HCB_1x_PDP_WOgrey__w600.jpg",
|
| 200 |
+
"bytes": 23921,
|
| 201 |
+
"sha256": "068c8e95827398b773b093d7e82c41ff3e58e67b3a9fcdffb9b101bf9a254d6c",
|
| 202 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_26-05_Bedding_Luxe_Aegean_HCB_1x_PDP_WOgrey.jpg?v=1781541478&width=600",
|
| 203 |
+
"status": "downloaded"
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"path": "static/assets/page/BKL_25-08_Bedding_Classic_Frost_PC_1x_WOgrey_457fc8fc-500f-49ff-abf4-f54ccb86ec60__w600.jpg",
|
| 207 |
+
"bytes": 12933,
|
| 208 |
+
"sha256": "999450158474b05803443cc6a4a5bd5d9038b3a04f92114c6b4fb48ee6672fb0",
|
| 209 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_25-08_Bedding_Classic_Frost_PC_1x_WOgrey_457fc8fc-500f-49ff-abf4-f54ccb86ec60.jpg?v=1773329639&width=600",
|
| 210 |
+
"status": "downloaded"
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"path": "static/assets/page/BKL_25-11_Bedding_Luxe_TandemStripeInPebble_NFSS_2_x_PDP_WO_46deaa99-9d68-4326-95ee-0fe7__w600.jpg",
|
| 214 |
+
"bytes": 27052,
|
| 215 |
+
"sha256": "efd42038702e9bd70b868ca677809cbec77d1d543b33b1345e1001f353e3b73f",
|
| 216 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_25-11_Bedding_Luxe_TandemStripeInPebble_NFSS_2_x_PDP_WO_46deaa99-9d68-4326-95ee-0fe7602698e7.jpg?v=1779128465&width=600",
|
| 217 |
+
"status": "downloaded"
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"path": "static/assets/page/BEST._SHEETS._EVER._Lockup__w1600.svg",
|
| 221 |
+
"bytes": 8817,
|
| 222 |
+
"sha256": "835125ff8a75328ff3ec01bdaed303a5fdf5a9d94cf83d1b334a26d4c2457f07",
|
| 223 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BEST._SHEETS._EVER._Lockup.svg?v=1785445569&width=1600",
|
| 224 |
+
"status": "downloaded"
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"path": "static/assets/page/260623_BKL_Q3-08---August-Newness7012x_8x9_WO__w500.jpg",
|
| 228 |
+
"bytes": 144169,
|
| 229 |
+
"sha256": "cb0ea0c54b4f58784549864c8c713e5f1839f73b39333465644426ce6f64fc01",
|
| 230 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/260623_BKL_Q3-08---August-Newness7012x_8x9_WO.jpg?v=1786993419&width=500",
|
| 231 |
+
"status": "downloaded"
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"path": "static/assets/page/260623_BKL_Q3-08---August-Newness7280x_8x9_WO__w500.jpg",
|
| 235 |
+
"bytes": 62706,
|
| 236 |
+
"sha256": "ddb6a9ee4e8203fb5037330f37c20a9cf96c4ace57b92249dc5984b3b52bfabb",
|
| 237 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/260623_BKL_Q3-08---August-Newness7280x_8x9_WO.jpg?v=1786993419&width=500",
|
| 238 |
+
"status": "downloaded"
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"path": "static/assets/page/15_off_Badge__w500.png",
|
| 242 |
+
"bytes": 9935,
|
| 243 |
+
"sha256": "6ad352bf94edf8d3554d41c15eedade5e67f0fecf487759fcd8e426b0376983a",
|
| 244 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/15_off_Badge.png?v=1749222663&width=500",
|
| 245 |
+
"status": "downloaded"
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"path": "static/assets/page/BKL_25111_UtilityEducation_Scene2Shot2_071x_8x9_WO__w500.jpg",
|
| 249 |
+
"bytes": 51786,
|
| 250 |
+
"sha256": "6d34b10eadb7616095430341f0621d9782357e8a18cc523ed254848ef6f56699",
|
| 251 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_25111_UtilityEducation_Scene2Shot2_071x_8x9_WO.jpg?v=1767798200&width=500",
|
| 252 |
+
"status": "downloaded"
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"path": "static/assets/page/BKL_26-04_WaffleWorld_Look5_5297x_8x9_WO__w500.jpg",
|
| 256 |
+
"bytes": 77466,
|
| 257 |
+
"sha256": "a1ebb9af9bf97fee08727cae2c2706977707a1598973595d5d6e64c066277027",
|
| 258 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_26-04_WaffleWorld_Look5_5297x_8x9_WO.jpg?v=1784055442&width=500",
|
| 259 |
+
"status": "downloaded"
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"path": "static/assets/page/BKL_26-05_Tencel_Look4_989x_8x9_WO__w500.jpg",
|
| 263 |
+
"bytes": 53422,
|
| 264 |
+
"sha256": "bc6141b8e505d13fd273ef0b39199c50f22d99f32c715c4d60ca2f68e11be485",
|
| 265 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_26-05_Tencel_Look4_989x_8x9_WO.jpg?v=1784055442&width=500",
|
| 266 |
+
"status": "downloaded"
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"path": "static/assets/page/260623_BKL_Q3-08---August-Newness7070x_BLUR_8x9_WO__w500.jpg",
|
| 270 |
+
"bytes": 104864,
|
| 271 |
+
"sha256": "805adaf41a9e8002fe7ccf70127e4976a14098e6cb3ff9054612792f996757c2",
|
| 272 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/260623_BKL_Q3-08---August-Newness7070x_BLUR_8x9_WO.jpg?v=1786993419&width=500",
|
| 273 |
+
"status": "downloaded"
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"path": "static/assets/page/BKL_26-04_WaffleWorld_Look3_4824x_PDP_WO_71c5add5-3dbf-4940-812c-ba635e9268e1__w500.jpg",
|
| 277 |
+
"bytes": 115460,
|
| 278 |
+
"sha256": "cd77bc684d7da2dd2fa53396aaabae3656d57dc761470faf3f5437440dbbaceb",
|
| 279 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_26-04_WaffleWorld_Look3_4824x_PDP_WO_71c5add5-3dbf-4940-812c-ba635e9268e1.jpg?v=1786658032&width=500",
|
| 280 |
+
"status": "downloaded"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"path": "static/assets/page/260623_BKL_Q3-08---August-Newness7012x_8x9_WO_fff7634a-13fe-482c-b597-6c9cd72e1bff__w500.jpg",
|
| 284 |
+
"bytes": 127332,
|
| 285 |
+
"sha256": "ebc35134fd54428b6234b6bd12227cfcdb2f71df65f913fa279fd8c55799ba87",
|
| 286 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/260623_BKL_Q3-08---August-Newness7012x_8x9_WO_fff7634a-13fe-482c-b597-6c9cd72e1bff.jpg?v=1787323994&width=500",
|
| 287 |
+
"status": "downloaded"
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"path": "static/assets/page/BKL_26-01_AprNewArrivals_Look2_304x_8x9_WO_1cf12f7b-2e0a-4566-977a-6891d4087461__w500.jpg",
|
| 291 |
+
"bytes": 85005,
|
| 292 |
+
"sha256": "1a22ee5b86ed805479a5275c33a18256708f962e5057a5ca3a327e1a372c1130",
|
| 293 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/BKL_26-01_AprNewArrivals_Look2_304x_8x9_WO_1cf12f7b-2e0a-4566-977a-6891d4087461.jpg?v=1786654314&width=500",
|
| 294 |
+
"status": "downloaded"
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"path": "static/assets/page/logo--wirecutter__w300.png",
|
| 298 |
+
"bytes": 14396,
|
| 299 |
+
"sha256": "98c26c56f8b85131c1451a9bb8f36aa15ce5bd8be18175add938e6493295962c",
|
| 300 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/logo--wirecutter.png?v=1649869031&width=300",
|
| 301 |
+
"status": "downloaded"
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"path": "static/assets/page/logo--good-housekeeping__w300.png",
|
| 305 |
+
"bytes": 26371,
|
| 306 |
+
"sha256": "ed243823de5bd9b2ad86dbc1deefacf7f96146c6665cd3d0c1c8b2571d17244f",
|
| 307 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/logo--good-housekeeping.png?v=1649869031&width=300",
|
| 308 |
+
"status": "downloaded"
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"path": "static/assets/page/logo--architectural-digest__w300.png",
|
| 312 |
+
"bytes": 2762,
|
| 313 |
+
"sha256": "fa3acec9f0708172856c376b425e61b0f6adfea2124880dc3c4f4db9130ecda0",
|
| 314 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/logo--architectural-digest.png?v=1649874685&width=300",
|
| 315 |
+
"status": "downloaded"
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"path": "static/assets/page/6155f04bb97efe856be28f0d_Good_Morning_America__w300.png",
|
| 319 |
+
"bytes": 42196,
|
| 320 |
+
"sha256": "057b0052160312ca98f50ed536255c1e0378e14b20b49790452290ce1ad3fb83",
|
| 321 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/6155f04bb97efe856be28f0d_Good_Morning_America.png?v=1728421024&width=300",
|
| 322 |
+
"status": "downloaded"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"path": "static/assets/page/logo--vogue__w300.png",
|
| 326 |
+
"bytes": 9147,
|
| 327 |
+
"sha256": "d505ea4dc9725934ce4cfa741afb928de52cbf6059662cfe598274ae0bb5a31c",
|
| 328 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/logo--vogue.png?v=1649869031&width=300",
|
| 329 |
+
"status": "downloaded"
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"path": "static/assets/page/Bedding_Bundles_8x9_22c62d8b-63e5-45ff-a9cd-9099b3c8da68__w600.jpg",
|
| 333 |
+
"bytes": 49155,
|
| 334 |
+
"sha256": "c034b410ec0bd7cd3bfc2d0079a17f355f7fd7cfc42fbea38835b3f56e166e0b",
|
| 335 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/Bedding_Bundles_8x9_22c62d8b-63e5-45ff-a9cd-9099b3c8da68.webp?v=1786654382&width=600&format=jpg",
|
| 336 |
+
"status": "downloaded"
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"path": "static/assets/page/Bedding_Bundles_8x9_22c62d8b-63e5-45ff-a9cd-9099b3c8da68__w500.jpg",
|
| 340 |
+
"bytes": 37613,
|
| 341 |
+
"sha256": "5f537a55ae4213eda5b7858cb4065ee7cdf7f6a8a5023786e14baea62b8a1182",
|
| 342 |
+
"source_url": "https://www.brooklinen.com/cdn/shop/files/Bedding_Bundles_8x9_22c62d8b-63e5-45ff-a9cd-9099b3c8da68.webp?v=1786654382&width=500&format=jpg",
|
| 343 |
+
"status": "downloaded"
|
| 344 |
+
}
|
| 345 |
+
]
|
tasks/brooklinen/solution/site/implementation/clone/data/swatches.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/brooklinen/solution/site/implementation/clone/requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi>=0.115
|
| 2 |
+
uvicorn>=0.30
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/012126_BKL_Q1MarchLilos9149_x_PDP_WO_30df4e95-cf28-46e2-9108-06a745d4eb5a__600x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/12_Bedding_CuratedBundle_WashedClassic_TonalBundleInSeaSpray_Starter_1xa_PDP_WO__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/250723_WashedClassicOverhead7372x_PDP_WO_114fa573-eb14-4783-82cc-49283a67b8d1__600x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/36697cd395bb478e85b1f4219fedc6b0__600x.png
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK0655_1__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK07DE_1__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK3A1A_1__600x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK6CE2_1__1000x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK6CE2_1__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK92A8_1__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BK9711_1__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_22-07_HomeFragrance_8ozCandle_BrightIdea_1x_WOgrey__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-01_Laundry_Bath_Wool_Dryer_Balls_1x_WOgrey__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_COR_1x_WOgrey_82b5b6f5-9a41-462d-a6d0-3bc087f02041__600x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_DUV_1x_WOgrey__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_PC_2x_WOgrey_4f1cac79-4ccf-4329-aba7-8468274ea4be__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_PC_2x_WOgrey_4f1cac79-4ccf-4329-aba7-8468274ea4be__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-05_Bedding_ClassicLuxe_White_PC_2x_WOgrey__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-06_Bedding_ClassicLuxe_Cream_PCDUVSet_1x_WOgrey_fc4a9704-1848-4b9c-ae18-192e0e17382__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-06_Bedding_ClassicLuxe_Cream_PCDUVSet_Bundle_1x_9c662093-d6da-4a58-8885-95f6123c8de__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-07_Bath_Robe_StripedMidnightNavy_Flat_1x_WOgrey_2cc0e48b-f194-4283-b0e6-919b0dbe6b1__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-08_Bedding_ClassicLuxe_Abyss_PCDUVSet_1x_WOgrey_9fa7e067-af2a-4b3e-9b68-470ac0e928d__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Robe_Smoke_Flat_1x_ec9384cd-1640-456e-9e12-ed2bb85b5d36__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Robe_White_Flat_1x_c16809ff-2055-4153-bbef-c918024fc2b2__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_BSB_Vanilla_White_1x_WOgrey__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_BTB_White_1x_WOgrey__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_Texture_White_1x_WOgrey_37268f01-3cfb-4306-80c5-41886a18f661__600x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_Texture_White_1x_WOgrey_8f6f8196-4d94-4f57-8812-f74a950e515b__600x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-09_Bath_Waffle_Texture_White_1x_WOgrey_a942b2b4-8b56-4925-bc76-4f719060e345__600x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-11_Bath_Waffle_Texture_BotanicalGreen_1x_WOgrey_4ff97974-03a4-4425-8205-c85c96ac30e__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_23-12_Bath_WaffleTowels_Look6_HZx_PDP_WO_879969da-33ca-4bf3-8193-b1999b767345__600x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_24-01_Bath_RobeTowelBundle_White_1x_WOgrey_2_02111bec-c243-49f5-82c6-c78ae2c9dff7__150x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_24-01_Bath_Waffle_Robe_BotanicalGreen_Flat_1x_WOgrey__400x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_24-01_Bath_Waffle_Robe_White_Flat_1x_WOgrey__600x.jpg
ADDED
|
Git LFS Details
|
tasks/brooklinen/solution/site/implementation/clone/static/assets/img/BKL_24-03_Bedding_Insert_Pillow_Throw_1x_WOgrey__400x.jpg
ADDED
|
Git LFS Details
|