Skip to content

Update go mesage#277

Merged
HugoGresse merged 1 commit into
mainfrom
go-no-readiness
Jul 2, 2026
Merged

Update go mesage#277
HugoGresse merged 1 commit into
mainfrom
go-no-readiness

Conversation

@HugoGresse

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 2, 2026 16:10
@HugoGresse HugoGresse self-assigned this Jul 2, 2026
@HugoGresse HugoGresse temporarily deployed to GitHub Action PR July 2, 2026 16:10 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit d796873):

(expires Thu, 09 Jul 2026 16:11:15 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 0c15c45ea5a4c54095387eacf30c3755c9260f22

@HugoGresse HugoGresse merged commit 89d291a into main Jul 2, 2026
6 checks passed
@HugoGresse HugoGresse deleted the go-no-readiness branch July 2, 2026 16:12

Copilot AI 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.

Pull request overview

This PR updates the WhatsApp “GO” messaging logic to include a special-case message when no tracks have marked themselves ready, and adds a unit test to cover that scenario.

Changes:

  • Add a dedicated readyCount === 0 branch in goMessage() with a new “nobody is ready” GO message.
  • Add a sendGoMessage test that asserts the new message contains 0/3 and a recognizable phrase.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
functions/src/api/routes/whatsapp/trackSession.ts Adds a new GO-message branch for the “0 tracks ready” case.
functions/src/api/routes/whatsapp/trackFlow.test.ts Adds test coverage for the new “0 tracks ready” GO message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +39 to +41
if (readyCount === 0) {
return `🟢 GO — 0/${tracks.length} tracks prêts. Le sondage ? Personne ne l'a vu. On y va quand même, c'est la magie du live 🦩`
}
Comment on lines +107 to +109
expect(sendMessage).toHaveBeenCalledWith('c@c.us', expect.stringContaining('0/3'))
expect(sendMessage).toHaveBeenCalledWith('c@c.us', expect.stringContaining('magie du live'))
})
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.

2 participants