Skip to content

feat(admin-trials): add event-scoped manual result entry workflow - #343

Merged
asku1990 merged 3 commits into
feature/bej-103-admin-trial-event-and-result-creationfrom
feat/bej-103-result-creation-r2
Jul 23, 2026
Merged

feat(admin-trials): add event-scoped manual result entry workflow#343
asku1990 merged 3 commits into
feature/bej-103-admin-trial-event-and-result-creationfrom
feat/bej-103-result-creation-r2

Conversation

@asku1990

@asku1990 asku1990 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add an event-scoped full-page workflow for creating AJOK results one at a time.
  • Support “save another” and “save and finish,” prefill event judge details, and route newly created events into their first result form.
  • Keep business validation in the server package, return safe structured validation context, identify rejected lisätieto rows, persist integer row ordering, and omit unused rows.
  • Invalidate affected admin, trial, dog-profile, and statistics queries after successful creation.
  • Add Finnish and Swedish messages, feature documentation, changelog entries, and targeted tests.

Unsaved changes

  • Explicit Cancel and same-tab internal links use the application confirmation modal.
  • Refresh and tab/window close use the browser-native unload warning.
  • Browser Back leaves the form without application confirmation. The unreliable history.forward() / history.back() recovery sequence is removed; deterministic Back interception remains a separately documented follow-up.

Ref: BEJ-103

Checklist

  • This PR includes user-visible changes.
  • CHANGELOG.md is updated under Unreleased according to the repository release policy.
  • Targeted tests and documentation are included.

  Add the full-page result creation route with reusable entry, era, and
  lisätieto sections.

  Support saving another result or returning to the event workspace,
  prefill event judge details, and protect unsaved form changes during
  navigation and page unload.

  Route newly created events directly to their first result form and
  invalidate affected admin, trial, dog-profile, and statistics queries
  after successful creation.

  Return safe structured validation details, identify rejected lisätieto
  rows, persist integer row ordering, and omit unused rows from create
  requests.

  Add Finnish and Swedish messages, workflow tests, feature
  documentation,
  and the follow-up plan for rule-window-aware result fields.

  ref bej-103
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
beagle-db-v2 Ignored Ignored Preview Jul 23, 2026 7:28am

  Remove the unreliable browser Back recovery based on asynchronous
  history.forward() and history.back() calls.

  Keep confirmation for explicit internal navigation and native unload
  protection for refresh or tab close. Ignore modified and new-tab link
  clicks, ensure confirmed actions run only once, and add focused tests
  and documentation for the intentionally unguarded browser Back
  behavior.

  ref BEJ-103
@asku1990
asku1990 marked this pull request as ready for review July 23, 2026 07:08
  Validate trial entry integer fields against PostgreSQL Int bounds
  before
  payload construction so oversized values cannot be silently saved as
  null.

  Cover create and edit flows with boundary, overflow, and long-input
  tests.

  ref BEJ-103
@asku1990
asku1990 merged commit db0a291 into feature/bej-103-admin-trial-event-and-result-creation Jul 23, 2026
5 checks passed
@asku1990
asku1990 deleted the feat/bej-103-result-creation-r2 branch July 23, 2026 07:53
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.

1 participant