lichenglu / MVivo

An open sourced NVivo built with Typescript
https://mvivo.herokuapp.com
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

Code book overview/create/update/deletion #3

Closed lichenglu closed 5 years ago

lichenglu commented 6 years ago

Hi Prof Lisa, hope you are enjoying your new job!

I need some help creating codebook related UI. The workflow would be almost the same as workspace's, which was implemented (except for update). Let me know if you are available, and we can discuss in detail. @liusashmily

saliudev commented 6 years ago

Hey, Kabe,

Great to hear from you! I noticed that you have made some good progress!

Sure, I am happy to help! I am available on Saturday morning, Sunday afternoon, and Monday.

Please let me know, we could talk via phone, or skype if needed.

Thanks, Lisa

On Thu, 16 Aug 2018 at 21:55, Chenglu Li notifications@github.com wrote:

Hi Prof Lisa, hope you are enjoying your new job!

I need some help creating codebook related UI. The workflow would be almost the same as workspace's, which was implemented (except for update). Let me know if you are available, and we can discuss in detail. @liusashmily https://github.com/liusashmily

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lichenglu/MVivo/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AExJ39PHKcn0va0B-VsseNAqvQE4fAqKks5uRjCFgaJpZM4WA48m .

-- Sa Lisa Liu

lichenglu commented 6 years ago

@liusashmily Awesome! What about tomorrow morning, say 10am (maybe not morning to you 😂)?

saliudev commented 6 years ago

Sure! 10 am sounds great!

Shall we Skype? Or my number is 5128156086.

Thanks, Lisa On Fri, Aug 17, 2018 at 10:57 PM Chenglu Li notifications@github.com wrote:

@liusashmily https://github.com/liusashmily Awesome! What about tomorrow morning, say 10am (maybe not morning to you 😂)?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lichenglu/MVivo/issues/3#issuecomment-414027753, or mute the thread https://github.com/notifications/unsubscribe-auth/AExJ36vysgbapB6aM_IeyME0ItTzRC5Aks5uR4KugaJpZM4WA48m .

-- Sa Lisa Liu

lichenglu commented 6 years ago

Cool! I will call you on Skype!

saliudev commented 6 years ago

My Skype is sasscsssass.

Talk to u soon

On Sat, Aug 18, 2018 at 10:25 AM Chenglu Li notifications@github.com wrote:

Cool! I will call you on Skype!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lichenglu/MVivo/issues/3#issuecomment-414061619, or mute the thread https://github.com/notifications/unsubscribe-auth/AExJ3wY1cQuNApj1ITvaXF-cizEbDYiFks5uSCPlgaJpZM4WA48m .

-- Sa Lisa Liu

lichenglu commented 6 years ago

@liusashmily Forgot to mention this morning. I use an application called reactotron for state logging and debugging, which is quite neat.

You can install it through brew cask install reactotron. Just open reactotron before you start the app, and you should be all set. For more info, please visit https://github.com/infinitered/reactotron

saliudev commented 6 years ago

Gotcha!

saliudev commented 6 years ago

Just had an idea after chatting with a friend today.

Do you think it is possible that the tool can help researcher automatically generate code/theme by using machine learning algorithm?

I am not sure if Nvivo has this feature or not, but it might actually really help reduce the redundant work that qualitative researcher have while doing the coding....

Just a thought... for future features...

lichenglu commented 6 years ago

That is exactly what me and Chris will present at AECT :P. But there are tricky issues such as a lack of training data (I doubt researchers are willing to publish their raw and coded data before their article is accepted), and too many potential labels. We can talk more in detail if you are interested. However, the reason I want to do this app is to have a playground to test research ideas. And you are welcomed to use it for research too!

lichenglu commented 6 years ago

@liusashmily Almost hit a milestone! The coding feature is basically done (still buggy though). Let me know how you feel if you have time to try out!

Changes have been merged to master, and you might want to remove node_modules, and reinstall them.

saliudev commented 6 years ago

Cool!

I pulled the code, and imported a txt file to test it. It seems great, but does have some bugs.

Nice work!

I finally created a new branch for the code books interface today! lol

Thanks, Lisa

On Wed, 29 Aug 2018 at 22:30, Chenglu Li notifications@github.com wrote:

@liusashmily https://github.com/liusashmily Almost hit a milestone! The coding feature is basically done (still buggy though). Let me know how you feel if you have time to try out!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lichenglu/MVivo/issues/3#issuecomment-417178434, or mute the thread https://github.com/notifications/unsubscribe-auth/AExJ33vKnqutPuqAPmcBAAS7K2gnjO2Rks5uV1xFgaJpZM4WA48m .

-- Sa Lisa Liu

lichenglu commented 6 years ago

Thanks for the feedback Lisa!

  1. I think most of the time coding does not work because there is a really confusing thing. When you select a sentence, you cannot click the text input directly, instead, you need to click anywhere in the rich text editor to make sure your selected text becomes gray...This is something I need to fix in the near future.
  2. The way to code right now is to select targeted sentence(s) first, which makes them buffered in gray color. Then you can either click the tags (if there are existing tags) below the input field, or type in the input field for autocomplete and select code. You can also create a new code on the fly if no such code exists in the codebook when you type.
  3. Yes, tags are clickable, so are coded sentences. You can add/delete codes to a coded sentence by clicking the sentence, the bgColor of which should become darker, and you can just code using input or tags. The UI is buggy though.

No hurry for the code books :).

lichenglu commented 6 years ago

