Skip to content

feat(admin-trials): add event creation and empty-event lifecycle - #341

Merged
asku1990 merged 1 commit into
feature/bej-103-admin-trial-event-and-result-creationfrom
feature/bej-103-e2-trial-event-lifecycle
Jul 22, 2026
Merged

feat(admin-trials): add event creation and empty-event lifecycle#341
asku1990 merged 1 commit into
feature/bej-103-admin-trial-event-and-result-creationfrom
feature/bej-103-e2-trial-event-lifecycle

Conversation

@asku1990

@asku1990 asku1990 commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

Add the BEJ-103 Gate E2 admin trial-event lifecycle:

  • create an empty trial event from a dedicated full-page form;
  • preserve the parent event when its final result is removed;
  • allow explicit deletion only from an empty event workspace;
  • keep empty events visible to administrators while excluding them from public result views;
  • reuse the existing event fields and validation without changing current edit behavior.

Checklist

  • This PR includes user-visible changes.
  • CHANGELOG.md was updated under Unreleased.

ref bej-103

  Implement BEJ-103 Gate E2 with full-page trial event creation
  and explicit management of empty events.

  - add contracts, Server Actions, mutations, and persistence use cases
    for creating and deleting trial events
  - require a positive SKL event ID, date, and place during creation
  - default new events to the current Helsinki business date
  - resolve active rule windows through the shared DB repository
  - preserve an event when its final result is deleted
  - allow explicit deletion only for events without results
  - add localized confirmation and toast feedback for event deletion
  - reuse event form fields without changing existing edit behavior
  - retain empty events in admin views while excluding them publicly
  - add focused web, server, DB, and integration coverage
  - update trial-management documentation and the changelog

  Refs: BEJ-103
@vercel

vercel Bot commented Jul 21, 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 Jul 21, 2026 12:04pm

@asku1990
asku1990 merged commit 77b93a7 into feature/bej-103-admin-trial-event-and-result-creation Jul 22, 2026
5 checks passed
@asku1990
asku1990 deleted the feature/bej-103-e2-trial-event-lifecycle branch July 22, 2026 15:10
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