Skip to content

Send explicit entry_type for talksets and breakpoints#284

Merged
jakebromberg merged 2 commits intomainfrom
fix/explicit-entry-type
Mar 20, 2026
Merged

Send explicit entry_type for talksets and breakpoints#284
jakebromberg merged 2 commits intomainfrom
fix/explicit-entry-type

Conversation

@jakebromberg
Copy link
Copy Markdown
Member

@jakebromberg jakebromberg commented Mar 18, 2026

Summary

  • Add optional entry_type field (typed as FlowsheetEntryType from @wxyc/shared/dtos) to the message variant of FlowsheetSubmissionParams
  • Use FlowsheetEntryType.talkset and FlowsheetEntryType.breakpoint consts from @wxyc/shared/dtos in both modern (TalksetButton, BreakpointButton) and classic (Main.tsx) experiences
  • Enables the backend to determine entry type from a structured field rather than parsing the message string

Depends on: PR #291 (CI fix)
Corresponds to backend change: WXYC/Backend-Service#239
API spec change: WXYC/wxyc-shared#24

Closes #283

Test plan

  • tsc --noEmit passes
  • In the modern experience, click the talkset button and confirm the request body includes entry_type: "talkset"
  • In the modern experience, click the breakpoint button and confirm the request body includes entry_type: "breakpoint"
  • In the classic experience, click "Add a Talkset!" and confirm the request body includes entry_type: "talkset"
  • In the classic experience, click "Add a ... Breakpoint" and confirm the request body includes entry_type: "breakpoint"

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Mar 18, 2026

Deploying wxyc-dj with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1a719e1
Status: ✅  Deploy successful!
Preview URL: https://611a3314.dj-site.pages.dev
Branch Preview URL: https://fix-explicit-entry-type.dj-site.pages.dev

View logs

@jakebromberg jakebromberg force-pushed the fix/explicit-entry-type branch 3 times, most recently from 4b18b4d to 205f233 Compare March 19, 2026 03:32
@jakebromberg jakebromberg force-pushed the fix/explicit-entry-type branch 2 times, most recently from ac90a67 to 1033090 Compare March 19, 2026 17:33
Use the FlowsheetEntryType const from @wxyc/shared/dtos instead of relying on the backend to infer entry type from message content. Both modern (TalksetButton, BreakpointButton) and classic (Main.tsx) experiences now send entry_type explicitly in the POST body.
@jakebromberg jakebromberg force-pushed the fix/explicit-entry-type branch from 1033090 to 1a719e1 Compare March 19, 2026 23:36
@jakebromberg jakebromberg merged commit 392be8d into main Mar 20, 2026
5 checks passed
@jakebromberg jakebromberg deleted the fix/explicit-entry-type branch March 20, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Send explicit entry_type for talksets and breakpoints

2 participants