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

SAK-40248: Begin the standardization of the toolbar for table controls (e.g. filtering and paging) across tools #5744

Merged
merged 2 commits into from
Jul 25, 2018

Conversation

plukasew
Copy link
Contributor

https://jira.sakaiproject.org/browse/SAK-40248

As a small step of the standardization project known as SWITCH, standardize the view and paging controls found at the top of most tools. Start with a few tools, such as Assignments, Announcements, and Site Info.

Goals of this change:

  • Create standard components, styles, design, and layout for these controls
  • Ensure the layout of these components work across varying screen sizes and toolbar
  • Make the controls easy for developers to use in future table pages
  • Create reusable Velocity components that can be applied to other tools

Scope:

  • Announcements - main page
  • Assignments - all pages with tables
  • Site Info - main page

@sakaiproject sakaiproject deleted a comment Jun 28, 2018
@sakaiproject sakaiproject deleted a comment Jun 28, 2018
@sakaiproject sakaiproject deleted a comment Jun 28, 2018
@sakaiproject sakaiproject deleted a comment Jun 28, 2018
@sakaiproject sakaiproject deleted a comment Jun 28, 2018
@fostersdesign
Copy link
Contributor

I have attached screenshots to the JIRA ticket to illustrate some before and after shots of some of the pages improved by this change and to highlight the responsive design of the toolbar as well.

@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from plukasew Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from ottenhoff Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from plukasew Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from ottenhoff Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from plukasew Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from ottenhoff Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from plukasew Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from SedueRey Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from SedueRey Jul 4, 2018
@sakaiproject sakaiproject deleted a comment from jonespm Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 4, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
@sakaiproject sakaiproject deleted a comment Jul 24, 2018
}
}

@media all and (max-width: 400px)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add another media variable on _defaults.scss just in case anyone else needs it.

Copy link
Contributor

Choose a reason for hiding this comment

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

smallPhone or something like that

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 breakpoint is here specifically to allow the pager buttons to stack when there isn't enough room. 400px was chosen because of the size of the pager controls, so I don't know if it makes sense to base something general like "smallPhone" on this value.

@@ -0,0 +1,23 @@
// scripts for the #pagerPanel velocity macro (see VM_chef_library.vm in the velocity project)
// will use SPNR (spinner.js) if it is already loaded
var VM_PP = VM_PP || {};
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a codacy error. This is a common way to work on JS because you don't know if variable is set or not as @plukasew said. He totally has a point. This shouldn't be an error on Codacy for this kind of errors.

{
if (typeof SPNR !== "undefined") // if SPNR is available, use it
{
SPNR.disableControlsAndSpin(selectElement, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as before, @plukasew did a great job, it's codacy error. In client JS files errors should be different than Java or Node files.

@SedueRey
Copy link
Contributor

Great work, I think this will be a great improvement on tool navigation.

@SedueRey
Copy link
Contributor

SedueRey commented Jul 25, 2018 via email

@plukasew
Copy link
Contributor Author

Thanks, I've added a comment

@sakaiproject sakaiproject deleted a comment Jul 25, 2018
@sakaiproject sakaiproject deleted a comment Jul 25, 2018
@sakaiproject sakaiproject deleted a comment Jul 25, 2018
@sakaiproject sakaiproject deleted a comment Jul 25, 2018
@sakaiproject sakaiproject deleted a comment Jul 25, 2018
@sakaiproject sakaiproject deleted a comment Jul 25, 2018
@sakaiproject sakaiproject deleted a comment Jul 25, 2018
@sakaiproject sakaiproject deleted a comment Jul 25, 2018
@bjones86 bjones86 merged commit 5a2d134 into sakaiproject:master Jul 25, 2018
bjones86 pushed a commit to bjones86/sakai that referenced this pull request Aug 11, 2018
bjones86 pushed a commit to bjones86/sakai that referenced this pull request Aug 21, 2018
bjones86 pushed a commit to bjones86/sakai that referenced this pull request Aug 27, 2018
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.

4 participants