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

refactor(source): remove get value and improve typing for items #90

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Bettelstab
Copy link
Contributor

@Bettelstab Bettelstab commented Jan 31, 2025

🍰 Pullrequest

  • Improves typing of items
  • Removes getValue because it is super hard to type and was introduced for a customisation which is not used anymore. if needed, we could have a cleaner solution to offer that functionality.

Some open questions, and it breaks compatibility with the map project.

  • Further improvements and simplifications?
  • Compatibility with Map project (either way)

@Bettelstab Bettelstab self-assigned this Jan 31, 2025
Comment on lines -157 to +142
`${item.layer.customEditLink}${item.layer.customEditParameter ? `/${getValue(item, item.layer.customEditParameter)}${params && '?' + params}` : ''} `,
`${item.layer.customEditLink}${item.layer.customEditParameter ? `/${item.id}${params && '?' + params}` : ''} `,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

'id' is what is used in the map project. I think we should ditch the whole customEditLink thing and always use the callback?

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.

1 participant