Skip to content

feat: 7117 preview calculations before submitting data - #7207

Draft
ihar-tsykala wants to merge 23 commits into
developfrom
feat/7117-calculation-previews-before-submitting-document
Draft

ihar-tsykala wants to merge 23 commits into
developfrom
feat/7117-calculation-previews-before-submitting-document

Conversation

@ihar-tsykala

@ihar-tsykala ihar-tsykala commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Description:

Request forms run their calculations only on a real submission. To see a calculated value, a user had to fill every required field, including fields the calculation never reads, and each check created a real document or moved the policy forward.

This change adds a Calculation preview switch to both Request form variants and a preview flag to the existing sync-events API. When the switch is on, the form first asks the server which inputs the calculations need; only those stay required, and fields the current form conditions hide are never required. Pressing Preview runs the normal processing chain with temporary storage, messages, token effects and block state, then shows the calculated documents in the usual viewer. A missing input is reported by its exact field and row. Nothing is saved, sent to Hedera or changed for other users, and the switch position is remembered per user, policy and block.

Validate & Create keeps its existing path and runs afresh.

Fixes #7117

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@ihar-tsykala
ihar-tsykala requested a review from Pyatakov October 26, 2026 13:02
@ihar-tsykala ihar-tsykala self-assigned this Oct 26, 2026
@ihar-tsykala
ihar-tsykala requested review from a team as code owners October 26, 2026 13:02
@ihar-tsykala
ihar-tsykala marked this pull request as draft October 26, 2026 13:03
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
…viewer and response

Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
Signed-off-by: Ihar Tsykala <ihar.tsykala@hashgraph.com>
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