Skip to content
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

feat: demo team integrations to fail gracefully #3938

Merged
merged 8 commits into from
Nov 19, 2024

Conversation

RODO94
Copy link
Contributor

@RODO94 RODO94 commented Nov 12, 2024

Adding some failure screens with Send Components and Planning Constraints to gracefully catch errors and inform the demoUsers of certain restrictions in the Public interface, rather than the Editor one. Found this better as it would still show our range of components (things like Planning Constraints) while removing a potentially confusing experience for users.

For demoUsers, they may still see these components normally when in other teams, like ODP, but they just can't see them when they are within the Demo team.

This is because for the Public interface of the components, we don't have access to a User object which would help us manage it specifically for a demoUser role which sits within the teams section of a user object, as it is applied to the team_members table.

Feedback on this component has been given here: https://opensystemslab.slack.com/archives/C04DZ1NBUMR/p1731576342896299

Copy link

github-actions bot commented Nov 12, 2024

Removed vultr server and associated DNS entries

@RODO94
Copy link
Contributor Author

RODO94 commented Nov 12, 2024

@RODO94 RODO94 force-pushed the rory/demo-integrations-fail branch from 3a441de to 38286f3 Compare November 12, 2024 15:22
@RODO94 RODO94 marked this pull request as ready for review November 13, 2024 13:09
@RODO94 RODO94 requested a review from a team November 13, 2024 13:09
@RODO94 RODO94 force-pushed the rory/demo-integrations-fail branch from b613f15 to 13d917e Compare November 13, 2024 13:25
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small language questions/suggestions - but Pay & Send are working as expected ✔️

Re: Planning Constraints, while we can "turn this on" in the demo team, it WILL return "false negatives".

We allow applicants to enter any postcode in all of England or Wales per the OS Places API in FindProperty, but Planning Data only hosts constraints for ODP-onboarded councils. Planning Data's API returns the same response for constraints that have been checked but don't intersect and for constraints that do not have underlying source data to check in the first place - therefore why we have the manual toggle in the first place.

I personally think it's a lot more confusing/inaccurate to show folks "working" constraints that are going to say something doesn't apply when they may personally know that it does (but they haven't submitted their datasets to Planning Data yet) and have to explain the concept of "false negatives" - therefore would prefer an error message in that case as well please !!

editor.planx.uk/src/@planx/components/Pay/Public/Pay.tsx Outdated Show resolved Hide resolved
editor.planx.uk/src/@planx/components/Send/Public.tsx Outdated Show resolved Hide resolved
@RODO94 RODO94 marked this pull request as draft November 14, 2024 14:56
copy refinement on pay comp

copy refinement on pay comp

copy refinement on pay comp
scroll to view warning message

revert scroll view and simplify demo user screens

refine boolean code and remove redundant space

copy refinement on send component
@RODO94 RODO94 force-pushed the rory/demo-integrations-fail branch from a68bfc2 to 278f44b Compare November 15, 2024 11:28
simplify pay error and add tests

remove unused variables

remove it.only

alter state val on unit test
@RODO94 RODO94 force-pushed the rory/demo-integrations-fail branch from b6647b1 to 5716f09 Compare November 15, 2024 13:24
@RODO94 RODO94 marked this pull request as ready for review November 15, 2024 13:45
@RODO94 RODO94 requested a review from a team November 15, 2024 14:30
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All working as expected - one final note for a slightly cleaner Planning Constraints error please!

@RODO94 RODO94 merged commit 0b080a5 into main Nov 19, 2024
12 checks passed
@RODO94 RODO94 deleted the rory/demo-integrations-fail branch November 19, 2024 18:41
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.

2 participants