Wykres commitów

25 Commity (a6f551494160fd2ad4f0869f86e6c3cad064ed71)

Autor SHA1 Wiadomość Data
Tim Heap 1f2b8ccaf1 Filter pop-out explorer pages using 'construct_explorer_page_queryset'
The pages listed when browsing the /admin/pages/ explorer differed from
the pages listed in the new React/admin API powered pop-out explorer.
The latter did not pass the queryset through the
'construct_explorer_page_queryset' hook, so pages that should have been
hidden were visible. Visiting these pages in the explorer could then
lead to unexpected behaviours, as hidden sections of the site became
browsable.

A new `for_explorer=1` query parameter has been added to the admin API,
which will pass the page queryset through the
'construct_explorer_page_queryset' hooks.
2017-10-31 15:55:01 +00:00
Thibaud Colas eea0664116 Change Sass linting configuration to take advantage of stylelint capabilities 2017-08-26 16:39:45 +03:00
Anselm Bradford a900965fba Fixes #3516 - replaces scss-lint with stylelint 2017-08-26 16:39:45 +03:00
Emily Horsman ac632b3b8f Fix explorer item link behaviour (#3763)
Adds a href prop to the right arrow Button in ExplorerItem. Opening this
link manually (such as Open Link in New Tab) will now take the user to
the deeper page list. Before this commit this button erroneously had no
href and thus would only take them to the current page.
2017-08-16 00:35:32 +03:00
Thibaud Colas a707b8fead Fix linting in client subfolder 2017-08-11 16:26:11 +01:00
Janneke Janssen 64e9baf0c0 Eslint fix within the ExplorerHeader tests 2017-08-03 12:05:52 +01:00
Janneke Janssen 36d3f5dfec Update the React Explorer to use the admin_display_title instead of the regular page title 2017-08-03 12:05:52 +01:00
Janneke Janssen a77ad34df3 Remove irrelevant tests from the PageCount since it does not have a title dependency when displaying 2017-08-03 12:05:52 +01:00
Thibaud Colas 12048d923b Fix mobile explorer scrolling issue (#3645)
* Fix last bug in explorer scrolling behavior on mobile

* Refactor explorer CSS one last time

* Fix JS linting warnings
2017-06-11 23:31:52 +03:00
Thibaud Colas 6cfd139cc2 Inline util from redux-actions to reduce bundle size 2017-06-09 16:43:50 +03:00
Thibaud Colas b4f8e09e43 Replace babel-polyfill with more lightweight polyfills 2017-06-09 16:42:48 +03:00
Thibaud Colas 8a0238768d Move polyfills definition outside of Webpack config 2017-06-09 16:42:48 +03:00
Thibaud Colas 61b6de2e4e Tidy up new React + API explorer for mobile (fixes #3607) (#3635)
* Remove useless CSS declaration

* Remove commented out styles

* Merge duplicate declarations

* Remove even more commented out code

* Move footer mq to footer declaration

* Remove more useless code

* Stop vendor prefixing for IE below 11

* Remove useless vendor prefixing

* Merge identical declarations

* Fix 1px overflow in content wrapper

* Fix explorer scrolling when open on mobile

* Remove unused import

* Add Redux performance measurements to explorer menu

* Rewrite explorer reducer to avoid unnecessary operations

* Stop changing reducer state on every action regardless of type

* Remove redundant children.isFetching property in nodes reducer

* Remove redundant children.isLoaded property in nodes reducer

* Remove redundant children.isError property in nodes reducer

* Refactor nodes explorer reducer with sub-reducer

* Fix linting issue

* Remove unused class name

* Change default icon className from empty string to null

* Remove old TODO comment

* Hoist icons in ExplorerItem component for better performance

* Add comment

* Add tooling for performance measurement of React components

* Clean up explorer panel component definition

* Make performance measurements opt-in

* Improve alignment of page explorer menu on mobile

* Close explorer on touchend rather than touchstart

* Comment out performance measurement code

* Remove fade transition completely
2017-06-09 00:08:04 +03:00
Janneke Janssen f4f0e78f6a Update React & Jest (#3611)
* Update to the latest jest version

* Update react dependencies

* Migrate React.PropTypes to PropTypes package

* Add prop-types to the package.json

* Update transition-group import to its new package

* Update jest snapshots

* Exclude node_modules from webpack babel-loader
2017-05-28 21:49:05 +03:00
Thibaud Colas bfbc23e33a Move all explorer-related styles to the same file 2017-05-17 13:14:52 +01:00
Janneke Janssen 2ff4a5aad1 Update explorer for latest scope, UI, with tests 2017-05-13 23:53:10 +03:00
Thibaud Colas f250a233b5 Clean up React code and tooling 2017-05-13 23:53:10 +03:00
Harris L 3f85c5fed5 Make explorer tab-navigable
* use focus-trap-react
* switch clickable span to button
* let focus trap handle outside click
2017-05-13 23:53:10 +03:00
Sævar Öfjörð Magnússon 81c6f3e3b1 Change explorer behavior for pages w/ children, with tests 2017-05-13 23:53:10 +03:00
Janneke Janssen 26695a09c8 Renamed 'explorer' to 'pages' 2017-05-13 23:53:10 +03:00
Eirikur Ingi Magnusson 301d128ea6 Fix explorer scrolling and closing behavior 2017-05-13 23:53:10 +03:00
Thibaud Colas 8bf2c9bf2e Refactor explorer code with tests using Jest 2017-05-13 23:53:10 +03:00
Maurice Bartnig 743a8304a6 Add support for i18n of the explorer 2017-05-13 23:53:10 +03:00
Josh Barr d675807cf8 First version of the explorer on top of admin API 2017-05-13 23:53:10 +03:00
Josh Barr 14f02a0b50 Tooling for modern front-end components: React JS, ES6, and BEM CSS
Thanks to @justinvdm for the help

Merges: #2275
2016-02-25 13:32:48 +00:00