Skip to content

Show edited/moved marker on messages #171

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

Closed
gnprice opened this issue Jun 9, 2023 · 7 comments · Fixed by #900
Closed

Show edited/moved marker on messages #171

gnprice opened this issue Jun 9, 2023 · 7 comments · Fixed by #900
Assignees
Labels
a-msglist The message-list screen, except what's label:a-content

Comments

@gnprice
Copy link
Member

gnprice commented Jun 9, 2023

When a message has been edited or moved, Zulip web shows this with a small "EDITED" or "MOVED" marker. This can be important for understanding a conversation; we should do either the same thing or another way of conveying the same information.

The Help Center describes this feature on the following page:
https://zulip.com/help/view-a-messages-edit-history
though that page also covers showing the details of the edits or moves, which is a separate issue #531.

UI design

See first comments below, and see this later chat thread:
https://chat.zulip.org/#narrow/stream/48-mobile/topic/check-x.20icons.20in.20left.20margin/near/1908288

Implementation

We don't currently store the information of whether and how a message has been edited or moved. The first phase of work on this issue will be to start storing and maintaining that information. This will involve adding a field to the Message class, and then updating that field as appropriate in response to events.

Concretely, this field should look like MessageEditState edited; where MessageEditState is an enum with three values: none, moved, and edited. In other words it will store only the information needed to control the edited/moved marker; storing the full edit history is out of scope for this issue (and will be left for #531).

After that we can start showing the information in the UI.

Related issues

These related features are all out of scope for this issue:

(The details of the edits or moves can be important information too, but for a lot of purposes just the fact that the message was edited or moved, or the ability to confirm that it wasn't, is very helpful.)

Note that some of these have the "Post-launch" milestone — those are things we expect to get to much later than this issue.

@gnprice gnprice added the a-msglist The message-list screen, except what's label:a-content label Jun 9, 2023
@gnprice gnprice added this to the Beta milestone Jun 9, 2023
@gnprice gnprice modified the milestones: Beta 1, Beta 2 Nov 8, 2023
@terpimost
Copy link

The main idea was to use the left gutter to put a small icon of edited or moved + allow to swipe/drag the message horizontally to reveal full label:
image
This design isn't final, but let me know what do you think about interaction. Would it be hard to do or not?

@gnprice
Copy link
Member Author

gnprice commented Dec 4, 2023

Interesting, thanks.

I think that gesture should be doable from the implementation side. There may not be anything drop-in we can use for the whole swipe interaction; but we can give each message a GestureDetector that responds to onHorizontalDragStart and its update/end/etc. friends, and build the interaction out of those pieces.

(There is a drop-in implementation for "drag". But that's for a gesture that starts by long-pressing a thing to pick it up; I don't think it's designed for this use case.)

@fizy069

This comment was marked as outdated.

@gnprice
Copy link
Member Author

gnprice commented Mar 4, 2024

For ease of reference: here's the spot in @terpimost's Figma design that I think corresponds to the screenshot he posted above:
https://www.figma.com/file/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=538-21662
(That screen for "edited", and the next one to the right for "moved".)

@gnprice
Copy link
Member Author

gnprice commented May 13, 2024

I've edited the description to be more specific that as part of this issue, we'll be storing only the information that the message was moved or edited, not all the details of the edit history.

There's a previous attempted PR for this at #543. For whoever picks this issue up next, feel free to consult that PR, but don't feel obligated to borrow code from it — it's fine to start writing your changes from scratch.

@PIG208 PIG208 self-assigned this Jun 24, 2024
@PIG208 PIG208 linked a pull request Jun 24, 2024 that will close this issue
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 26, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

This partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 26, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 26, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

This partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jun 26, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
@PIG208 PIG208 linked a pull request Jun 26, 2024 that will close this issue
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 13, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 15, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 16, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 16, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 16, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 16, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 16, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 17, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 17, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
gnprice pushed a commit to PIG208/zulip-flutter that referenced this issue Jul 17, 2024
This adds basic support to displaying a edited/moved marker next to the
message content. As of now this is implemented without the swipe gesture
control that would expand the marker.

Partially addresses zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 18, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
PIG208 added a commit to PIG208/zulip-flutter that referenced this issue Jul 29, 2024
This adds full support to the edited/moved marker feature by allowing
the user to expand the edited/moved marker to show a helper text on a
colored block in the background. The marker retracts as soon as the user
releases the touch.

Fixes zulip#171.

Signed-off-by: Zixuan James Li <[email protected]>
@gnprice
Copy link
Member Author

gnprice commented Aug 11, 2024

@gnprice
Copy link
Member Author

gnprice commented Oct 8, 2024

This was resolved with #900 (a few weeks ago).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-msglist The message-list screen, except what's label:a-content
Projects
Status: Done
4 participants