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
Comments & Annotations #301
Comments
|
I would like to work on this issue. |
|
@oliversauter, |
|
@blahah already worked on some code to make the highlighting possible.
You mean for the design for the comments? Will provide them by the end of the week. Thanks for taking this on! |
|
Yes, I think it would be of great help having the UI, then we can go through less iteration for the data |
|
I have read the code of the direct-linking-client. |
|
Here are the mockups for the comments feature. Results list with new iconEvery result element should have a new icon indicating the ability to add a comment Sidebar to add new comment and edit old onesWhen pressing the comment button, a sidebar opens on the right. If there is no previous commentIf there is no previous comment the cursor already in the "new comment" box, so that people can start typing right away. If there is a comment already:If there is a comment already, the field is automatically in edit mode and the cursor is already after the end of the available text, when opening the sidebar. Popup to add comment when visiting pageThe popup basically has the same behaviour as the comments you make in the overview's sidebar. Important note:
|
|
Hi @oliversauter I have made the presentational component for the comment box in the popup view. I have made a draft according to the Open Annotations Model and I am on the way of writing the HOC for it. After that I'll start working on the side bar component. Cheers !! |
|
hey @migom6 Great! thanks for communicating everything you did clearly and congrats to your first progress! :)
Where did you implement it or just thought about it? Can't find it in your commits. |
|
hi ! @oliversauter |
Of course! Best of luck with your exams. :) Rock it! |
|
hey @oliversauter @blahah |
|
Great, just left a comment and linked the guys who built annotatorJS and worked on the implementation of the spec at Hypothes.is. :) I think you can try to progress with the rest and get it running, and we change the data model later. Now we first want to get a proof of concept up. |
|
Here you go :) |
|
i wanna get involved in this . can i ? |
|
@oliversauter thanks 😄 |
|
Hey @oliversauter. Few questions.
In this issue, you have mentioned that we should be storing comments locally. But your comment in PR #317 confuses me.
If we are taking multiple authors into consideration, we would first need to way to identify users (like creating an account first and being logged in) and we would have to store the data in an online server (like maybe the proxy server in PR #236). But if we are storing the comments locally, we wouldn't be requiring an author field at all, since all the comments are created by one user only. Can you clarify? |
This was just a comment to clarify the structure of annotations > to basically rephrase what Randall has been saying. However later, when sharing functionality is implemented, it will certainly be the case that multiple authors have annotations displayed on a single users machine. Does that clarify? |
|
As for now, we are focusing on a single user. There can be multiple comments for a single selector and multiple selectors for a single page. |
|
Got it thanks! |
|
I would like to work on this issue |
|
Hi @090max ! I am working on this issue. Let me know if I can help with this |
|
Ya, I actually need help as I am first time working for gsoc and wanted
help on what can we do in this comments and annotation that proves suitable.
…On 24 Mar 2018 8:07 p.m., "Madhurjya Pegu" ***@***.***> wrote:
Hi @090max <https://github.com/090max> ! I am working on this issue. Let
me know if I can help with this
Thanks 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#301 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ae3Ai5wfxx72H_h4V11kJr96xDrkKXKIks5thloogaJpZM4SEKNB>
.
|
|
@migom6 thanks for jumping in to clear up the situation. @090max Tips i can give you look around early for the projects you want to contribute to. Usually the mentoring organisations are announced mid February. Until next year! |
|
I made some new mockups for the sidebar content to display highlights/comments/annotations Notes for Content Types
Notes for sidebar
Notes for ribbon
|
Sidebar InjectionSince we are going to be having the Comments/Annotations Sidebar present in every website, I was researching on some neat ways to inject it. I liked styled-components before, but thinking of it now, it wouldn't be suitable for us since it uses custom React components and would require some messing of webpack config. The first approach we can try is the same way we have done with both Memex.Link tooltip and SearchInjection. That is inserting all the components into the DOM of the website in content script. Relatively easier method but has a downside to this approach, CSS overrides. We won't be having clashing classnames (thanks to modular CSS classnames), but global overrides for specific tags can be annoying. Shadow DOM might be an easy solution for us, but Firefox sadly doesn't support it. Second approach is how hypothesis has done it. Mostly similar to the previous approach but instead of inserting the Sidebar itself they have inserted an iFrame which points to a chrome extension page. So here we will have to create a new Sidebar module and add a separate webpack entry for it. The iFrame approach seems good to me (until Shadow DOM is implemented in Firefox) as it solves the CSS problems and has been working well with hypothesis. I am not sure about any downsides to this approach. But @poltak was against using the iFrame approach, are there any caveats to this? @ShishKabab @oliversauter Any say in this? |
|
Note that I don't have much experience in this problem domain at all, so please take what I say with a grain of salt. If you've done your own research into the different options and consider iframe to be the best option as of now, I completely support that :)
Ngày 9 thg 6, 2018, vào lúc 02:27, Sriram <notifications@github.com> viết:
… Sidebar Injection
Since we are going to be having the Comments/Annotations Sidebar present in every website, I was researching on some neat ways to inject it.
I liked styled-components before, but thinking of it now, it wouldn't be suitable for us since it uses custom React components and would require some messing of webpack config.
The first approach we can try is the same way we have done with both Memex.Link tooltip and SearchInjection. That is inserting all the components into the DOM of the website in content script. Relatively easier method but has a downside to this approach, CSS overrides. We won't be having clashing classnames (thanks to modular CSS classnames), but global overrides for specific tags can be annoying. Shadow DOM might be an easy solution for us, but Firefox sadly doesn't support it.
Second approach is how hypothesis has done it. Mostly similar to the previous approach but instead of inserting the Sidebar itself they have inserted an iFrame which points to a chrome extension page. So here we will have to create a new Sidebar module and add a separate webpack entry for it.
The iFrame approach seems good to me (until Shadow DOM is implemented in Firefox) as it solves the CSS problems and has been working well with hypothesis. I am not sure about any downsides to this approach. But @poltak was against using the iFrame approach, are there any caveats to this?
@ShishKabab @oliversauter Any say in this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
This seems complete currently. |









We want to give people the ability to interact more deeply with the content they read.
As preparation for GSoC this means implementing the ability to make one or more comments and link them to one or more pages, with respect to the Open Annotation Data Model. The more tricky part, which will then be part of GSoC is to add the ability to create annotations. Adding annotations is work dependent on the highlighting done in #236
Goals V1:
Storing, editing, deleting and displaying of one comment, no searchability yet
Goals V2:
Ability to do same with multiple, separate comment
Goals V3:
Ability to add annotations to any highlight in the text (dependent on #236 )
Goals V3:
Making comments, highlights and annotations searchable.
The text was updated successfully, but these errors were encountered: