-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display change requests #114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TS looks reasonable to me, a few optional changes to the markup
662b316
to
9505bdf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@albertkol @samuelhwilliams @MarcUsher shall we have a discussion about the change ? So safer side I am blocking the merge better if we can have a call if this is an urgent one we can merge.
runner/src/server/plugins/engine/page-controllers/PageControllerBase.ts
Outdated
Show resolved
Hide resolved
f1fbbb6
to
e09046f
Compare
To do:
|
or you could do it in the same pr because it's just a test for this feature 👀 |
You offering to help out with it @samuelhwilliams ? 👀 |
517d958
to
5197f50
Compare
I am a bit unsure how to run e2e tests on local. So for now we will stick to the unit tests only. Rest of the feedback was addressed. |
Changes are ok but e2e fails so we cannot merge these changes can you fix that @albertkol we should have a passing e2e branch before merge |
0568db4
to
c56d1b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
runner/test/cases/server/plugins/engine/page-controllers/ChangeRequestFeature.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1263dca
to
283076b
Compare
283076b
to
ba6fdde
Compare
|
Display change requests on the pages that received change requests.
Description
Apply is adding an extra metadata,
change_requests
.change_requests
are structured as such:These will be displayed in the notification banner, above the form.
The catch is, we only need to display the banner on the form pages that the component is placed.
That is why we loop through all components on the page, to find out if the component received feedback:
Since all components can receive feedback, all components considered a question, we should display the banner on all possible Form Runner pages. So perhaps
PageControllerBase
is the place to add this logic?Screenshots
Now:
![image](https://private-user-images.githubusercontent.com/6387619/410086104-1fef24c2-d328-4b2f-8b20-06f4af8f773b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODgwNDYsIm5iZiI6MTczOTI4Nzc0NiwicGF0aCI6Ii82Mzg3NjE5LzQxMDA4NjEwNC0xZmVmMjRjMi1kMzI4LTRiMmYtOGIyMC0wNmY0YWY4Zjc3M2IucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTUyOTA2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDRiMTVkOTg3NmFlN2M0Mjk1MjI5NWY1NWI2MzM5MTVkM2IzMWZjMTRiMzNhNWMzY2JiMWM4MDQ3ZjAyZDc0YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.IKjXZf9own6GExs7glhG3Yi-7Jlp607qR18ApweC8FA)
Before:
![image](https://private-user-images.githubusercontent.com/6387619/404893034-fb82bcbc-a10a-455e-b9fa-93293ad00076.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODgwNDYsIm5iZiI6MTczOTI4Nzc0NiwicGF0aCI6Ii82Mzg3NjE5LzQwNDg5MzAzNC1mYjgyYmNiYy1hMTBhLTQ1NWUtYjlmYS05M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