feat(tickets): TICKETS page block, editor picker and public order page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
1 parent
5a51be1c11
commit
e850b09cb6
23 files changed
+1030
-16
No files matched your search
@@ -126,6 +126,7 @@ public class PublicPageService {
|
||||
out.put("startDate", e.getDateStart() == null ? null : e.getDateStart().toLocalDate().toString());
|
||||
out.put("endDate", e.getDateEnd().toLocalDate().toString());
|
||||
out.put("location", e.getLocation());
|
||||
out.put("companyName", o.companyName());
|
||||
out.put("notice", Map.of("id", o.notice().get("id"), "textEn", String.valueOf(o.notice().get("textEn")),
|
||||
"textMs", String.valueOf(o.notice().get("textMs"))));
|
||||
out.put("types", sale.get("types") instanceof List<?> l ? l : List.of());
|
||||
|
||||
+1
-1
@@ -150,7 +150,7 @@ class PublicTicketTest {
|
||||
void aTicketsBlockCarriesItsEventAndTypes() {
|
||||
Map<String, Object> t = (Map<String, Object>) blocks().get(1).get("tickets");
|
||||
assertThat(t).containsEntry("eventName", "KL Hotel Tech Day").containsEntry("location", "KLCC").containsEntry("startDate", "2027-01-15")
|
||||
.containsKey("notice");
|
||||
.containsEntry("companyName", "INS").containsKey("notice");
|
||||
assertThat((List<Map<String, Object>>) t.get("types")).extracting(m -> m.get("state")).containsExactly("ON_SALE", "SOLD_OUT");
|
||||
assertThat(blocks().get(1)).doesNotContainKey("closed");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user