OK...might need to undo the whole efforts 😢... It seems to be a terrible mistake for me to choose Draft.js for the rich text editor. Because draft is not very extensible, and seems not maintained by Facebook any more...I might migrate to Slate.js instead.

lichenglu commented 5 years ago

@liusashmily After weeks of playing...I finally migrated to Slate.js, which is very extensible, and is a good fit for the collaboration feature (in the long future). The Select to code feature is much better now (multi-select to code is not working perfectly, and the tags appearance is buggy)

There is a surprise if you create a workspace, import a document, and code some texts. Then go to http://localhost:1234/workspace/:workspaceID/summary. We can now output a basic APA table!

saliudev commented 5 years ago

Thanks for the update!

I pulled the code, and did some tests. Two quick questions:

  1. To code the text, I tried to highlight the sentences, however, it seems sometimes I can only highlight one or two words rather than a whole sentence. Is it the same for your? See attached screenshot, hope it makes sense.
  2. I tried to check the summary using the link you suggested, it gave me a blank page. The URL I used is http://localhost:1234/workspace/a322789a-f920-4da5-b19d-a4a9f9781471/summary . Am i missing something?

Also, would you be available this weekend? (Sep.15-16) I would like to chat about the UI for codebooks.

Thanks, Lisa

On Wed, 12 Sep 2018 at 21:12, Chenglu Li notifications@github.com wrote:

@liusashmily https://github.com/liusashmily After weeks of playing...I finally migrated to Slate.js, which is very extensible, and is a good fit for the collaboration feature (in the long future). The Select to code feature is much now, but the tags appearance is buggy.

There is a surprise if you create a workspace, import a document, and code some texts. Then go to http://localhost:1234/workspace/:workspaceID/summary. We can now output a basic APA table!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lichenglu/MVivo/issues/3#issuecomment-420859566, or mute the thread https://github.com/notifications/unsubscribe-auth/AExJ35JldWUxO8igY4j1sGSYGK8-O_gQks5uab8WgaJpZM4WA48m .

-- Sa Lisa Liu

lichenglu commented 5 years ago

Hmm...Might be the issue of Parcel's caching (which makes it rebuild faster). Try to stop the project, and delete the directory .cache at project root, and then restart.

Yes! I am available this weekend. Just let me know a time that works for you

saliudev commented 5 years ago

Okay! I will try that out!

Would Skype on Saturday 10am (tomorrow 10 am) work for you? Austin local time.

Thanks, Lisa

On Fri, 14 Sep 2018 at 12:42, Chenglu Li notifications@github.com wrote:

Hmm...Might be the issue of Parcel's caching (which makes it rebuild faster). Try to stop the project, and delete the directory .cache at project root, and then restart.

Yes! I am available this weekend. Just let me know a time that works for you

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lichenglu/MVivo/issues/3#issuecomment-421416691, or mute the thread https://github.com/notifications/unsubscribe-auth/AExJ38j2l_IvtWHRb8f8clC5qgN6McHLks5ua9yIgaJpZM4WA48m .

-- Sa Lisa Liu

lichenglu commented 5 years ago

10 am works for me! Talk to you then!

On 14 September 2018 at 13:20:39, liusashmily (notifications@github.com) wrote:

Okay! I will try that out!

Would Skype on Saturday 10am (tomorrow 10 am) work for you? Austin local time.

Thanks, Lisa

On Fri, 14 Sep 2018 at 12:42, Chenglu Li notifications@github.com wrote:

Hmm...Might be the issue of Parcel's caching (which makes it rebuild faster). Try to stop the project, and delete the directory .cache at project root, and then restart.

Yes! I am available this weekend. Just let me know a time that works for you

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lichenglu/MVivo/issues/3#issuecomment-421416691, or mute the thread < https://github.com/notifications/unsubscribe-auth/AExJ38j2l_IvtWHRb8f8clC5qgN6McHLks5ua9yIgaJpZM4WA48m

.

-- Sa Lisa Liu

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lichenglu/MVivo/issues/3#issuecomment-421443334, or mute the thread https://github.com/notifications/unsubscribe-auth/ANrZKH1gVVU6ZpR0RFbBU_xvs5nIEqsyks5ua_N2gaJpZM4WA48m .

saliudev commented 5 years ago

@lichenglu hey, kabe, I pushed the code-book-ui branch to Github. Basically, it looks like the workspace at this moment. User can click the + button to add codebook. However, I am not quite sure how to display the added codebook at this moment. Shall I have a summary.tsx and detail.tsx for codebook as well? Also how do you handle the created codebook data at this moment? - put in the store?

lichenglu commented 5 years ago

@liusashmily Thank you Lisa! I will take a look over the weekend!

No need for showing the details for now! We can think what is the best way to show the code book content so as to not overlap what we have for the workspace.

Yes, the codebook data is handled by the codebook.ts store file. The .views(...) and .actions(...) should give you an overview on what has been exposed outside of the store.

BTW, I have discussed the feature we wanna make on Slate.js with their project members, and it seemed there is no ready-to-go solutions for us. So I might have to dive deep to their library, and send a PR to them.

lichenglu commented 5 years ago

@liusashmily merged https://github.com/lichenglu/MVivo/pull/14

I decided to disallow the select-to-highlight feature, because after talking to people, some find it could be annoying (image you simply want to select the text, but you don't want to make a buffered text/highlighted). So I add hotkeys to manually make a selection highlighted. Check the hotkeys table when you have time!

Almost there! Now the coding functionality can meet the basic needs I think.

lichenglu commented 5 years ago

Closed https://github.com/lichenglu/MVivo/pull/14