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

SIS Import Data Modal #193

Merged
merged 16 commits into from
Apr 14, 2021
Merged

Conversation

rbiz4
Copy link

@rbiz4 rbiz4 commented Apr 10, 2021

No description provided.

@rbiz4 rbiz4 linked an issue Apr 10, 2021 that may be closed by this pull request
However, the modal does not show up. This is a WIP
The initial version of the SIS import data modal
is completed: it shows up by default upon entering
the advising page, and soon we will add the feature
to make it not show up automatically when there is
data to render.
@rbiz4
Copy link
Author

rbiz4 commented Apr 10, 2021

For now, the modal shows up automatically, as soon as the advising page opens up, as below
image
My guess is that we want this to stop when there is actually data to render from SIS.

Currently, there are two ways to make the modal automatically show up upon opening the advising page:

Method one (what I am using right now): I call this.props.triggerSISImportDataModal() in top_bar_advising.jsx, as shown below:
image

Method two (I am not using this): I set the visibility to true in the modal reducer, as shown below:
image

This gives us two ways to control whether/not the modal shows up automatically upon opening the advisor page.

My question is, should the automatic pop-up control be something that the page itself is responsible for (Method one), or is it something that the Modal should be responsible for (Method two)?

@miaboloix
Copy link

using just the toggle function is fine for now i think

(or something like this). Click the
button below to be taken to the Consent
Page on SIS.</h3>
</div>);

Choose a reason for hiding this comment

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

Instead, I would write something like: "In order to connect with your advisors through Semester.ly, you must agree to Semester.ly importing your data from SIS." And then have the "Import SIS" button.

Copy link
Author

Choose a reason for hiding this comment

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

Will revise

@@ -159,7 +159,6 @@ class Semesterly extends React.Component {
<IntegrationModalContainer />
<TutModalContainer />
<PeerModalContainer />
<SaveCalendarModalContainer />
<FinalExamsModalContainer />

Choose a reason for hiding this comment

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

Is this intentional?

Copy link
Author

Choose a reason for hiding this comment

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

This was accidental, will add it back.

<span>SIS Import Data Modal</span>
</ReactTooltip>
</div>
);

Choose a reason for hiding this comment

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

I think this is okay for now but add a TODO comment to remove this and instead add an "Import Data" button. Then, create an Issue to track this TODO. Maybe this issue can be called "Replace star with an Import Data button that triggers the Import Data modal"

Copy link
Author

Choose a reason for hiding this comment

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

Will change button

Copy link

Choose a reason for hiding this comment

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

I noticed that Semesterly makes use of Fontawesome.com icons if you want to look into that, although I think just a button that says "import data" would be fine

Changed SIS import data modal text

Added the save calendar modal back to semesterly.jsx

Changed the button that is used to pull up the modal
from a star to actual text
@@ -30,6 +32,7 @@ class TopBarAdvising extends React.Component {
this.comments_collapsed = 'neutral';
this.toggleComments = this.toggleComments.bind(this);
this.renderUserForPrint = this.renderUserForPrint.bind(this);
this.props.triggerSISImportDataModal()
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't this make it always pop up?

Copy link
Member

Choose a reason for hiding this comment

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

Okay, I saw your comment that it's like this for now. Maybe add a # TODO then

miaboloix and others added 2 commits April 14, 2021 11:17
Copy link

@miaboloix miaboloix left a comment

Choose a reason for hiding this comment

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

Pull most recent cs310 branch and also check for lint errors (npm run lint).

@yesterd3v
Copy link
Collaborator

yesterd3v commented Apr 14, 2021

Merge in cs310
Update: Disregard merging in cs310, looks like you did merge in yesterday.

(but yep, fix lint errors!)

@miaboloix
Copy link

Lint errors!

@JJamesWWang
Copy link
Member

I get a weird scrollbar when it first appears.
Scrollbar

@JJamesWWang
Copy link
Member

The modal also doesn't appear when I go to /advising

Copy link
Member

@JJamesWWang JJamesWWang left a comment

Choose a reason for hiding this comment

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

See above comments

@rbiz4
Copy link
Author

rbiz4 commented Apr 14, 2021

I commented out the auto-pop-up part, and I left a TODO, linked to an issue (#219) about it

@rbiz4
Copy link
Author

rbiz4 commented Apr 14, 2021

The scrollbar happens with other (pre-existing) modals as well
image

Copy link

@miaboloix miaboloix left a comment

Choose a reason for hiding this comment

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

lgtm

@rbiz4 rbiz4 merged commit 0884d12 into jhuopensource:cs310-spring21 Apr 14, 2021
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.

Create UI for Import SIS Data modal
5 participants