Skip to content

[#610][3] Add All Anchor IDs and All Steps of Tutorial And Style Change - #661

Merged
bolichen97 merged 26 commits into
masterfrom
bolin-tutorial-library-merge#3
Oct 6, 2018
Merged

bolichen97 merged 26 commits into
masterfrom
bolin-tutorial-library-merge#3

Conversation

@bolichen97

@bolichen97 bolichen97 commented Sep 19, 2018 •

Copy link
Copy Markdown

The goal of this PR is to create all necessary Anchor IDs and add all necessary tutorial steps and polish the CSS file.

The library we use to achieve this goal is ngx-tour
The software I use to create the Gifs is called GIPHY Capture


The final goal of PR [#610] is to implement a tutorial into new GUI.

@chenlica

Copy link
Copy Markdown
Contributor

@bobbyfine this screenshot is too old. Can we use a screenshot of the latest UI?

@bolichen97

Copy link
Copy Markdown
Author

@bobbyfine this screenshot is too old. Can we use a screenshot of the latest UI?

This is the latest master branch UI

@chenlica

chenlica commented Sep 22, 2018 •

Copy link
Copy Markdown
Contributor

@avinash0161 and @zuozhiw : can you look into it? I believe even the current master has a different UI than what is shown here.

@zuozhiw

zuozhiw commented Sep 26, 2018

Copy link
Copy Markdown
Contributor

@bobbyfine A couple of comments:

  1. As Prof Li said, the screenshot is definitely very very old. It's better to construct a plan using the new GUI and put a screenshot there. You can tentatively use the following plan: Source:Scan -> Keyword Search -> Sentiment Analysis -> View Result.
  2. The "Start Tour" button is not aligned with the "Run" button. Please fix CSS.
    screen shot 2018-09-26 at 2 09 18 pm
  3. After closing the tour, you need to click the "start tour" button twice to start the tour again. Please fix it.
  4. In the second step, the tour panel's position makes the prev/next buttons below the screen. We've talked about this issue before, please fix it. This is very important.
    screen shot 2018-09-26 at 2 10 50 pm
  5. I can't proceed to the 3rd step, the console shows this error message: ngx-tour-core.js:368 Can't attach to unregistered anchor with id Source: Scan.

@bobbyfine The product tour feature has been lasted for the whole spring and summer. It's a very nice addition to the new frontend. I hope that we could fix the bugs and imperfections and conclude this feature soon. Thanks.

…der to the html, even adding the placeholders cannot test tourService.next() and prev()
…x the bug of running texera UI on firefox and microsoft edge, remove test cases that will be moved to e2e testing later on
@henrychen0220

henrychen0220 commented Oct 4, 2018 •

Copy link
Copy Markdown
Contributor

A couple of changes made:

  1. Updated the testings for the tutorial to check whether an event is triggered when the user starts or ends the tutorial.
  2. Fix the issue where the tour panel's position makes the entire tutorial UI appears below the screen by setting the width and the height of the GIF / Image imported from asset.
  3. Resolve the problem for running Texera UI on Microsoft Edge and FireFox. The problem was caused by getting one of the internal properties for the jQuery event, event.toElement, which is currently not supported in both of the browsers. The correct way to call this is to call event.target.

position: relative;
z-index: 11;
background-color:#fff
#NextButton {

@zuozhiw zuozhiw Oct 4, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

for the ID of an element, the prev-button naming convention rather than PrevButton is used. furthermore, a prefix is needed for the ID, this ID is too common and has a high chance of duplicate ID from a third party library.

Also for CSS, class is preferred than ID.

I'll directly make the change since it's simple.

@zuozhiw zuozhiw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@henrychen0220 already approved it and I also approve this PR. Thanks for the work @bobbyfine 👍

</center>
<br>
<p>
Texera is a system to support cloud-based text analytics using declarative and GUI-based workflows. Use <b>« Prev</b> and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Replace and with '/'. i.e Prev/Next or Left/Right

`,
title: 'Select Operator',
placement: 'right',
preventScrolling: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we make preventScrolling: false, will the overall size of the tutorial box reduce? If yes, then maybe we can see the workspace and drag properly.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

the "preventScrolling" is meant to prevent the whole page automatically scrolling with the tour in some long web pages

{
anchorId: 'texera-operator-panel',
content: `
<p>This <b>Operator Panel</b> contains all the operators we need. </p>

@avinash0161 avinash0161 Oct 6, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This Operator Panel contains all the operators you need to construct a workflow.

Let's create a basic twitter text analysis workflow to demonstrate the steps involved in creation of a workflow.

Open the first operator group named Source. This group contains all the operators needed to import a source dataset into a workflow.

content: `
<p>Drag <b>Source: Scan</b> operator and drop it to the workflow panel. </p>
<p><b>Source: Scan</b> is a operator that read records from a table one by one.</p>
<center><img src="../../../assets/Tutor_Intro_Drag_Srouce.gif" height="450" width="600"></center>

@avinash0161 avinash0161 Oct 6, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Drag the Source: Scan operator and drop it on the workflow panel.

Source: Scan operator reads records one by one from a table.

<p>This is the operator editor area where users can set the properties of the operator. </p>
<p>Now we want to edit the property of <b>Source: Scan</b> operator by typing <b>twitter_sample</b>
, which specifies the data we want to use.</p>
<center><img src="../../../assets/Tutor_Property_Sample.gif" height="260" width="500"></center>

@avinash0161 avinash0161 Oct 6, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is the property editor panel where users can set the properties of an operator.

Now, we want to edit the input table property of Source: Scan operator and set it to twitter_sample table. Please type twitter_sample in the space for the input table property.

anchorId: 'texera-operator-panel',
content: `<p>Now we want to view the results of selected data. Open <b>View Results</b> section.</p>
<center><img src="../../../assets/Tutor_OpenResult_Sample.gif" height="270" width="500"></center>
<br><br>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To view the output of a workflow, you need to end the workflow with a View Results operator. Please open the View Results section.

content: `
<p>Drag <b>View Results</b> operator and drop it to the workflow panel.</p>
<center><img src="../../../assets/Tutor_Intro_Drag_Result.gif" height="400" width="590"></center>
<br><br>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Drag View Results operator and drop it on the workflow panel.

anchorId: 'texera-property-editor-grid-container',
content: `
<p>Connect those two operators.</p><center>
<img src="../../../assets/Tutor_JointJS_Sample.gif" height="150" width="500"></center>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Connect the Source:Scan and the View Results operators.

anchorId: 'texera-workspace-navigation-run',
content: `
<p>Click the run button to execute the workflow.</p>
`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Click the Run button to execute the workflow.

anchorId: 'texera-result-view-grid-container',
content: `
<p>You can view the results here.</p>
`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can view the results in the Results Panel here.

<center><h3>Congratulations!</h3></center>
<p>You have finished the basic tutorial. </p>
<p>There are many other operators you can use to form a workflow.</p>
<center><img src="../../../assets/Tutor_End_Sample.gif" height="335" width="640"></center>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You have finished the basic tutorial.

There are many other operators that you can use to form a workflow.

@avinash0161 avinash0161 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have suggested some text changes in the comments.

fix the wording problem according to the PR comments
@bolichen97
bolichen97 merged commit 5e7f22b into master Oct 6, 2018
@bolichen97
bolichen97 deleted the bolin-tutorial-library-merge#3 branch October 6, 2018 22:15
@Yicong-Huang Yicong-Huang added frontend Changes related to the frontend GUI and removed gui labels Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants