@stapel/listings-react 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/CHANGELOG.md +197 -0
  2. package/dist/api/types.d.ts +10 -0
  3. package/dist/api/types.d.ts.map +1 -1
  4. package/dist/api/types.js.map +1 -1
  5. package/dist/default/ListingCard.d.ts +2 -2
  6. package/dist/default/ListingCard.d.ts.map +1 -1
  7. package/dist/default/ListingCard.js +8 -2
  8. package/dist/default/ListingCard.js.map +1 -1
  9. package/dist/default/ListingComposerPage.d.ts +22 -62
  10. package/dist/default/ListingComposerPage.d.ts.map +1 -1
  11. package/dist/default/ListingComposerPage.js +228 -56
  12. package/dist/default/ListingComposerPage.js.map +1 -1
  13. package/dist/default/ListingDetailPane.d.ts +2 -2
  14. package/dist/default/ListingDetailPane.d.ts.map +1 -1
  15. package/dist/default/ListingDetailPane.js +6 -1
  16. package/dist/default/ListingDetailPane.js.map +1 -1
  17. package/dist/default/ListingSerpCard.d.ts +2 -2
  18. package/dist/default/ListingSerpCard.d.ts.map +1 -1
  19. package/dist/default/ListingSerpCard.js +7 -2
  20. package/dist/default/ListingSerpCard.js.map +1 -1
  21. package/dist/default/index.d.ts +2 -2
  22. package/dist/default/index.d.ts.map +1 -1
  23. package/dist/default/index.js +1 -1
  24. package/dist/default/index.js.map +1 -1
  25. package/dist/default/types.d.ts +21 -0
  26. package/dist/default/types.d.ts.map +1 -1
  27. package/dist/headless/ListingComposer.d.ts +11 -0
  28. package/dist/headless/ListingComposer.d.ts.map +1 -1
  29. package/dist/headless/ListingComposer.js +31 -6
  30. package/dist/headless/ListingComposer.js.map +1 -1
  31. package/dist/headless/ListingDetail.d.ts +16 -1
  32. package/dist/headless/ListingDetail.d.ts.map +1 -1
  33. package/dist/headless/ListingDetail.js +13 -4
  34. package/dist/headless/ListingDetail.js.map +1 -1
  35. package/dist/i18n/es.d.ts.map +1 -1
  36. package/dist/i18n/es.js +4 -0
  37. package/dist/i18n/es.js.map +1 -1
  38. package/dist/i18n/keys.d.ts +10 -0
  39. package/dist/i18n/keys.d.ts.map +1 -1
  40. package/dist/i18n/keys.js +16 -0
  41. package/dist/i18n/keys.js.map +1 -1
  42. package/dist/i18n/ru.d.ts.map +1 -1
  43. package/dist/i18n/ru.js +4 -0
  44. package/dist/i18n/ru.js.map +1 -1
  45. package/dist/index.d.ts +2 -1
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +1 -1
  48. package/dist/index.js.map +1 -1
  49. package/dist/model/features.d.ts +90 -20
  50. package/dist/model/features.d.ts.map +1 -1
  51. package/dist/model/features.js +148 -17
  52. package/dist/model/features.js.map +1 -1
  53. package/dist/model/validation.d.ts +32 -0
  54. package/dist/model/validation.d.ts.map +1 -1
  55. package/dist/model/validation.js +82 -1
  56. package/dist/model/validation.js.map +1 -1
  57. package/dist/nav/manifest.d.ts.map +1 -1
  58. package/dist/nav/manifest.js +2 -0
  59. package/dist/nav/manifest.js.map +1 -1
  60. package/llms.txt +1 -1
  61. package/manifest.json +8 -1
  62. package/nav-manifest.json +3 -1
  63. package/package.json +7 -7
  64. package/src/analytics/generated/events.json +1 -1
  65. package/src/api/types.ts +10 -0
  66. package/src/default/ListingCard.tsx +17 -4
  67. package/src/default/ListingComposerPage.tsx +221 -36
  68. package/src/default/ListingDetailPane.tsx +10 -6
  69. package/src/default/ListingSerpCard.tsx +13 -4
  70. package/src/default/index.ts +7 -2
  71. package/src/default/types.ts +22 -0
  72. package/src/headless/ListingComposer.tsx +47 -6
  73. package/src/headless/ListingDetail.tsx +37 -10
  74. package/src/i18n/es.ts +5 -0
  75. package/src/i18n/keys.ts +17 -0
  76. package/src/i18n/ru.ts +5 -0
  77. package/src/index.ts +3 -0
  78. package/src/model/features.ts +253 -35
  79. package/src/model/validation.ts +84 -1
  80. package/src/nav/manifest.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,202 @@
1
1
  # @stapel/listings-react
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0eab206: A published listing prints its option COPY wherever the copy exists, and the
8
+ composer's characteristics step is reachable on a phone.
9
+
10
+ **The copy.** A `select` DAO carries the chosen values and the display config,
11
+ never the option table — the table lives on the CATEGORY, and not needing it
12
+ is what lets a card draw a badge without a category read. A row written before
13
+ the server started snapshotting labels therefore had nothing to resolve
14
+ against, and the STORAGE SLUG reached the screen: a live classified deployment
15
+ printed `b-u`, `bez-defektov` and `ne-rabotaet-vspyshka` on its spec rows.
16
+ `featureFromDao(dao, { categoryFeatures })` adds the third and last source of
17
+ copy, with the precedence written out: a row carrying its own `options` table
18
+ is left alone, then the row's own `labels` snapshot, then the CATEGORY's
19
+ option table, then the raw value. The snapshot wins over the category on
20
+ purpose — it is what the listing was PUBLISHED with, and the whole reason the
21
+ server takes one is that a category edited afterwards must not silently
22
+ restate an old listing. A category def is used only when slug AND value type
23
+ match, so a renamed feature is ignored rather than forced, and a value the
24
+ catalogue no longer declares still prints itself rather than vanishing or
25
+ being invented. `hierarchical_select` gets the same repair, its tree adopted
26
+ whole because no positional snapshot can describe one. `<ListingDetailPane>`,
27
+ `<ListingCard>`, `<ListingSerpCard>`, `<ListingDetail>` and `useListingDetail`
28
+ take the optional `categoryFeatures`; a host that wires nothing is unchanged.
29
+
30
+ **The composer.** On a 390px viewport the characteristics of the chosen
31
+ category began about 1.8 viewports below the fold, under a 700px photo
32
+ dropzone, with no step indicator and nothing saying they existed — while the
33
+ footer counted ten unfilled required details, none of them on screen.
34
+
35
+ - Below `COMPOSER_STACKED_BELOW` the characteristics render directly under the
36
+ category choice and ABOVE the photos; at or above it they stay where they
37
+ were. The threshold is measured on the FORM's own width via `useElementWidth`
38
+ — a composer in a 400px panel on a desktop is a narrow composer — and an
39
+ unmeasured element falls to the wide arm.
40
+ - The placeholder said "loading the category's characteristics" when nothing
41
+ was in flight and no category had been chosen. That is now its own fourth
42
+ state with its own sentence, en/ru/es.
43
+ - `ListingComposerBag.firstUnsatisfied` names the first refused field in the
44
+ form's own order, and the closed gate renders a real button (accessible
45
+ name, focus AND scroll) that takes the person to it. A count of ten with
46
+ nothing on screen is a dead end.
47
+ - A field showing a refusal now drops its hint instead of stacking on it: the
48
+ refusal is the more specific statement and the one just earned.
49
+ - The whole attribute region carried exactly one test id. `attributes-fields`,
50
+ `attributes-group-<group>`, `attributes-group-<group>-heading` and
51
+ `attributes-row-<slug>` (with `featureSectionTestId` / `featureRowTestId`
52
+ exported) make it measurable, and the row id sits on the same element with
53
+ or without a host `renderRow`.
54
+
55
+ - 9a123b9: A stored `select` prints its option copy, not the storage slug.
56
+
57
+ A DAO carries the value and the display config, never the option table — the
58
+ table lives on the category, and not needing it is what lets a card render a
59
+ badge without a category read. `formatFeatureValue` resolves an option's copy
60
+ out of `config.options`, so with no table it fell through to `String(value)`
61
+ and the SLUG reached the screen: a live classified deployment printed
62
+ "Condition: b-u" on its spec rows and a subtitle of three slugs on its cards.
63
+
64
+ The identity table `featureFromDao` synthesized (`{value: v, label: v}`) only
65
+ ever answered for a TRANSLATABLE catalogue, whose labels are its keys. The
66
+ catalogues that produced those screens set `translatable_options: false` and
67
+ carry literal copy on the category, so `t("b-u")` returned `"b-u"` and there
68
+ was nothing else to fall back to.
69
+
70
+ - `featureFromDao` now builds the option table from the DAO's write-time
71
+ `labels` snapshot — the `string[]` positionally aligned with `value` that
72
+ `ref_select` has always carried and that `select` carries from the
73
+ stapel-attributes release which snapshots option copy. The copy a listing was
74
+ published with is the copy it prints, whatever the category has become since.
75
+ - A row written before that release carries no `labels` key and keeps the
76
+ identity table exactly as it behaved: a translatable catalogue still reads
77
+ out of the host's bundle, and a non-translatable one still shows the slug
78
+ until the listing is re-projected. A visible slug gets fixed; an invented
79
+ label ships wrong.
80
+ - A snapshot whose length differs from `value` is dropped WHOLE rather than
81
+ paired over its overlap, which is the engine's own rule: one option's copy
82
+ printed against another option's value does not look wrong.
83
+ - `ListingFeatureDao` declares `labels?: readonly string[]`.
84
+
85
+ Minor rather than patch: the fix rides on a new optional wire field and changes
86
+ what every listing surface renders. `ListingCard`, `ListingSerpCard`,
87
+ `ListingDetailPane` and the `ListingDetail` headless bag all split their DAOs
88
+ through this one function, so no surface needed its own patch — and a host
89
+ snapshotting card or detail output will see the labels change.
90
+
91
+ - 8d1e20f: The phone dock stops truncating its labels, stops covering the footer, and the
92
+ phone SERP gets a one-line toolbar instead of four stacked rows.
93
+
94
+ **A compact label for a compact chrome.** `NavEntry.shortLabelKey` (core) is an
95
+ optional second i18n key a manifest declares when its menu label cannot fit a
96
+ dock cell. A five-item dock at 390px gives each destination about ten
97
+ characters, and a label written for a menu row ellipsizes mid-word — a
98
+ destination a person has to guess at, which is the one thing a dock must not
99
+ produce. A key and not a length hint, because which words survive the cut is a
100
+ translator's judgement: the useful short form of "Post a listing" is the verb,
101
+ of "My listings" the noun, and no truncation rule finds either. `resolveNav`
102
+ carries it through, `<NavDock>` prints it and keeps the LONG label as the
103
+ link's accessible name; `listings-react` declares one for `compose` and `mine`.
104
+ The dock also drops its inter-cell gap and one inset step — 24px given back to
105
+ five labels — and `scripts/gen-nav-manifest.mjs` validates the new field.
106
+
107
+ **The clearance belongs to the page, not the content.** The island is fixed
108
+ over the last thing on the page, and the last thing is the footer. Reserving
109
+ `DOCK_CLEARANCE` on `<Layout.Content>` cleared the final card and left the
110
+ footer's legal links permanently under the island. `<PublicShell>` reserves it
111
+ on the page column instead, and only when `dockRenders(nav)` says an island
112
+ will actually be drawn — a one-entry nav used to get a strip of empty page
113
+ under a dock nobody rendered.
114
+
115
+ **A phone toolbar that is one row.** `<SearchResultsPane header="compact">`
116
+ gives the toolbar its own line and puts the count directly above the cards as
117
+ their caption, with the heading visually hidden but still in the document
118
+ outline; the banner shape (heading | count + toolbar) is unchanged and
119
+ remains the default. `<SortSelect compact>` drops the caption and the 200px
120
+ floor so the control shares a row, and moves the blocked `distance` option's
121
+ REASON into the option's own label — on a phone, where that refusal is most
122
+ common, a separate reason row costs a band of viewport above the first result.
123
+ `<FilterChips>` takes `geoChip={false}` for a surface that already states the
124
+ location above it (the phone SERP mounts `<LocationSummaryLine>`, and the two
125
+ together asked about one filter twice), and renders NOTHING when it would be a
126
+ row of one button — a free-text query has no category, so the server returns no
127
+ facet plan, and the row was a lone circle floating between two working filter
128
+ affordances. `<LocationSummaryLine>` says "Filters", not "All filters": that
129
+ end of the row shares 390px with a place name.
130
+
131
+ **Tiles say which category they are.** `<CategoryTileGrid>` draws the
132
+ category's own initial where art is missing, instead of a muted disc. A live
133
+ catalogue put nine identical grey discs on one landing — every category there
134
+ carries an empty `carousel_icon`, which is the state every catalogue is in
135
+ until somebody uploads art — and a grid of them reads as nine images still
136
+ loading. A letter cannot be mistaken for a pending image, and every tile
137
+ differs from every other.
138
+
139
+ **`visuallyHidden`** (tokens-antd `/skin`) is the fleet's one off-screen-but-
140
+ announced style. It was written twice before, in `calendar-react` and
141
+ `search-react`, and the two disagreed on `clip-path` versus the deprecated
142
+ `clip`; both now import it.
143
+
144
+ ### Patch Changes
145
+
146
+ - e738b83: Regenerated against the contracts the fleet actually installs.
147
+
148
+ `contract-pins.json` moves stapel-search 0.4.0 → 0.7.0 and stapel-categories
149
+ 0.7.0 → 0.9.0 — the two pins the freshness gate reported as three and two
150
+ minors behind, and the two versions a live classified deployment now runs. A
151
+ pair regenerated from a stale pin is internally consistent and wrong about the
152
+ wire, which is the whole reason the gate exists.
153
+
154
+ What the regeneration brings in:
155
+
156
+ - `search-react`'s `GET /suggest` grows `categories[]` — a destination per row
157
+ with its full ancestor path, the number of LIVE listings behind it and a
158
+ `category` string to pass verbatim to `/query`, ranked by that count. The
159
+ answer is now public and conditional (`Cache-Control` + `ETag`), which is
160
+ what makes a per-keystroke read reasonable.
161
+ - `categories-react`'s feature-config union gains `group` — attributes v2's
162
+ container type, whose config holds its children as raw dicts each
163
+ discriminated by its own `type`, plus an optional `repeat`. The pair's
164
+ discriminator contract test pins thirteen members instead of twelve; it
165
+ checks in both directions on purpose, and this is the direction that was
166
+ supposed to fire.
167
+ - `calendar-react` and `search-react` raise their `@stapel/tokens-antd` peer
168
+ floor to the release that first ships `visuallyHidden`, which both now
169
+ import. The monorepo cannot catch that by building — in here every package
170
+ compiles against the workspace peer, never against its own declared floor —
171
+ so only a consumer installing at the floor would have found it, after the
172
+ release.
173
+
174
+ ## 0.11.0
175
+
176
+ ### Minor Changes
177
+
178
+ - 5f9b005: A refused save is read on the control that caused it, not as a wall.
179
+
180
+ `save-draft` and `create` answer a bad field with the ordinary error envelope
181
+ carrying `params.field`, not with the publish batch — and only the batch had a
182
+ door into the composer's per-control routing. So a draft refused for one
183
+ over-precise coordinate painted two identical "Validation error" plaques over
184
+ the footer (a publish saves first, so both failures were the same 400) and
185
+ left all thirty-odd controls clean. The field name was in the response the
186
+ whole time, and is often the only thing in it that says what went wrong: a DRF
187
+ code the error registry does not know collapses to the generic
188
+ `error.400.validation_error`, whose sentence is "Validation error" and nothing
189
+ else.
190
+
191
+ - New `envelopeFieldErrors(thrown)` maps an envelope's API field name onto the
192
+ control that holds it — including both halves of the coordinate pair onto
193
+ the one location field — and is exported for hosts that render their own
194
+ composer.
195
+ - `useListingComposer().fieldErrors` now carries save/create refusals as well
196
+ as publish-batch ones.
197
+ - `ListingComposerPage` banners only what has nowhere else to go: a refusal
198
+ that reached a control is read there, once.
199
+
3
200
  ## 0.10.0
4
201
 
5
202
  ### Minor Changes
@@ -140,6 +140,16 @@ export interface ListingFeatureDao {
140
140
  * can lack it and a JSONField will pass that through. */
141
141
  readonly type?: ListingFeatureType;
142
142
  readonly value?: unknown;
143
+ /**
144
+ * The write-time LABEL SNAPSHOT: the copy each entry of `value` had when the
145
+ * listing was stored, positionally aligned with it, one entry per value.
146
+ * `ref_select`/`ref_hierarchical_select` have always carried it (their codes
147
+ * name vocabulary terms no display package can reach) and `select` carries
148
+ * it from the release that snapshots option copy — so it is OPTIONAL, and a
149
+ * row stored before that one has no key at all. `model/features.ts` reads
150
+ * it, and says what a row without it falls back to.
151
+ */
152
+ readonly labels?: readonly string[];
143
153
  /** Display name or translation key; falls back to the slug. */
144
154
  readonly name?: string | null;
145
155
  readonly order?: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,4EAA4E;AAC5E,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;AAE5C,kEAAkE;AAClE,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAErD,gFAAgF;AAChF,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAEjD;;yCAEyC;AACzC,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAEnD,mDAAmD;AACnD,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAE/D;uEACuE;AACvE,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAEzD,gEAAgE;AAChE,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAEvD;iDACiD;AACjD,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEzD,0CAA0C;AAC1C,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAErE,6CAA6C;AAC7C,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAEvE,2BAA2B;AAC3B,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CA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,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACrD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAsGA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,OAAO;IACP,SAAS;IACT,WAAW;IACX,QAAQ;IACR,SAAS;IACT,MAAM;IACN,UAAU;IACV,SAAS;IACT,UAAU;CACX,CAAC;AAMF;gEACgE;AAChE,MAAM,CAAC,MAAM,mBAAmB,GAAuC;IACrE,SAAS;IACT,UAAU;IACV,UAAU;IACV,cAAc;CACf,CAAC;AA+FF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAsGA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAsC;IACjE,OAAO;IACP,SAAS;IACT,WAAW;IACX,QAAQ;IACR,SAAS;IACT,MAAM;IACN,UAAU;IACV,SAAS;IACT,UAAU;CACX,CAAC;AAMF;gEACgE;AAChE,MAAM,CAAC,MAAM,mBAAmB,GAAuC;IACrE,SAAS;IACT,UAAU;IACV,UAAU;IACV,cAAc;CACf,CAAC;AAyGF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAC"}
@@ -76,7 +76,7 @@
76
76
  import type { ReactElement, ReactNode } from "react";
77
77
  import type { LinkComponent, SignInCtaProp } from "@stapel/core";
78
78
  import type { ListingCard as ListingCardData } from "../api/types.js";
79
- import type { ThemeModeProp } from "./types.js";
79
+ import type { CategoryFeaturesProp, ThemeModeProp } from "./types.js";
80
80
  /**
81
81
  * How the card opens — ONE of three, and the type says so.
82
82
  *
@@ -146,7 +146,7 @@ export declare const CARD_TARGET_STYLE_HREF = "stapel-listings-card-target";
146
146
  * design system's ROLE catalogue and this is a component's private plumbing.
147
147
  */
148
148
  export declare function cardTargetCss(): string;
149
- export interface ListingCardBaseProps extends ThemeModeProp, SignInCtaProp {
149
+ export interface ListingCardBaseProps extends ThemeModeProp, SignInCtaProp, CategoryFeaturesProp {
150
150
  readonly listing: ListingCardData;
151
151
  /** See {@link ListingCardBlockedReason}. Default `"text"`. */
152
152
  readonly blockedReason?: ListingCardBlockedReason;
@@ -1 +1 @@
1
- {"version":3,"file":"ListingCard.d.ts","sourceRoot":"","sources":["../../src/default/ListingCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AACH,OAAO,KAAK,EAAiB,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGjE,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAStE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IACE;iEAC6D;IAC7D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;8CAE0C;IAC1C,QAAQ,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,SAA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B,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;CACpC,CAAC;AAEN;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAE9D,iEAAiE;AACjE,eAAO,MAAM,sBAAsB,gCAAgC,CAAC;AAEpE;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAKtC;AAwBD,MAAM,WAAW,oBACf,SAAQ,aAAa,EACnB,aAAa,EACb,oBAAoB;IACtB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,aAAa,CAAC,EAAE,wBAAwB,CAAC;IAClD;oEACgE;IAChE,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B;gFAC4E;IAC5E,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,oBAAoB,GAAG;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;6CAEyC;IACzC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,yDAAyD;IACzD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B,GACA,YAAY,CA2Dd;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,YAAY,CAsLjE"}
@@ -99,7 +99,13 @@ export function ListingCard(props) {
99
99
  const favorite = useFavoriteToggle(listing.id, listing.is_favorited);
100
100
  const { token } = antdTheme.useToken();
101
101
  const badgeDaos = asFeatureDaoList(listing.features_badges);
102
- const badgeFeatures = featuresFromDaoList(badgeDaos);
102
+ // The category's own option table, when the surface has it: a stored
103
+ // `select` carries no table of its own, so without this a badge prints the
104
+ // storage slug. Absent on a mixed grid, which is why it is optional.
105
+ const copy = props.categoryFeatures !== undefined
106
+ ? { categoryFeatures: props.categoryFeatures }
107
+ : {};
108
+ const badgeFeatures = featuresFromDaoList(badgeDaos, copy);
103
109
  const badgeValues = featuresDtoFromDaoList(badgeDaos);
104
110
  const titleDaos = asFeatureDaoList(listing.features_title);
105
111
  const status = listing.status === undefined ? undefined : lifecycleCaption(listing.status);
@@ -123,7 +129,7 @@ export function ListingCard(props) {
123
129
  * all of them absent. That is why the photo and the price carry the layout:
124
130
  * they are the two fields a result always has.
125
131
  */
126
- const content = (_jsxs(_Fragment, { children: [_jsx(ListingPhoto, { imageRef: listing.images?.[0], alt: title.length > 0 ? title : String(listing.id) }), _jsxs(Flex, { vertical: true, gap: spacing[1], style: { minWidth: 0, padding: token.paddingSM }, children: [props.badge, _jsx(Typography.Text, { strong: true, "data-testid": "listings-card-price", children: _jsx(ListingPrice, { amount: listing.price, ...(listing.currency !== undefined ? { currency: listing.currency } : {}) }) }), _jsx(Typography.Text, { ellipsis: true, "data-testid": "listings-card-title", children: title }), titleDaos.length > 0 ? (_jsx(Typography.Text, { type: "secondary", ellipsis: true, children: _jsx(FeatureBadges, { features: featuresFromDaoList(titleDaos).map((view) => view.feature), values: featuresDtoFromDaoList(titleDaos) }) })) : null, badgeFeatures.length > 0 ? (_jsx(FeatureBadges, { features: badgeFeatures.map((view) => view.feature), values: badgeValues })) : null, listing.location_label !== undefined &&
132
+ const content = (_jsxs(_Fragment, { children: [_jsx(ListingPhoto, { imageRef: listing.images?.[0], alt: title.length > 0 ? title : String(listing.id) }), _jsxs(Flex, { vertical: true, gap: spacing[1], style: { minWidth: 0, padding: token.paddingSM }, children: [props.badge, _jsx(Typography.Text, { strong: true, "data-testid": "listings-card-price", children: _jsx(ListingPrice, { amount: listing.price, ...(listing.currency !== undefined ? { currency: listing.currency } : {}) }) }), _jsx(Typography.Text, { ellipsis: true, "data-testid": "listings-card-title", children: title }), titleDaos.length > 0 ? (_jsx(Typography.Text, { type: "secondary", ellipsis: true, children: _jsx(FeatureBadges, { features: featuresFromDaoList(titleDaos, copy).map((view) => view.feature), values: featuresDtoFromDaoList(titleDaos) }) })) : null, badgeFeatures.length > 0 ? (_jsx(FeatureBadges, { features: badgeFeatures.map((view) => view.feature), values: badgeValues })) : null, listing.location_label !== undefined &&
127
133
  listing.location_label.length > 0 ? (_jsx(Typography.Text, { type: "secondary", "data-testid": "listings-card-location", children: listing.location_label })) : null] })] }));
128
134
  return (_jsxs(SkinTheme, { surface: "bare", ...(props.mode !== undefined ? { mode: props.mode } : {}), children: [_jsx("style", { href: CARD_TARGET_STYLE_HREF, precedence: "default", children: cardTargetCss() }), _jsxs(Card, { size: "small", "data-testid": "listings-card", "data-listing-id": listing.id, ...(status !== undefined
129
135
  ? { "data-listing-status": status.status }
@@ -1 +1 @@
1
- {"version":3,"file":"ListingCard.js","sourceRoot":"","sources":["../../src/default/ListingCard.tsx"],"names":[],"mappings":";AA4EA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,i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,gCAAgC,YAE5C,KAAC,UAAU,IAAC,GAAG,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAC,uBAAuB,GAAG,GAChD,CACnB,IACG,CACP,IACI,IACG,CACb,CAAC;AACJ,CAAC"}
@@ -1,65 +1,3 @@
1
- /**
2
- * `<ListingComposerPage>` — the submission screen.
3
- *
4
- * Five contracts meet on this page and each arrives through its own seam, so
5
- * the component can be read top to bottom without knowing any of the other
6
- * pairs:
7
- *
8
- * category `renderCategoryPicker` — the container's `<CategoryPickerField>`,
9
- * given `setCategory` to call
10
- * where `locationPicker` — the container's `<LocationField>`
11
- * (`@stapel/geo-react`)
12
- * currency `renderCurrencyPicker` — whatever vocabulary the deployment sells in
13
- * details `features` — the schema, drawn by `<FeatureFields>` (L0)
14
- * photos `gallerySlot` — the container's `<MediaGalleryField bag>`,
15
- * whose bag is handed here as `images`
16
- * the draft this pair
17
- *
18
- * ── An unfilled slot is NAMED, never improvised ────────────────────────────
19
- *
20
- * Every one of those four slots used to degrade into a control this pair could
21
- * write on its own, and every one of those controls asked a question no seller
22
- * can answer: a numeric category id typed into a text box, a currency CODE
23
- * typed into a text box, and — the defect the owner named — two decimal boxes
24
- * labelled Latitude and Longitude. A gallery heading with nothing under it was
25
- * the same defect with the improvisation left out.
26
- *
27
- * So an unfilled slot renders `<SlotPlaceholder name="…"/>`: a labelled dashed
28
- * region in a dev build, nothing at all in production. The rule is the one the
29
- * rest of this codebase already lives by — `matchList`'s required empty arm,
30
- * `ActionAvailability` with no "disabled for unknown reasons", `LoadState`
31
- * refusing to fold failed into empty. A slot was the last place absence could
32
- * still be silent, and `stapel/no-silent-slot` now says so at lint time.
33
- *
34
- * ── …and its LABEL goes with it ────────────────────────────────────────────
35
- *
36
- * The placeholder is nothing in production — but the `Form.Item` around it
37
- * still drew its label, so a production composer with three unfilled slots
38
- * rendered three labelled voids: "Category", "Currency", "Where it is" over
39
- * empty space, and a "Photos" heading over air. A label is a promise that a
40
- * control follows it. {@link SlotField} therefore renders the WHOLE field —
41
- * label, help text and control — or nothing at all, and the `Photos` section
42
- * does the same with its heading. `slotVisibility` pins the dev view on so a
43
- * production-built showcase can still photograph the named placeholders.
44
- *
45
- * ── Why the pickers are slots and not dependencies ─────────────────────────
46
- *
47
- * A category tree, a geocoder and a currency vocabulary are all DEPLOYMENT
48
- * knowledge, and all three live in sibling L2 pairs
49
- * (`@stapel/categories-react`, `@stapel/geo-react`, the host's own). L2 pairs
50
- * do not import each other; the container is the seam. A library that picked
51
- * one would pick it for every host.
52
- *
53
- * ── Every blocked control says which of six reasons it is ──────────────────
54
- *
55
- * The publish button is the most-gated control in the fleet, and that is the
56
- * point: "sign in", "choose a category", "we could not load what this
57
- * category asks for", "this build cannot draw one of these details", "wait
58
- * for the photos", "fix the highlighted fields" are six different problems
59
- * with six different next actions. `firstBlock` orders them the way a person
60
- * would be told, and `<GatedButton>` renders the reason beside the button —
61
- * never a grey rectangle, never a hover.
62
- */
63
1
  import type { ComponentType, ReactElement, ReactNode } from "react";
64
2
  import type { FeatureDef } from "@stapel/attributes-react";
65
3
  import type { ListingLocation } from "../model/draft.js";
@@ -71,6 +9,28 @@ import type { ThemeModeProp } from "./types.js";
71
9
  * A measure, not a pixel guess: `ch` scales with the type the theme is set to.
72
10
  */
73
11
  export declare const COMPOSER_MEASURE = "44rem";
12
+ /**
13
+ * Below this FORM width the composer is a one-thumb column, and the order of
14
+ * its sections has to change — see {@link ListingComposerPage}'s header on why
15
+ * the characteristics move up.
16
+ *
17
+ * The `tablet` breakpoint, which is what "narrow" means everywhere else in the
18
+ * skin, measured against the form's OWN width and never the viewport's (§83).
19
+ * A composer drawn in a 360px settings pane on a 1440px desktop is narrow; a
20
+ * viewport query would call it wide and bury its questions.
21
+ */
22
+ export declare const COMPOSER_STACKED_BELOW: number;
23
+ /**
24
+ * The DOM id of the control that answers one of the composer's own fields —
25
+ * the names `mirrorListingFields` refuses by (`title`, `description`, …).
26
+ *
27
+ * A person told "10 required details are still empty" needs to be taken to
28
+ * one, and taking them there needs an ADDRESS. Features already have one
29
+ * (`featureControlId`); the composer's own fields had none, and a test id is
30
+ * not an address — it is a test's handle, and reaching for it in product code
31
+ * makes every test id load-bearing.
32
+ */
33
+ export declare function composerFieldId(field: string): string;
74
34
  /**
75
35
  * What `renderCategoryPicker` is handed: the current category and the ONLY
76
36
  * function that changes it. Same shape as any other bag in this monorepo — the
@@ -1 +1 @@
1
- {"version":3,"file":"ListingComposerPage.d.ts","sourceRoot":"","sources":["../../src/default/ListingComposerPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA0BpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAM3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAUvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;0EACsE;IACtE,QAAQ,CAAC,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,oBAAoB;IACnC,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;G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