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

Allow viewing message edit history #4134

Open
chrisbobbe opened this issue Jun 3, 2020 · 1 comment · May be fixed by #4173
Open

Allow viewing message edit history #4134

chrisbobbe opened this issue Jun 3, 2020 · 1 comment · May be fixed by #4173
Assignees

Comments

@chrisbobbe
Copy link
Contributor

chrisbobbe commented Jun 3, 2020

@timabbott said:

I think this is a checkbox feature, where there's a lot of value in it, even if the polish isn't great. (FWIW, the Zulip webapp's display of topic edits is semi-broken and has been since it was first implemented, for example)

See more discussion around that quoted message.


The endpoint it looks like we'll want to use is documented here.

We have a binding for it, in src/api/messages/getMessageHistory.js, that currently isn't used.

Conveniently, just as with messages themselves, it looks like the diff we want to display, content_html_diff, is HTML, which we can render in a WebView.

I think a major question we'll need to answer first is whether the edit history should be viewed in the same WebView used to display the message list, or if it should be a new WebView.

There's been some discussion around here of introducing a new WebView for the particular reason that we want to replicate a complicated (but useful) bit of the web app's UI so we don't have to reinvent it ourselves: in that case, the settings UI (which indeed has a lot of stuff going on).

Here, though:

  • The stuff we want to display isn't particularly various or complicated: a list of edit items, where each edit item shows the diff, the timestamp, and the person who made the edit (I'm guessing there's an admin feature to allow non-authors to edit messages).

  • Also, Tim says this about the web app's implementation:

    @timabbott said:

    the webapp's implementation of it is one of our least polished features, but people clearly do like it despite that.

Given these observations, I'm currently inclined against dropping the web app's implementation into its own WebView (with the tweaks necessary to make that possible), even though it might be a win for developing our code-sharing infrastructure.

In this train of thought, if we do put it in its own WebView (separating it from the MessageList), then we should do so for different reasons. Possibly, just wanting to avoid complicating the existing WebView is sufficient. I'm leaning that way, currently; presumably, we'd be responding to a long-press, or something in the action sheet, and the bulk of the logic for those handlers is already outside the message list's WebView. But I could anticipate hesitation about a multiplicity of WebViews.

@gnprice, thoughts?

@gnprice
Copy link
Member

gnprice commented Jun 3, 2020

if we do put it in its own WebView (separating it from the MessageList), then we should do so for different reasons. Possibly, just wanting to avoid complicating the existing WebView is sufficient. I'm leaning that way, currently; presumably, we'd be responding to a long-press, or something in the action sheet, and the bulk of the logic for those handlers is already already outside the message list's WebView.

That sounds like a good reason to me.

This will be a lot like MessageReactionList -- it's an additional screen in the navigation, which you get to from long-press to see more details about a specific message. That seems a lot simpler to implement and maintain than adding to the existing WebView, and on a phone's (small) display it's probably a nicer UX anyway.

@agrawal-d agrawal-d self-assigned this Jun 26, 2020
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jun 29, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
@agrawal-d agrawal-d linked a pull request Jun 29, 2020 that will close this issue
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jun 29, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jun 29, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jul 4, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jul 8, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jul 8, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jul 8, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jul 16, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jul 27, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jul 27, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
agrawal-d added a commit to agrawal-d/zulip-mobile that referenced this issue Jul 27, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
chrisbobbe pushed a commit to agrawal-d/zulip-mobile that referenced this issue Dec 9, 2020
Creates a component 'EditHistory' that renders a webview to show
the edit history of a message. This webview is non-interactive -
the user can select/copy message contents, but can not interact
with them - like open links/navigate to narrows etc.

Fixes: zulip#4134
gnprice added a commit that referenced this issue Feb 15, 2022
Note this is only a latent bug, though -- because we don't currently
expose the edit history in the UI at all.  That's #4134.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants