getodk / central-frontend

Vue.js based frontend for ODK Central
https://docs.getodk.org/central-intro/
Apache License 2.0
32 stars 59 forks source link

Show updating submission link in entity feed #879

Closed ktuite closed 1 year ago

ktuite commented 1 year ago

Closes #

Screen Shot 2023-10-24 at 10 47 45 AM

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

Trying it out and adding tests.

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

I don't think this is the best -- this component is complicated and confusing.

It can handle entity events. It can also handle artificial events for submission creation/approval when that is relevant to an entity... It can handle events about entities that contain submission info in the details. The submissions in the two cases above can be available or deleted, and can show the instance name or instance id depending.

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?

Getting some warnings running the full test suite:

WARN LOG: '[Vue warn]: Unhandled error during execution of render function', '
', ' at <PageSection', 'id="entity-activity"', '>', '
', ' at <EntityActivity>', '
', ' at <PageBody>', '
', ' at <EntityShow', 'projectId="1"', 'datasetName="trees"', 'uuid="e"', ' ...', '>', '
', ' at <VTUROOT>'

Does this change require updates to user documentation? If so, please file an issue here and include the link below.

Before submitting this PR, please make sure you have: