Commit Graph

52 Commits

Author SHA1 Message Date
Clay Diffrient bbe7b598b6 Update Shared Components for React 0.13.3
skip-ci

This commit includes upgrading react-modal to v0.5.0

Test Plan:
  - Tests should pass
  - Anywhere react-modal is used (Files, Color Picker, etc.)
    should work as expected
  - There should be no warnings/errors in the console.

Change-Id: I25e585fe992001cb1a225b8f76c688854c072de6
Reviewed-on: https://gerrit.instructure.com/65971
Reviewed-by: John Corrigan <jcorrigan@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
QA-Review: Michael Hargiss <mhargiss@instructure.com>
Tested-by: Clay Diffrient <cdiffrient@instructure.com>
2015-11-19 00:35:09 +00:00
Clay Diffrient 34b8f3448e Update External tools to work with React 0.13.3
This commit also upgrades React Router to version 0.13.4

skip-ci

closes CNVS-24259

Test Plan:
  - Everything at /accounts/XX/settings/ on the Apps tab should
    work as expected
  - There should be no React related errors/warnings in the console

Change-Id: If36dfb32ad79ad164bd2d122ca72d42d2f3222bf
Reviewed-on: https://gerrit.instructure.com/65810
Reviewed-by: Brad Horrocks <bhorrocks@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Clay Diffrient <cdiffrient@instructure.com>
2015-11-19 00:33:55 +00:00
Clay Diffrient 6cc74d3efc Upgrade React to 0.13.3
skip-ci

closes CNVS-24203

Test Plan:
  - Make sure all tests pass
  - Make sure all react areas in canvas work properly

Change-Id: If989f091ae6e45f0c47081464c739344822d2e4a
Reviewed-on: https://gerrit.instructure.com/59913
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Clay Diffrient <cdiffrient@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
2015-11-19 00:31:25 +00:00
Jon Jensen 9bc2dc05bb new account course search page
also lay foundation for new account user search

test plan:
* in development mode, enable the
 "Course and User Search" feature flag
* should be able to view the "Search" tab on the
 sidebar (may need to resave the account to
 clear the sidebar cache)
 (replaces the "Courses" and "Users" tabs)
* searching for courses on the account page
 should work pretty good
 (the people tab is still forthcoming)

closes #CNVS-24750

Change-Id: Id44d1b3c7c36e407339858d2c1657579d1128abc
Reviewed-on: https://gerrit.instructure.com/65268
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
2015-11-12 19:39:16 +00:00
Jonathan Featherstone 1568c75ab7 Fullcalendar Upgrade
fixes CNVS-23816
fixes CNVS-23718
closes CNVS-23721
closes CNVS-23717
refs CNVS-23719
refs CNVS-19514
fixes CNVS-23719

note: feathj, cpalmer, and mnomitch
all worked on this jointly

test plan:
  - general regression of calendar
    - all 4 views
    - with events, assignments, overrides
      and scheduler
    - with personal timezone and course
      timezones different

  CSS plan:
  - stylistic regression of the calendar
  - confirm that orange border around current day should show completely

    hover:
    - Create an event for the calendar
    - Hover over the event, it should be pulling in the custom
    color (it's not working if, on hover, it changes white)

    big cal borders:
    - The current date should have an orange background and now
    is pulling in the border along the title at the top

Change-Id: I92df1271545db7a00fcd9695e018822279ba56d5
Reviewed-on: https://gerrit.instructure.com/65007
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
2015-10-26 17:09:14 +00:00
Clay Diffrient 25edf74d42 Move Moderated Grading to Redux
This is an initial stab at the conversion.  It gets most of the
boilerplate stuff in and working.

It also handles converting over the publish button.

closes CNVS-23313
closes CNVS-23037
closes CNVS-22746

Test Plan:
  - Set up your environment to function with moderated grading stuff
  - Go to a moderated grading assingment as a teacher
  - You should see the list of students that can be moderated
  - Test Plan from CNVS-22746:
    - Activate Moderated Grading feature flag
    - Create an assignment that is moderated
    - Submit a few assignments as students
    - Go to speedgrader on those assignments and give
      an initial grade
    - Go to the assignment page as the teacher and
      click the "Moderate" button
    - Click the "Publish" button
    - A confirmation box should appear
    - Cancelling should do nothing
    - Confirming should then flash a green success flash message
    - The grades should now be published to the gradebook.
  - The publish button should be disabled after doing the previous steps.
  - Refreshing the page should still have the button disabled.

Change-Id: I15f4bc5d71f7bd3120c4c2ba2d4d239e8ad22db7
Reviewed-on: https://gerrit.instructure.com/63547
Tested-by: Jenkins
Reviewed-by: Jon Willesen <jonw@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-09-22 21:37:08 +00:00
Dylan Ross, Cody Poll, and Spencer Olson b9534edd64 merge react-gradebook and put behind feature flag
merge the dev/react-gradebook dev branch into
master, and put it behind a feature flag.

closes CNVS-23056

test plan:

go to account settings, and verify the
gradebook performance feature is turned
off. verify no bugs have been introduced
on the current, non-react-gradebook.

Change-Id: Ia1723d14df8bb77f91ffd832b446b0df842ac56e
Reviewed-on: https://gerrit.instructure.com/62978
Tested-by: Jenkins
Reviewed-by: Dylan Ross <dross@instructure.com>
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: Spencer Olson <solson@instructure.com>
2015-09-11 16:00:35 +00:00
Sterling Cobb e946fe2b57 add axios to canavs
Change-Id: I85c024371bda818c3daaefd7ad8ed3d7dd4a5a2d
Reviewed-on: https://gerrit.instructure.com/62009
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Sterling Cobb <sterling@instructure.com>
2015-08-28 16:26:00 +00:00
Michael Nomitch 12ff98e170 upgrade moment to 2.10.6
fixes CNVS-22400

test plan:
  - run followin in JS console
    m = require('moment')
    m()
  - a Moment object is returned

Change-Id: I424001d75d54c53fbf46a820875a10802e8a3902
Reviewed-on: https://gerrit.instructure.com/60308
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Jenkins
Product-Review: Jacob Fugal <jacob@instructure.com>
QA-Review: Jacob Fugal <jacob@instructure.com>
2015-08-07 23:42:07 +00:00
Jacob Fugal dda1d7f413 add moment.js to our common bundle
fixes CNVS-21570

test-plan:
 - visit a page in canvas
 - open the javascript console
 - run `require("moment")().format()`
 - get a string representation of the current time

Change-Id: I3f5dc6978855574e13bcaa0100db792a726b8167
Reviewed-on: https://gerrit.instructure.com/57606
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
2015-07-17 18:35:12 +00:00
Ryan Shaw d7d3ccf9e3 extract smartbanner out of 'common' into it's own bundle
this change does a few things:
* removes 'smartbanner' from the 'common' css and
  js bundles into it's own that is only loaded on
  android devices.  (this is a win since we only
  use it for android anyway so we won't be sending
  that needless css/js on every page load now)
* uses bower to load 'smartbanner'. this is good
  since it makes upgrading easier and makes it clear
  where the separation of our code and vendor code is.
* now, there are no files in our repo that are just
  copy-pasted from 'smartbanner'

test plan:

* load canvas on a web browser on an android device,
  it should show the "install the canvas native app"
  just like it used to.
* load canvas on a normal browser, the banner should
  not appear.
* aka, there is no observable change to users.

Change-Id: Ifed35a255d774a9148a90b1daf7b4c8e09af91ce
Reviewed-on: https://gerrit.instructure.com/54806
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2015-07-07 20:54:15 +00:00
Ethan Vizitei 93c612b822 fix auth selector for AACs
closes CNVS-21177

Turns the auth type selector into a react component
and makes sure it responds correctly in a couple
corner cases (with specs!)

TEST PLAN:

1) go to the authentication providers config page
2) add several authentication providers
3) you should always be scrolled down to your new
  form when you add a new one

