-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Make a "suggestions" comment type that can be "accepted" by the author #741
Comments
We might want to reference a line number, but if the post is edited, it could go out of date. Do we need note revisions? We could note line number, and when there's an edit, we could do something with diff and attach to same line number? |
this is a fantastic idea. we see in our google docs collaborations that people feel more comfortable with comments and suggestions than direct edits. |
I'd like to bump this one up as well for rich wikis. |
We just had this feature merged which is a bit similar -- #2000 Maybe @ViditChitkara would like to try a version of that which proposes a change to a wiki page body text?
But this would be harder because if you did a small section like |
Also adding: a way to see the suggestions, both in list mode (just the comments tab of the wiki page, maybe?) and inline (much harder!!) |
We could actually insert the suggestions into the wiki text itself, rather than a comment... but we'd have to record who made the suggestion too. :-/ a tough nut to crack! |
For now, perhaps we could just show the suggested changes in the comments, and show a notice that says |
That's quite a nice idea! Let's break this feature into the following :-
The 'here' button would highlight the sections to be replaced along with the suggestions in the body
@jywarren @steviepubliclab @mathewlippincott please update this checklist, since this is still raw and needs some refinement. We could then make issues out of the checklist!! |
This sounds good - maybe one more; some filter which, after detecting a proposed replacement, checks if there is more than 1 instance of the proposed Also, after accepting a replacement, we could show an alert saying "Read over the page to ensure your changes are correct. Click here to revert the change! The link to revert could be generated similarly to on the Revisions tab of a wiki page. This will make it easy to go back if you've done something out of control :-P 👍 |
Cool! That seems to complete the feature checklist :-+1. I'll be really happy to contribute to this!!! |
amazing! 👍 |
@ViditChitkara have you started on this one? Thanks! |
Woah!! This slipped out of my mind!! I guess I hadn't started coding this but was discussed completely. Will start working on this, after I'm through with deprecating the answer related code. |
We now have 'replace' methods for nodes, this is still being debugged for
Rich Wikis, but it's a good reference -- check out the wiki controller's
'replace' option! We should finish debugging it over there, but then could
extend the ability for this purpose too.
…On Mon, Mar 25, 2019 at 12:40 PM Vidit ***@***.***> wrote:
Woah!! This slipped out of my mind!! I guess I hadn't started coding this
but was discussed completely. Will start working on this, after I'm through
with deprecating the answer related code.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#741 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ4RkFm_r5N4xYoW9ChL8sXGUnq_3ks5vaPv3gaJpZM4JueYd>
.
|
could i work on this, if its available |
Thanks @unnati914 for showing interest. We could surely use your help for this :D This seems like a significant work, So I would suggest you to analyze and breakdown things. Feel free to reach out on chat or in this thread if any issues :) |
sure :) |
It might reference a specific line in the original note, and once accepted, could then be minimized in the comments section, like:
@ebarry accepted a suggestion from @jywarren 3 days ago
This would be a little like inline comments on commits in Github (example from here)
This needs breaking up, but some steps could be:
wiki.replace(before, after)
method which searches forbefore
and replaces it withafter
, unit tested (done!)wiki.sections
method which returns an array of wiki sections split on<p>
and other block-level tags (done! we now use Inline Markdown Editorwiki.replace(b, a)
method is used to enact the suggested change. This may need some thought (see below)Much related old work here: #1005
The text was updated successfully, but these errors were encountered: