Skip to content

fix(web): distinguish draft and sent applications - #116

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
mrfandu1:fix/draft-application-status-20260916
Sep 16, 2026
Merged

ralyodio merged 1 commit into
profullstack:masterfrom
mrfandu1:fix/draft-application-status-20260916

Conversation

@mrfandu1

@mrfandu1 mrfandu1 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

A candidate can create an application with submit: false, yet /me lists it under “Applications you have sent” and says “Sent” even while the employer cannot see it. Applications submitted later also show their original draft-creation time as the send time.

This change keeps drafts visible under “Your applications”, explicitly labels them as not sent, and uses submitted_at for sent applications. It carries that existing database field through the page query; application submission and employer visibility rules are unchanged.

Validation: TypeScript build and 359 local tests pass. Two focused rendering regressions fail against the original code and pass with the fix. Upstream CI passes all 451 tests, including the PostgreSQL regression covering draft creation, employer invisibility, submission and the rendered timestamp; the Docker checks also pass. The compiled page was checked in Chromium with synthetic draft/sent examples and the real styles.

AI-assisted contribution by Chandan, submitted under the published bug-fix offer. Payment remains subject to the employer's acceptance.

Copilot AI lite review requested due to automatic review settings September 16, 2026 05:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review issues remain.

Pull request overview

Fixes /me application history to distinguish drafts from sent applications and show accurate submission times.

Changes:

  • Carries submitted_at through the page query.
  • Labels drafts as unsent and sent applications with submission time.
  • Adds rendering and PostgreSQL regression tests.
File summaries
File Summary
test/views.test.ts Adds draft and submission-time rendering regressions.
test/api.test.ts Adds end-to-end draft visibility and submission coverage.
src/views/me.tsx Renders draft and sent application states distinctly.
src/server/routes/pages.tsx Carries submitted_at into page data.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ralyodio
ralyodio merged commit e342223 into profullstack:master Sep 16, 2026
4 checks passed
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.

3 participants