Change-Id: Ia520ee358dbc8a469e29e13fcd653cf11f9259b3
Reviewed-on: https://gerrit.instructure.com/56377
Tested-by: Jenkins
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2015-06-16 15:49:24 +00:00
Colleen Palmer e8dd470a72 Dashboard Cards Dashboard
fixes CNVS-20119; fixes CNVS-20139; fixes CNVS-20140;
fixes CNVS-20424; fixes CNVS-20426

This adds a new Dashboard view when using New UI.

Note: This is for New UI only. Legacy UI should only show Recent Activity on
dashboard (as it always has).

Test Plan:

- Login and make sure new UI is on
- Go to / and see the new Dashcard view.
It should look similar to: http://cl.ly/image/2R2K28183h2G

- Switch to "Recent Activity" by using the toggle
It should look similar to: http://cl.ly/image/2l1V1h421b0d

- Dashboard Cards have quick links on the bottom to quickly let you
navigate to within a course. These include:

- Discussions (if available)
- Announcements (if available)
- Files (if available)
- Assignments (if available)

If activity has happened in Announcements, Assignments or Discussions, an
active state is given to the quick link that makes it look like this:

http://cl.ly/image/1d3Y0T3w1Q01

Change-Id: Ia07f7f2711d6e0625d26d7ea5d050ccb51dc0128
Reviewed-on: https://gerrit.instructure.com/53043
Reviewed-by: Jennifer Stern <jstern@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
Tested-by: Jenkins
QA-Review: Adam Stone <astone@instructure.com>
2015-06-10 22:55:43 +00:00
Matt Zabriskie ff2fa04ed4 Converts new styles navigation to React
This is a squashed commit of g/54335 and g/54489
Because Internet Explorer is crazy and has SVGs as focusable by
default, we add the focusable="false" attribute to all the SVGs
so that they don't recieve focus in IE.

refs CNVS-18489

Test Plan:
  - Turn on new styles (Settings > Feature Options > Use New Styles)
  - Navigation should now appear as left panel
  * Please note that sometimes because of caching it may take a bit for you
    to see new styles, restarting the server makes this much quicker :)
  - Verify inbox unread count should show if there are unread items.
  - Verify links work, the inbox and calendar should take you where you want to
    go.
  - Verify the avatar image is shown on the Profile item.
  - Verify Courses tray
    * Clicking, or pressing Space/Enter on Courses should open tray
    * Clicking away, or pressing Esc should close tray
    * Focus should be returned to Courses when tray is closed
    * The same behaviors should also work with any of the
  - If you have admin (account) access, you should have an "accounts"
    option.  Clicking it should cause a list of accounts to fly out.
  - If you have groups, you should have a "groups" option. Clicking
    it should show the flyout list with groups in it.
  - The Profile nav item should cause a profile flyout to open.

Change-Id: Id73bca9470d2fd422e56f6de317db5518b393923 (+1 squashed commit)
Squashed commits:
[3f96364]

refs CNVS-18489

test plan:

1.
2.
3.
4.
6. Verify Courses tray
  - Clicking, or pressing Space/Enter on Courses should open tray
  - Clicking away, or pressing Esc should close tray
  - Focus should be returned to Courses when tray is closed

Change-Id: I904a344cfc5ae75e1e4757aab30796f98779e4f6
Reviewed-on: https://gerrit.instructure.com/54335
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-05-29 18:35:59 +00:00
Michael Nomitch 7a4c5c40f1 DA - updated react-tokeninput lib
fixes CNVS-20652

test plan:
  - go to SelRel student picker
  - add a student and then re-click
    the input with your mouse
  - the input opens when you do this
  - try this again a few times to make
    sure behavior is consistent

