Skip to content

fix: workflow CI bug (submitted state) + product audit FAQ docs - #389

Merged
phertyameen merged 1 commit into
bridgelet-org:mainfrom
Oluwatobi843:fix/workflow-ci-bug-and-faq-docs-335-336-337-340
Jul 28, 2026
Merged

fix: workflow CI bug (submitted state) + product audit FAQ docs#389
phertyameen merged 1 commit into
bridgelet-org:mainfrom
Oluwatobi843:fix/workflow-ci-bug-and-faq-docs-335-336-337-340

Conversation

@Oluwatobi843

Copy link
Copy Markdown
Contributor

Summary

This PR fixes a workflow-blocking CI bug in the send form and adds four FAQ documents to the bridgelet-product-audit/ knowledge base.


Bug fix: ReferenceError: submitted is not defined

File: frontend/components/send-form/steps/confirm-step.tsx

The ConfirmStep component called setSubmitted(true) and guarded the success view with if (submitted), but the submitted state variable was never declared. This caused a ReferenceError in all 9 confirm-step tests, blocking the Frontend CI workflow.

Fix: Added the missing state declaration:

const [submitted, setSubmitted] = useState(false);

All 141 unit tests now pass.


FAQ documentation

Closes #335bridgelet-product-audit/faq/is-there-a-login-session.md
Closes #336bridgelet-product-audit/faq/how-do-i-know-my-claim-link-is-safe.md
Closes #337bridgelet-product-audit/faq/why-is-mobile-behind-the-web-app.md
Closes #340bridgelet-product-audit/faq/how-does-bridgelet-relate-to-bridgelet-sdk-and-core.md

Each FAQ is documentation-only, scoped to the new bridgelet-product-audit/faq/ folder. No changes to frontend/ or mobile/ source code were needed for the FAQ items.


Checklist

- Fix ReferenceError in ConfirmStep: add missing `submitted` state variable
  that was called via setSubmitted(true) but never declared, causing all 9
  confirm-step tests to fail with 'submitted is not defined'
  (frontend/components/send-form/steps/confirm-step.tsx)

- Add FAQ docs to bridgelet-product-audit/faq/ (closes bridgelet-org#335, bridgelet-org#336, bridgelet-org#337, bridgelet-org#340):
  - is-there-a-login-session.md: explains the no-session, sign-at-tx-time auth model
  - how-do-i-know-my-claim-link-is-safe.md: bearer-token nature, threat T-01, safe sharing
  - why-is-mobile-behind-the-web-app.md: zero CI coverage + services layer gap
  - how-does-bridgelet-relate-to-bridgelet-sdk-and-core.md: three-layer architecture

All 141 unit tests pass.
@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

@Oluwatobi843 is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@Oluwatobi843 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@phertyameen
phertyameen merged commit 1f43bf6 into bridgelet-org:main Jul 28, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment