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

chore: account for title boundaries in document templates #2696

Merged
merged 4 commits into from
Jan 24, 2024

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Jan 23, 2024

See theopensystemslab/planx-core#269

Not a blocker to merging public-facing aspects of title boundaries to production, but we do want to make sure any maps displayed on document templates in submission zips have proper attribution sooner than later.

To test:

  • This small test flow sends to email devops@ https://2696.planx.pizza/testing/document-templates-test/preview - check the inbox for a recent existing submission or send your own
  • In this example, each document should have correct attribution & clearly communiate that the user "Accepted the title boundary" - for visual maps this means a source line below the map & double OS licenses, and for .geojson this means a custom key properties.planx_user_action

@@ -126,7 +126,7 @@ export default function PlotNewAddress(props: PlotNewAddressProps): FCReturn {
drawType="Point"
geojsonData={JSON.stringify(props?.boundary)}
geojsonColor="#efefef"
geojsonBuffer="10"
geojsonBuffer={10}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should have spotted this on the map PR sorry - but would this be a breaking change for the map component?

I'm very certain it's only us using this prop currently so it's not a blocker here right now, but maybe we should have gone to v0.8.0

I'd be happy with continuing as-is and we can maybe just let BOPS know tomorrow to be aware if they're relying on this. Linting should catch it anyway before it causes too many headaches!

Copy link
Member Author

Choose a reason for hiding this comment

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

We'd previously been using a mix of strings & numbers - Lit should smartly evaluate all these the same so no map version bump necessary!

MapProps in planx-core don't actually correspond to Lit types - it's a bit of a weird headache!
Screenshot from 2024-01-24 18-51-33

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation - agreed that it's helpful yet headachey 😅

Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

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

Sorry - hit approve instead of comment. I think we're missing a bump for the API package.json also (not a blocker tbh!)

Once tests are passing on CI I'll manually test as-per instructions 👍

Copy link

github-actions bot commented Jan 24, 2024

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak marked this pull request as ready for review January 24, 2024 18:39
@jessicamcinchak jessicamcinchak merged commit ecf5970 into main Jan 24, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/doc-templates-title-boundary branch January 24, 2024 18:42
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