Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@youyu16
Copy link
Contributor

@youyu16 youyu16 commented Mar 28, 2019

make a workaroud for show lg content. will change when lg parser is ready
test

@cwhitten
Copy link
Member

cwhitten commented Apr 9, 2019

@youyu16 what is the status of this change? it's starting to get stale.

@youyu16
Copy link
Contributor Author

youyu16 commented Apr 10, 2019

@cwhitten this is pending on the lg parser from botbuilder-js and some changes about files api. I have a local version rebase from master everyday, but import a local version of lg parser and make a work around about how to read lg files is not a proper way. may abandon this and create a new one when ready.

@youyu16
Copy link
Contributor Author

youyu16 commented Apr 15, 2019

@cwhitten please notice that show lg content is only working in this branch. this is just a workaround.

@cwhitten
Copy link
Member

can you please address conflicts that this branch has with master?

@youyu16
Copy link
Contributor Author

youyu16 commented Apr 16, 2019

@cwhitten fix the UT and conflict with master.

@cwhitten
Copy link
Member

@youyu16 will you be updating this branch to include writing to the lg file?

@youyu16
Copy link
Contributor Author

youyu16 commented Apr 18, 2019

@cwhitten yes, I will update this branch include writing to the lg file, I need some time to refactor it using the latest get dialog/lg api which checked in yesterday.

@youyu16 youyu16 force-pushed the tianyu/lgeditor branch 2 times, most recently from a12da7c to 87d0d38 Compare April 18, 2019 15:54
@youyu16
Copy link
Contributor Author

youyu16 commented Apr 18, 2019

lg file auto save should working now

@boydc2014
Copy link
Contributor

yarn lint is complaining, you might want to run yarn lint --fix

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

state.dialogs == lgTemplates?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, my bad

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if i understand this correct, this api is for updating one lg template, right? then why this is writing the whole content to the file?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why LG editor affect storageExplorer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a small change to let detail list header stick to the top when you scroll.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's make it another PR, I guess

Copy link
Contributor

@boydc2014 boydc2014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgEditor/index.js is empty?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i see, so you merge all lgTemplate to write in here, in client? I think it's better to do this in server, because

  1. you don't have to pass a lot of data to server
  2. server have more knowledge, can do the merge better. Server can utilize the knowledge it gains when parsing it to do the job better.

Copy link
Contributor

@boydc2014 boydc2014 Apr 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this definition of api implies that you are updating a single template, but you actually updating the whole lg file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this demo.lg been loaded and used by dialog?

@boydc2014 boydc2014 changed the title [WIP] lg editor lg editor Apr 18, 2019
@boydc2014
Copy link
Contributor

I fixed the lint issue and leave some comments @youyu16

Copy link
Member

@cwhitten cwhitten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is getting close. I'd like to see the following:

  1. Tests! Thank you.
  2. Merging all LG files into one editing UI. Do we want that? Let's discuss at the next scrum meeting.
  3. There is a mix of using emotion for css-in-js and inline styles. let's move everything to emotion.

@boydc2014
Copy link
Contributor

This is getting close. I'd like to see the following:

  1. Tests! Thank you.
  2. Merging all LG files into one editing UI. Do we want that? Let's discuss at the next scrum meeting.
  3. There is a mix of using emotion for css-in-js and inline styles. let's move everything to emotion.

Thanks @cwhitten for bring up #2, this is something i talked with Rachel and Marieke multiple time and still not been convinced that we should hide multiple files behind user. let's talk this in next scrum.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be using IFileStorage

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this get extracted to emotion?

@boydc2014
Copy link
Contributor

Looks good to me, @youyu16 but there is some conflict to resolve

@boydc2014 boydc2014 self-requested a review April 23, 2019 13:26
Copy link
Contributor

@boydc2014 boydc2014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve the conflict and fix the css issue

@cwhitten cwhitten merged commit fdce675 into master Apr 23, 2019
@cwhitten cwhitten deleted the tianyu/lgeditor branch April 23, 2019 16:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants