Repository navigation
feat: 7117 preview calculations before submitting data - #7207
Draft
ihar-tsykala wants to merge 23 commits into
Draft
ihar-tsykala wants to merge 23 commits into
ihar-tsykala wants to merge 23 commits into
Conversation
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>
…k IDs 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>
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>
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.
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