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

Modified topic viewer page and few UI changes on topic editor page. #6455

Merged
merged 51 commits into from
Apr 19, 2019

Conversation

anubhavsinha98
Copy link
Contributor

@anubhavsinha98 anubhavsinha98 commented Mar 14, 2019

Added 4 tiles display for story & few UI changes for Topic Editor page.

Explanation

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The linter/Karma presubmit checks have passed.
    • These should run automatically, but if not, you can manually trigger them locally using python scripts/pre_commit_linter.py and bash scripts/run_frontend_tests.sh.
  • The PR is made from a branch that's not called "develop".
  • The PR follows the style guide.
  • The PR is assigned to an appropriate reviewer.
    • If you're a new contributor, please ask on Gitter for someone to assign a reviewer.
    • If you're not sure who the appropriate reviewer is, please assign to the issue's "owner" -- see the "talk-to" label on the issue.

codician and others added 30 commits November 27, 2018 04:28
@anubhavsinha98
Copy link
Contributor Author

Also, can you either center the tabs in the topic viewer or have the left margin of the tabs be aligned with that of the story cards? (like in topics and skills dashboard). Also, the viewer looks like this for me:
image
It doesn't have the extended grey area in the tab header (which is how it should be).
Do you know why it was there in your screenshot?

Hi, @aks681 that screenshot is from Mozilla Firefox browser. Are you using any other browser?

@aks681
Copy link
Contributor

aks681 commented Mar 18, 2019

Yeah, I was using Chrome 73 on Windows.

Copy link
Member

@seanlip seanlip left a comment

Choose a reason for hiding this comment

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

Generally no issues, just a few questions/nits. If @aks681 is happy with this PR then so am I :)

@@ -47,6 +47,9 @@ <h4 ng-if="topic.getCanonicalStoryIds().length === 0" style="color: gray;">
</div>

<style>
.topic-editor textarea {
resize:vertical;
Copy link
Member

Choose a reason for hiding this comment

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

add space after colon

/cc @oppia/dev-workflow-team this should be a lint check?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for the delay.
Filed #6494.
Thanks.

Copy link
Member

@DubeySandeep DubeySandeep Apr 20, 2019

Choose a reason for hiding this comment

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

@anubhavsinha98, We have merged this PR without this fix and now the tests are failing in develop branch!
image

@@ -54,7 +54,7 @@
</li>
<li ng-class="{'active': getActiveTabName() === 'main', 'uib-dropdown': getWarningsCount()}" ng-attr-uib-dropdown="<[getWarningsCount()]>" class="icon">
<a uib-tooltip="Main Editor" tooltip-placement="bottom" ng-click="selectMainTab()">
<i class="material-icons">&#xE254;</i> <span style="font-size: 0.8em;">Topic</span>
<i class="material-icons">&#xE254;<span style="font-size: 0.9em;">T</span></i>
Copy link
Member

Choose a reason for hiding this comment

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

I'm also not sure about this -- as @aks681 says, 'S' is ambiguous. Maybe "SUBTOPIC" or "SKILL" in small letters? But that may be hard to read, so we might need to look for a different way of representing this.

@aks681, this might be a question for a designer perhaps?

@@ -75,20 +75,21 @@

<li ng-class="{'active': getActiveTabName() === 'subtopics'}" class="icon">
<a class="protractor-test-subtopics-tab-button" uib-tooltip="Subtopics Editor" tooltip-placement="bottom" ng-click="selectSubtopicsTab()">
<i class="material-icons">&#xE254;</i><span style="font-size: 0.7em;">Subtopics</span>
<i class="material-icons">&#xE254;<span style="font-size: 0.9em;">S</span></i>
Copy link
Member

Choose a reason for hiding this comment

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

Ditto here and below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -90,7 +90,7 @@
stories-list div .oppia-topic-viewer-carousel {
float: left;
height: 430px;
max-width: 1070px;
max-width: 1420px;
Copy link
Member

Choose a reason for hiding this comment

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

This seems a little big. Does it work well on mobile?

Copy link
Contributor

Choose a reason for hiding this comment

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

@anubhavsinha98 Can you confirm this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I just checked it on mobile view it seems its failing. Will fix it and update the PR.

Copy link
Member

Choose a reason for hiding this comment

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

@anubhavsinha98, are we expecting this to be fixed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have fixed it and actually in mobile view we get a list of story tiles vertically. Akshay has added screenshot for it. i think it can help.

@seanlip
Copy link
Member

seanlip commented Mar 18, 2019

(Also, just to be clear, I was mainly looking at this from a code perspective. @aks681 can speak more as to the intended UI.)

@anubhavsinha98
Copy link
Contributor Author

Hi, @aks681 I have fixed the tab issue which was not extending earlier.

Copy link
Contributor

@aks681 aks681 left a comment

Choose a reason for hiding this comment

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

LGTM!
Can you reply to the one comment about mobile view? Other than that, looks good.

@oppiabot
Copy link

oppiabot bot commented Apr 9, 2019

Hi @anubhavsinha98, I'm going to mark this PR as stale because it hasn't had any updates for 10 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 7 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale label Apr 9, 2019
@oppiabot oppiabot bot removed the stale label Apr 11, 2019
@anubhavsinha98
Copy link
Contributor Author

Hi @aks681 corrected the mobile view. PTAL Thanks!

Copy link
Contributor

@aks681 aks681 left a comment

Choose a reason for hiding this comment

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

image
This is what I am getting now. Can you remove the extended gray area?
In mobile also, the same issue is there.
WhatsApp Image 2019-04-13 at 9 21 36 PM

@anubhavsinha98
Copy link
Contributor Author

Hi @aks681 made the changes. PTAL Thanks!

@anubhavsinha98
Copy link
Contributor Author

image

@anubhavsinha98
Copy link
Contributor Author

image

Copy link
Contributor

@aks681 aks681 left a comment

Choose a reason for hiding this comment

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

LGTM

@aks681 aks681 merged commit 23ff087 into oppia:develop Apr 19, 2019
@anubhavsinha98 anubhavsinha98 mentioned this pull request Apr 19, 2019
8 tasks
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.

6 participants