Skip to content

Conversation

@latin-panda
Copy link
Collaborator

@latin-panda latin-panda commented Dec 26, 2025

Closes #541

I have verified this PR works in these browsers (latest versions):

  • Chrome
  • Firefox
  • Safari (macOS)
  • Safari (iOS)
  • Chrome for Android
  • Not applicable

What else has been done to verify that this works as intended?

Unit tests and manual tests

Before: shows entity special properties
After: Doesn't show entity special properties

Why is this the best possible solution? Were any other approaches considered?

Reuses existing structure that removes ODK reserved properties (stroke, fill, etc).

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Do we need any specific form for testing your changes? If so, please attach one.

What's changed

  • Adds Entity special properties to the list that filters out reserved properties.
  • Adds unit test verifying this case.

@changeset-bot
Copy link

changeset-bot bot commented Dec 26, 2025

🦋 Changeset detected

Latest commit: 9c05c8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@getodk/web-forms Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@latin-panda latin-panda changed the title feat(#541): removes reserved properties of Entities feat(#541): hide Entity special properties from the maps property dialog Dec 26, 2025
new Map([
[
'point1',
[
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These are the properties displayed to the user.

type: 'Point',
coordinates: [-74.006, 40.7128],
},
properties: {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These are ODK reserved and for internal use only (never displayed to the user)

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.

Don't show special properties in maps sidebar/drawer

2 participants