Repository navigation
Record why a cool-tech-jobs submission failed - #20986
Merged
smallbrownbike merged 2 commits intoNov 2, 2026
Merged
smallbrownbike merged 2 commits into
smallbrownbike merged 2 commits into
Conversation
A company reported it could not submit the form, and there was nothing to look at afterwards. Three reasons, all in the same handler: - A missing profile id or JWT returned silently. The button stopped and the form said nothing, so an expired session looked identical to a broken page. - Four different failures - create, logo upload, attach, scrape - shared one catch and one message, with no record of which one happened. - That catch logged nothing and sent no event, so a failure left no trace at all. This tracks the step as the handler moves through it, puts the step and the HTTP status into the thrown error, and on failure writes a console error and captures cool_tech_jobs_submit_failed with the step. The expired-session case now says so and tells the user their input is still there. The message the user sees for a genuine failure is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01AqD13QkB8DhzkDSdKbJScv
tsayin4
force-pushed
the
fix/20955-cool-tech-jobs-submit-visibility
branch
from
October 9, 2026 14:14
620182c to
d37a79e
Compare
Contributor
|
This PR hasn't seen activity in two weeks! Should it be merged, closed, or further worked on? If you want to keep it open, please remove the |
smallbrownbike
approved these changes
Nov 2, 2026
smallbrownbike
left a comment
Collaborator
There was a problem hiding this comment.
nice thank you!!
smallbrownbike
enabled auto-merge (squash)
November 2, 2026 16:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #20955
A company reported it could not submit the form on /cool-tech-jobs, and there was nothing left behind to look at. Three reasons, all in the same handler:
if (!profileID || !jwt) returnstopped the submit with no message, so an expired session looked exactly like a broken page.This tracks
stepas the handler moves through it, puts the step and the HTTP status into the thrown error, and on failure writes aconsole.errorand capturescool_tech_jobs_submit_failedwith the step. The expired-session case now says so, and tells the person their input is still there.The message a user sees for a genuine failure is unchanged — this only adds what happens behind it.
I used
usePostHog()andposthog?.capture(...), which is whatIssueFormin this same file already does.What I could not verify: I did not run the full site build, so this is checked by reading rather than by loading the page.
npx prettier@2 --writeon the file produces no changes, matching the version inpackage.json. If you would rather the event name or the property shape followed a different convention, say which and I will change it.🤖 Generated with Claude Code
https://claude.ai/code/session_01AqD13QkB8DhzkDSdKbJScv