Change-Id: I51524afec98708a24ccc534cd2b3967da6c51990
Reviewed-on: https://gerrit.instructure.com/54815
Tested-by: Jenkins
Reviewed-by: Matt Berns <mberns@instructure.com>
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-05-27 14:29:43 +00:00
Michael Nomitch 588806ac29 new due dates selection UI
fixes CNVS-18413

test plan:
  - on assignments, quizzes & discussions pages
  - with DA on and off
  - assign various due dates/(un)lock dates
    to source sections, individuals, and everybody

  - these should create overrides that properly take
    students/sections and dates
  - validations should work for all dates as normal
    and not let empty overrides get created (with no
    students or sections)
  - the names of overrides should properly update as
    students change
  - as more overrides get created, saving assignments
    should not slow down significantly
  - the student/section selector should be intuitive

Change-Id: I1d4fafa8e4f52096ce88731cdb4bdf442eeb0f80
Reviewed-on: https://gerrit.instructure.com/51628
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-05-14 21:09:30 +00:00
Clay Diffrient 5a05239c3e Upgrades react-modal to the latest version in bower
fixes PLAT-944

Test Plan:
  - Go to external apps
  - Add an app
  - The modal should appear
  - Press shift+tab
  - Focus should not leave the modal
  * Make sure the modal isn't borked in other places such as the
    course wizard and new files preview.

Change-Id: Ibeec9d6182086e4e542996e1c646bb49bef8fad0
Reviewed-on: https://gerrit.instructure.com/51312
Tested-by: Jenkins
Reviewed-by: Jonathan Featherstone <jfeatherstone@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-04-01 16:51:11 +00:00
Michael Nomitch 16131fb8de include react-tokeninput deps
fixes CNVS-19468

no test plan

Change-Id: Id10b6d4885d9b920098930227da03edb9f6b0bed
Reviewed-on: https://gerrit.instructure.com/50868
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: Simon Williams <simon@instructure.com>
QA-Review: Mike Nomitch <mnomitch@instructure.com>
2015-03-30 21:52:28 +00:00
Ethan Vizitei 5aa64a8e18 Upgrade Tinymce to 4.1.9
closes CNVS-19496

Minor upgrade from 4.1.7 to 4.1.9

TEST PLAN:
 - Use the tinymce editor in various contexts
 - there should be no significant behavior difference from 4.1.7
 - Styles should still look good

Change-Id: I5470efd61ab3bdc8cdece017ab5e0fce827d62d3
Reviewed-on: https://gerrit.instructure.com/50856
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2015-03-26 18:17:59 +00:00
Ethan Vizitei c6d219029e install tinymce 4.1.7 with Bower
refs CNVS-11523

this doesn't make use of 4.1.7, just gets it into the
repo so we have a stable installed version

Change-Id: Id5dd09574d1f74ec33ad373998510181deac7f28
Reviewed-on: https://gerrit.instructure.com/49996
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2015-03-07 14:58:59 +00:00
Ryan Shaw 4d2fc99b66 upgrade bower react & react-router but change nothing existing
closes: CNVS-18177

this commit just changes our bower version of react
and react-router to the latest and copies the
current versions we are using to
old_unsupported_dot_use_react.js ant
old_unsupported_dot_use_react-router.js

...and then points everyone's existing code to those
old versions, so that nothing actually changes.

but if you require 'react' or 'react-router' you will
now get the new version.

each team can now take the time to update their own code
to the new versions and when no one is using either
of these 2 old libraries we can delete them.

test plan:
poke around in newfiles, the course wizard,
the external_apps app, quiz-statistics and make
sure they still work. nothing should actually change

Change-Id: I99a3526a740ac82f350bb6dd1fd4f25e4fd92483
Reviewed-on: https://gerrit.instructure.com/47625
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2015-02-11 19:42:38 +00:00
Eric Berry 44d4a9fa7f Rebuilt App Center in React
fixes PLAT-731
fixes PLAT-774
fixes PLAT-679

Test steps:
- Add, remove, navigate and show apps
- Ensure that when the App Center is disabled,
  you are only able to access the configurations

Patchset notes:
33: removed ability to destroy cache via api, removed reviews
37: rebased
37: fixed js map bug

Change-Id: I397aeab58ff50a5a930b39228571a7088e5784ce
Reviewed-on: https://gerrit.instructure.com/43818
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
Product-Review: Eric Berry <ericb@instructure.com>
2015-01-05 21:34:02 +00:00
Eric Berry 3235a5b020 Update react-modal and establish canvas modal style
fixes PLAT-771

Change-Id: Ia7ea6ca7002f1c1926f845d74af3544337c96def
Reviewed-on: https://gerrit.instructure.com/44584
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
Reviewed-by: Colleen Palmer <colleen@instructure.com>
QA-Review: Eric Berry <ericb@instructure.com>
2014-12-05 18:11:48 +00:00
Ryan Shaw d6e042da8b Updated react-router
react-router wasn't correctly firing the
route handler in IE10, resulting in a blank
page.  This fixes that by updating react-router
to the newest version.  Note that some of the
functionality is currently broken in IE,
such as styles and the FolderTree.  Let's
do a run through of IE now that it's rendering
and make tickets of whatever is left to be fixed.

fixes CNVS-15930

test plan:
* Enable "Better File Browsing" feature flag
* Navigate to any course's Files tab in IE10
* The FilesApp should render and be semi-functional

Change-Id: I52e4ca73ace6ca0dec6b26a76c1a3cfa51e5d128
Reviewed-on: https://gerrit.instructure.com/42453
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2014-10-16 18:04:44 +00:00
Clay Diffrient 95c383492a Adds react-modal to Canvas
Test Plan:
  - Nothing really testable, since it just adds a library

Change-Id: Ib5977abeffdc759a57c5373e193a9b113af54a49
Reviewed-on: https://gerrit.instructure.com/41835
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Jason Madsen <jmadsen@instructure.com>
QA-Review: Jason Madsen <jmadsen@instructure.com>
2014-09-26 17:19:24 +00:00
Braden Anderson 363a24a3e1 use bright calendar colors for low-contrast users
test plan:
  * disable high-contrast stylesheet
  * load calendar
  * add events for multiple contexts
  * verify that the colors used are bright

  * enable high-contrast stylesheet
  * load calendar
  * verify that the colors used are dull

Change-Id: Id8b39aa1c683994411e9111e14667aab1f157fd1
Reviewed-on: https://gerrit.instructure.com/41072
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Reviewed-by: Matthew Wheeler <mwheeler@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Braden Anderson <braden@instructure.com>
2014-09-22 14:49:51 +00:00
Ryan Shaw a8b2a430b6 bump react-router to 0.5.2
Change-Id: I5e097387cea46897f04d5005777d93e2cdd4cb68
Reviewed-on: https://gerrit.instructure.com/38918
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2014-08-08 20:20:28 +00:00
Ryan Florence 9eb846c06c added react-router
Change-Id: If5b7a1e960acaca805d4f154705cbd2da34acb3f
Reviewed-on: https://gerrit.instructure.com/38084
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2014-08-08 19:22:23 +00:00
Ryan Florence 88afac883e [wip] magic modules
Change-Id: I68283129aa2fe8146ab804adbce1fb6699f2f5bb
Reviewed-on: https://gerrit.instructure.com/37213
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Ryan Florence <ryanf@instructure.com>
QA-Review: Ryan Florence <ryanf@instructure.com>
2014-07-28 21:24:37 +00:00
Ryan Shaw 6034184ee4 add search to files and convert to react
closes: CNVS-12642
closes: CNVS-11221

test plan:

nothing should have changed for courses/accounts that
have the feature flag 'better_file_browsing' turned off
but I guess make sure.

with it turned on, you should be able to browse the
files in your course, search for things, and re-sort.

it should paginate, download files you click on,
show thumbnails of files (where it has one) and you
and see the files usage in the bottom left.

things that I know dont work:
* the folder tree thing on the left is still
  just static html, not the actual files in your course.
* it does full page reloads when you go from
  looking at one folder to another or when you
  search for something. I am going to fix that.

I know there is still work to be done here to consider
the entire files section complete, but this is a solid
foundation so that sterling and I can collaborate and
work forward.

Change-Id: Ia79ddba4318b7d6e52b38a87e91f615552da250b
Reviewed-on: https://gerrit.instructure.com/37491
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Sterling Cobb <sterling@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
2014-07-22 22:07:52 +00:00
Ryan Florence 065093e97c added React.JS
we aren’t using jsx (yet, anyway) bring it into a
module like anything else:

    define ['react'], (React) ->

There’s also a helper module to make building
your UI simpler at `compiled/withReactDOM`. It
safely moves everything from `React.DOM` to window
during a function call for convenience.

Change-Id: Ibf64f0b207411c31b92f30dddc6ce188d9462e11
Reviewed-on: https://gerrit.instructure.com/37376
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Ryan Florence <ryanf@instructure.com>
QA-Review: Ryan Florence <ryanf@instructure.com>
2014-07-10 15:25:35 +00:00
Paul Hinze bbee74e0f0 bump k5uploader to v0.0.3
to get case insensitive file extension fix

fixes NTRS-608

Change-Id: I7a4f3fa4fb80c24b32e211c197dde844a7117c7d
Reviewed-on: https://gerrit.instructure.com/37047
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
QA-Review: David Josse <david@instructure.com>
Product-Review: Paul Hinze <paulh@instructure.com>
2014-07-03 12:21:28 +00:00
Ryan Florence e5084332b5 updated/added ic-* components
Change-Id: I30c3d1038dc582f5aee1316812698ac7a85c28af
Reviewed-on: https://gerrit.instructure.com/36485
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Florence <ryanf@instructure.com>
QA-Review: Ryan Florence <ryanf@instructure.com>
2014-06-16 19:52:50 +00:00
Ryan Florence 72ba706550 update ic-ajax
Change-Id: I21e0181db69fd846bbbdc38bfaa5b74c56ee2699
Reviewed-on: https://gerrit.instructure.com/36277
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Ryan Florence <ryanf@instructure.com>
QA-Review: Ryan Florence <ryanf@instructure.com>
2014-06-16 16:23:11 +00:00
Ryan Shaw 6b5e3b6d5b A work in progress version of the new ember files app
this commit is meant to be a way to commit some of
the progress I have been making on this.  everything
new is behind a hidden feature flag so it should
not do anything any different for any existing users

if you want to test it out, open a console
and do:
Course.find(<your course id>).enable_feature! :better_file_browsing

then browse to the 'files' part of your course.

the main thing to QA right now is that we did not
break anything for people that don't have that
feature flag turned on.  I know there are a ton of
things that are either broken or still need to be
implemented on the new app.

this is a few commits squashed into one and
closes multiple tickets:

create rails routes for new files UI
closes: CNVS-12140

for the new files UI we are going to use pushState
urls so we had to find a url namespace that we
could completely take over. the thing we chose was
/(courses|groups)/<course_id>/files/folder/foo/bar/baz
(assuming you were looking at the foo/bar/baz folder)

example urls:
/course/1/files/folder/foo/bar/baz
/groups/2/files/folder/lectures/1 Cell Mitosis/handouts/takehome work/
/files
/course/1/files

acceptance criteria:
the following NEW urls SHOULD be routed to new
ember files page:

/(courses|groups|accounts|users)/:id/files/folder*full_path
/dashboard/files/folder*full_path
/files/folder*full_path

the following urls already exist and if the
:new_files feature is enabled SHOULD be routed
also to the new ember files page instead of where
they go now (but if the :new_files feature is not
enabled, they should still go where they go now):

/files
/(courses|groups|accounts|users)/:id/files
/dashboard/files

style mockups for the new files page
fixes CNVS-11216

Enable feature flag for new files page, closes #CNVS-11215
closes: CNVS-12730
closes: CNVS-12659
closes: CNVS-12663

Change-Id: I3868fcf8efd6b517f38f56e88c7bb1e56cf564e8
Reviewed-on: https://gerrit.instructure.com/36005
QA-Review: Clare Strong <clare@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2014-06-11 20:23:10 +00:00
Jason Madsen ae56bf0953 update ic-menu to 0.1.9
this release of ic-menu has fix for conditional items being ordered
correctly and adds ability to have a disabled menu item

closes CNVS-13355

test plan:
  - enable ember quizzes
  - navigate to an existing quiz overview / show
  - click the admin cog in the top right
    - lock, or unlock the quiz
    - click the cog again
    - using up and down keyboard arrows navigate through menu
      - verify that the key navigation order syncs with the visual order
        in the list

Change-Id: Ica4809c1454fcc0204155d60a429852f1af1bbc3
Reviewed-on: https://gerrit.instructure.com/35803
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Jason Madsen <jmadsen@instructure.com>
2014-06-03 17:22:34 +00:00
Braden Anderson 05d4cf6620 individual gradebook view: outcomes
fixes CNVS-11439

test plan:
  * enable Individual Gradebook View
  * open a course's gradebook
  * switch to individual view
  * select the learning mastery tab
  * select a student
  * select an outcome
  * verify that displayed outcome results are accessible

Change-Id: I89bbcb81fe3049acf2595737ee921d5a0b91c90b
Reviewed-on: https://gerrit.instructure.com/33967
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Trevor deHaan <tdehaan@instructure.com>
Reviewed-by: Mike Nomitch <mnomitch@instructure.com>
Reviewed-by: Cameron Sutter <csutter@instructure.com>
Reviewed-by: Liz Abinante <labinante@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
2014-05-09 19:31:46 +00:00
Jason Madsen 306f1583d8 add ember-qunit for ember unit tests
closes CNVS-11294

test plan:
  - enable ember quizzes
  - ensure that existing ember quizzes continue to work
  - all existing ember tests should continue to pass

Change-Id: I4f56b1267504533be8332520ea5f77d2fa566263
Reviewed-on: https://gerrit.instructure.com/33105
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Jason Madsen <jmadsen@instructure.com>
2014-04-16 18:49:45 +00:00
Braden Anderson 7bad57f1a5 calendar: upgrade color-slicer
fixes CNVS-12227

test plan:
  * create at least 20 courses
  * enable and open calendar 2
  * verify that all neighboring courses have visually
      distinctive colors

Change-Id: I2d3f9fb0e669cbc4fcda55a432cba07c18dbdfb5
Reviewed-on: https://gerrit.instructure.com/32931
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joel Hough <joel@instructure.com>
QA-Review: Trevor deHaan <tdehaan@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
2014-04-09 23:21:11 +00:00
Stanley Stuart 460742dc20 upgrade ember to 1.4.0
Change-Id: Ib1a4175ab7284a7598acb9d8b973876364cad7b6
Reviewed-on: https://gerrit.instructure.com/30364
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Stanley Stuart <stanley@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
QA-Review: Stanley Stuart <stanley@instructure.com>
2014-03-10 22:16:57 +00:00
Jason Madsen fc78d7a0b1 add js kaltura uploader
closes CNVS-6506

test plan:
  - enable kaltura plugin as site admin
  - enable js_kaltura_uploader on Account.default.settings
  - go to assignment that has kaltura record / upload enabled as student
  - upload a file via the RCE
    - experience should mimic existing flash uploader
    - verify that audio and video recording continue working as before
  - disable js_kaltura_uploader on Account.default.settings
  - as student attempt to upload to assignment
    - verify that it continues to work as before

Change-Id: I1f4ba5ac5df5e023f74046f33d7c623cac924ee3
Reviewed-on: https://gerrit.instructure.com/30340
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Product-Review: Jason Madsen <jmadsen@instructure.com>
2014-03-05 22:48:54 +00:00
Stanley Stuart 388bd9c403 update ember-data to 1.0.0-beta.7
Change-Id: I5660379f9fe967403824ed1065b0bdd727b03fb3
Reviewed-on: https://gerrit.instructure.com/30366
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Stanley Stuart <stanley@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
QA-Review: Stanley Stuart <stanley@instructure.com>
2014-02-20 16:39:00 +00:00
Stanley Stuart 2302c11608 quiz show page + quizzes w/ ember-data
Test Plan:
  - Make sure the quizzes index page still looks consistent.
  - Show page should follow mockups, but will be missing components that
    we'll add in later.

Change-Id: Ifc99f8c33288bd2cb2b7aef5c700568b2735ff9b
Reviewed-on: https://gerrit.instructure.com/29037
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jason Madsen <jmadsen@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
QA-Review: Stanley Stuart <stanley@instructure.com>
2014-02-19 22:33:33 +00:00
Stanley Stuart 6552f46220 bump handlebars to 1.3.0
Change-Id: I6ee77408505bd46e8adfecbd4ab23fc00048247b
Reviewed-on: https://gerrit.instructure.com/29857
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
Product-Review: Ryan Florence <ryanf@instructure.com>
QA-Review: Ryan Florence <ryanf@instructure.com>
Tested-by: Ryan Florence <ryanf@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
QA-Review: Stanley Stuart <stanley@instructure.com>
2014-02-11 22:16:25 +00:00
Stanley Stuart a7005399ef update to ember 1.3.2
Change-Id: Icb34922fe304b3f86571d6fd3528b0233883dbfe
Reviewed-on: https://gerrit.instructure.com/29853
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Stanley Stuart <stanley@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
QA-Review: Stanley Stuart <stanley@instructure.com>
2014-02-08 22:08:11 +00:00
Stanley Stuart 76ec23ecbd update to ember 1.3.1
Change-Id: Ia8ef4f9351bab01edb3fe989e628cfcb9412e227
Reviewed-on: https://gerrit.instructure.com/28542
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Stanley Stuart <stanley@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
2014-01-14 21:57:37 +00:00
Braden Anderson d55cfcb536 calendar: upgrade color-slicer
fixes CNVS-10351

test plan:
  * open calendar2
  * verify that calendar colors look more distinct than in
      http://screencast.com/t/PpKgnpPZ

Change-Id: I488acb1e16af4e51728aa11c3dd667025b11fbc4
Reviewed-on: https://gerrit.instructure.com/28261
Reviewed-by: Braden Anderson <banderson@instructure.com>
QA-Review: Braden Anderson <banderson@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
2014-01-10 21:50:46 +00:00
Stanley Stuart c639b1bea5 update to ember 1.3
Change-Id: I65b5520db5bd16bf7149e914b2119c11e283dfc1
Reviewed-on: https://gerrit.instructure.com/28159
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Stanley Stuart <stanley@instructure.com>
QA-Review: Stanley Stuart <stanley@instructure.com>
2014-01-10 20:30:17 +00:00
Braden Anderson be3c41ec1a calendar: move colorSlicer to bower
fixes CNVS-10151

test plan:
  * open calendar 2
  * verify that calendar colors work as before

Change-Id: I71b7bddec9f66f3c4a0e2c736b232dec0af3200f
Reviewed-on: https://gerrit.instructure.com/27907
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
Product-Review: Braden Anderson <banderson@instructure.com>
2013-12-31 22:40:29 +00:00
Ryan Florence 779c4d38d4 removed vestigial vendor javascript
- not using ember model or ember data
- all that other stuff is installed with bower

Change-Id: Id8190bf413f07a11aa0b5a1bf1fa194c65969eef
Reviewed-on: https://gerrit.instructure.com/27763
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Ryan Florence <ryanf@instructure.com>
Product-Review: Ryan Florence <ryanf@instructure.com>
2013-12-20 23:37:43 +00:00