Skip to content
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

Help angular module #2024

Merged
merged 26 commits into from
Dec 5, 2020
Merged

Help angular module #2024

merged 26 commits into from
Dec 5, 2020

Conversation

RFSH
Copy link
Member

@RFSH RFSH commented Oct 28, 2020

In the latest task that @rastogi-bhavya was working on, we decided to add a help page to explain how users can draw using the new drawing tools. After discussing this, we decided to go with a more "future proof" solution that can be used for generating future help pages that we want to host directly in chaise page (without directing them outside of chaise.)

So I added a new "help" app which is just a template for rendering markdown values. For adding new help pages, we just need to provide a .md file and some extra attributes. With this approach, we don't need to worry about the HTML and AngularJS side of things and just focus on the content of our documents. This solution is very similar in nature to what is done for deriva docs.

I created this PR so @jrchudy and @hongsudt can see the approach and we can further discuss this solution. You can see how it works here:
https://dev.rebuildingakidney.org/~ashafaei/chaise/help/?page=viewer-annotation

We can later refactor our existing help pages (markdown tags and the switch-user one), to use this new app.


P.S.
@rastogi-bhavya I noticed that you were using HTML tags directly in your markdown, although that's acceptable in Github markdown parser, it's not acceptable by our internal parser. You should also stick with a relative path for images instead of an absolute path. That way your help pages work both in the app as well as Github. I modified one of your images, you can see how I did it and change the rest. With this new syntax, we're attaching specific classes to images that later we can modify. That being said, I think for now we should make sure this way of doing things is acceptable by all, then we can focus on the content of the help page.

@carlkesselman
Copy link

carlkesselman commented Oct 28, 2020 via email

@RFSH
Copy link
Member Author

RFSH commented Oct 29, 2020

@carlkesselman The content is part of the chaise repository, under the same wiki folder. For example, this is the one page that we have right now:
https://github.com/informatics-isi-edu/chaise/blob/annotation-documentation/wiki/viewer-annotation.md

@RFSH
Copy link
Member Author

RFSH commented Oct 29, 2020

I should also mention that I just wanted to show how this would work. We can change the style of the page and make it cleaner and easier to read (for example adding margin to both sides of the page so the content is in the middle and doesn't stretch to the whole screen.) For now, it's using the same default styles that we're using in chaise for the markdown column types.

@carlkesselman
Copy link

carlkesselman commented Oct 29, 2020 via email

@hongsudt
Copy link
Contributor

hongsudt commented Oct 29, 2020 via email

@carlkesselman
Copy link

carlkesselman commented Oct 29, 2020 via email

@karlcz
Copy link
Contributor

karlcz commented Oct 29, 2020 via email

@RFSH RFSH changed the title Wiki app Help angular module Oct 29, 2020
@RFSH
Copy link
Member Author

RFSH commented Oct 29, 2020

Our goal for this PR was to be able to have some sort of help pages for complex parts of Chaise directly in the Chaise UI. So when users navigate to those pages, they don’t get lost without a way back to Chaise (so we decided against directing them to deriva docs, or Github).

We already have two of such pages as I mentioned in the PR. We just never thought about doing it in a reproducible way. The wiki (which I realized is a bad term and I changed it to "help" instead) that I added is just like any other Chaise app/module that we have. All the content and template are part of the Chaise module and will be deployed with the same make install command alongside the rest of the Chaise. it’s just an easier way for us (Chaise developers) to just focus on writing documentation without worrying about the template each time.

I'm not trying to introduce a way to allow users of Chaise to modify the content of these documents.

@RFSH RFSH self-assigned this Oct 29, 2020
@RFSH RFSH marked this pull request as ready for review December 3, 2020 01:44
@RFSH RFSH requested a review from jrchudy December 4, 2020 21:14
@RFSH
Copy link
Member Author

RFSH commented Dec 4, 2020

@jrchudy The PR is ready to be reviewed and merged. Please let me know if you have any concerns about this new app so we can discuss it. As we discussed earlier, we're not going to change any of the existing help pages right now, and this is only used for viewer app drawing help.

@RFSH RFSH merged commit 767a371 into master Dec 5, 2020
@RFSH RFSH deleted the annotation-documentation branch December 5, 2020 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants