getodk / central-frontend

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

Show bulk upload source on entity detail page #949

Closed ktuite closed 6 months ago

ktuite commented 6 months ago

Closes getodk/central#583

Activity Feed

Entity create event from bulk upload:

Screenshot 2024-02-28 at 10 58 13 AM

I wanted to point out that an entity created from a submission looks like this:

Screenshot 2024-02-28 at 10 58 19 AM

In the submission case, there really is a separate source event to show. In the bulk entity upload case, it is literally the same event. We get the submission event off the entity create event and artificially insert it into the activity feed.

We could pretend there are two events, but I wasn't sure how the one event should be broken down or if it was even worth it.

Possibility (show size, too):

Screenshot 2024-02-28 at 10 55 33 AM

Conflict Tables

Screenshot 2024-02-28 at 11 31 47 AM Screenshot 2024-02-28 at 11 34 44 AM

Basic Information

Screenshot 2024-02-28 at 1 15 26 PM

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

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

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?

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:

ktuite commented 6 months ago

(note to self) If we did want to show the file/upload size, here are some of my code snippets:

<template #size>
  <span class="source-size">({{ entry.details.source.size / 1000 }}Kb)</span>
</template>
  .source-size {
    font-weight: normal;
    font-family: $font-family-monospace;
    font-size: 12px;
    color: #777;
  }
"bulkSource": "File {name} {size} uploaded by {actor}"