Skip to content

feat(chat): EMAIL in TICKET_CREATION_SOURCE CU-17tkuw66na0 - #3349

Merged
andriikachur merged 2 commits into
mainfrom
feature/CU-17tkuw66na0-fe-core
Dec 4, 2026
Merged

andriikachur merged 2 commits into
mainfrom
feature/CU-17tkuw66na0-fe-core

Conversation

@andriikachur

@andriikachur andriikachur commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What

TICKET_CREATION_SOURCE gains EMAIL (email-to-ticket), so a client that branches on a ticket's creationSource names it from the lib instead of typing the string again.

  • ticketHasReceipt is unchanged: an email ticket still opens with the email itself and no receipt (the test pins it for the new constant too).
  • Used by Fae's "Ticket Number: n · from your email" list line (saas-tenant #4896).

Checks

ticket-receipt.test.ts (4 tests), eslint, prettier, type-check.

Change-Set: feature-cu-17tkuw66na0

Change set flamingo-stack/openframe-oss-lib#3337: these pull requests are one change, reviewed together.

Linked work

Linked by the Depends-On / Change-Set lines in these descriptions; this block is maintained by the hub.

@flamingo

flamingo Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

🦩 flamingo Code Review / security

✅ No findings on the current head.

Advisory: findings do not block the merge.

Files Lines 🔴 Action required 🟠 Recommended 🔵 Informational
2 +4 / -1 0 0 0

Review again. New commits are not reviewed until you ask:

  • Security-check the new commits: only what was pushed since this security review
  • Security-check the whole diff again: everything, including what was already checked

Or comment @flamingo-review security (new commits) or @flamingo-review security full (everything). Add the flamingo-security-review-always label to security-review every push.

Updated 2026-12-04 14:10 UTC · reviewed from Andrii Kachur's machine

@flamingo

flamingo Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

🦩 flamingo Code Review

✅ Tests and checks passed on this commit (8 lanes).

✅ No findings on the current head.

Advisory: findings do not block the merge.

Files Lines Languages Tests Checks 🔴 Action required 🟠 Recommended 🔵 Informational
2 +4 / -1 TypeScript (1 npm lane) ✅ 5629 / 5629 green ✅ 7 / 7 passed 0 0 0

✅ What this change does well

  • ticket-receipt.ts names the EMAIL creation source in the existing TICKET_CREATION_SOURCE SSOT instead of leaving the string literal scattered.
  • ticket-receipt.test.ts pins the new constant's value by asserting ticketHasReceipt is false for TICKET_CREATION_SOURCE.EMAIL.
  • ticket-receipt.test.ts pins that the new TICKET_CREATION_SOURCE.EMAIL still opens with no receipt, so naming the source changes nothing the web or Fae draws.

🧪 Tests and mutation

Tests per lane

Language Project Command Status Counts Time
TypeScript (npm) openframe-frontend-core npx vitest related --run src/components/chat/utils/__tests__/ticket-receipt.test.ts src/components/chat/utils/ticket-receipt.ts ✅ passed 5629 run, 0 failures 48.6 s

Checks

Check Kind Language Project Status Time
lint lint TypeScript (npm) openframe-frontend-core ✅ passed 2 s
lint:config-smoke lint TypeScript (npm) openframe-frontend-core ✅ passed 0.7 s
lint:cycles lint TypeScript (npm) openframe-frontend-core ✅ passed 684.4 s
lint:types lint TypeScript (npm) openframe-frontend-core ✅ passed (4 findings on lines this change did not touch) 52.8 s
type-check typecheck TypeScript (npm) openframe-frontend-core ✅ passed 2.6 s
format format TypeScript (npm) openframe-frontend-core ✅ passed 9.6 s
OpenGrep security TypeScript (OpenGrep) . ✅ passed 14.6 s

5629 vitest tests, lint, lint:config-smoke, lint:cycles, lint:types, type-check, format and OpenGrep passed; no Stryker in openframe-frontend-core, so mutation coverage is a gap (the change adds one constant value).

1 gap (not tested here):

  • TypeScript (npm) openframe-frontend-core: no mutation testing (no Stryker configured: mutation coverage is a gap to report)

Review again. New commits are not reviewed until you ask:

  • Review the new commits: only what was pushed since this review
  • Review the whole diff again: everything, including what was already reviewed

Or comment @flamingo-review (new commits) or @flamingo-review full (everything). Add the flamingo-review-always label to review every push.

Updated 2026-12-04 14:07 UTC · reviewed from Andrii Kachur's machine

@yevhenii-flamingo yevhenii-flamingo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One follow-up on the new contract assertion.

@andriikachur andriikachur added the build Run the PR builds and publish snapshots (Java, npm preview); stays on until removed label Dec 4, 2026
@andriikachur
andriikachur added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 091626f Dec 4, 2026
21 checks passed
@andriikachur
andriikachur deleted the feature/CU-17tkuw66na0-fe-core branch December 4, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Run the PR builds and publish snapshots (Java, npm preview); stays on until removed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants