Commit Graph

60 Commits

Author SHA1 Message Date
gconsidine
4cd9556f7b Revert versions of D3 used by awx and ansible/nvd3 2017-11-14 09:47:25 -05:00
Greg Considine
565d116955 Merge pull request #505 from gconsidine/ui/fix/multiple-dependency-include
Update dependencies that share Angular as a dependency
2017-10-25 16:07:29 -04:00
Jake McDermott
1fe9f43690 Merge pull request #502 from jakemcdermott/update_test_config
test config cleanup and tooling updates
2017-10-25 15:39:55 -04:00
gconsidine
4a522fd10f Update dependencies that share Angular as a dependency 2017-10-25 14:48:18 -04:00
Jake McDermott
3800a16f3e refactor e2e settings and config modules
This should make the settings and configuration logic less implicit and
a little easier to follow. Some familiarity with the configuration behavior
of nightwatch is still necessary in places - specifically, one should know
that all test_settings defined for non-default environments are treated as
overrides to the values defined for the default environment.
2017-10-25 10:58:39 -04:00
Marliana Lara
9157f53d43 Update angular-scheduler and angular-tz-extensions versions 2017-10-23 12:29:28 -04:00
Marliana Lara
cee81e9df6 Fix any unhandled rejections 2017-10-23 12:29:25 -04:00
Ben Thomasson
fabdab78ef Upgrade AngularJS to 1.6.6 2017-10-23 12:29:10 -04:00
Jared Tabor
07139820cb updating angular-ui-router to v. 1.0.7 2017-10-18 16:34:38 -07:00
gconsidine
82f81752e4 De-lint test files and update test,build config 2017-10-10 16:59:42 -04:00
Marliana Lara
e19b4e0c8c Fix karma config and remove karma-ng-html2js-preprocessor 2017-10-02 15:10:36 -04:00
Marliana Lara
2f8155763b Add Side Nav Item unit tests
Signed-off-by: Marliana Lara <mlara@redhat.com>
2017-10-02 13:36:06 -04:00
Marliana Lara
7486503a16 Add Layout directive unit tests 2017-10-02 13:35:31 -04:00
Jake McDermott
f3a8d612f3 Merge pull request #257 from mabashian/auditor-read-only-e2e
Added e2e tests for auditor read-only forms
2017-09-26 23:44:09 -04:00
Jake McDermott
069ca1c755 add utils for bootstrapping test fixtures 2017-09-26 21:54:29 -04:00
gconsidine
34ca4e5623 Make asset hashes unique per file instead of per build 2017-09-22 10:51:39 -04:00
gconsidine
159fdfe7ad Fix how global dependencies are loaded in the UI
The UI has a handful of dependencies attached to window (angular,
jquery, lodash, etc). In the case of schedules, jquery was included
and extended as expected, but then clobbered by another module. This
prevented the Select2 dependency from working as expected.

Rather than relying on webpack to export particular dependencies as
global, that work is done in the vendor entry point now instead.
2017-09-21 15:52:19 -04:00
gconsidine
0b50794614 Update out of date karma and test dependencies 2017-09-19 14:53:23 -04:00
gconsidine
fad12e3a13 Update e2e tests after rebasing 2017-09-19 14:53:23 -04:00
gconsidine
777ef3fe90 Add more linter rules and de-lint 2017-09-19 14:53:23 -04:00
gconsidine
cec9507504 Use eslint on ui/lib and ui/features code 2017-09-19 14:53:23 -04:00
Jake McDermott
2a9c97f96d remove unused config 2017-09-15 17:22:23 -04:00
Jake McDermott
19f96b1f6f add e2e tests 2017-09-15 17:21:55 -04:00
Jake McDermott
05b4b875e2 move unit tests 2017-09-15 17:21:43 -04:00
gconsidine
fba8a48d91 Update dependencies, template file, and docs
* Use git+https prefix in git-based npm dependencies
* Use ejs template for index to fix extraneous slash in path
* Remove outdated documentation
* Remove unused service
* Regenerate shrinkwrap
2017-09-08 15:17:01 -04:00
gconsidine
c57c17546e Update UI build system
* Faster build times
* Smaller bundle sizes
* Adjust paths
* Cleanup npm dependencies
* Remove unneded Grunt tasks
2017-09-07 18:09:14 -04:00
gconsidine
86fb6116a0 Refactor all Less to manage import order itself 2017-07-25 09:39:05 -04:00
gconsidine
594c4d6ce2 Add support for configurably including strings
* Add json-loader to load JSON files via webpack
* Add a JSON file for string overrides
* Add a getter method to BaseString for an easier and more clearly
defined approach to accessing string values
2017-07-12 15:40:14 -04:00
gconsidine
06deb0d7a7 Add base states for credentials 2017-06-12 09:53:11 -04:00
gconsidine
272e43a345 Fix Angular dependency mismatches in package.json 2017-06-12 09:53:11 -04:00
gconsidine
9d51576e89 Adjust theme, add testing 2017-06-12 09:53:11 -04:00
gconsidine
9a669d7350 Align moment and lodash deps with what's in dependent packages 2017-06-06 11:00:51 -04:00
gconsidine
437121f9cc Update dependencies to be able to regen npm-shrinkwrap 2017-06-06 10:08:24 -04:00
Greg Considine
f5eabe6b16 Add baseline .eslint files 2017-03-28 10:04:44 -04:00
Michael Abashian
4d9bcbfaea nvd3 1.7.1 needs version 3.3.13 of d3.js in order for the tooltip guideline to work 2017-02-15 10:35:58 -05:00
Chris Meyers
195a36aef9 embed json into js module 2017-02-02 18:00:41 -05:00
Chris Meyers
76e5cc1fb1 update ui packaging 2017-02-02 14:06:08 -05:00
Chris Meyers
f62b6ca014 workflow job elapsed timer
* Now with tests for elapsed timer feature.
2017-02-01 16:19:44 -05:00
Shane McDonald
35deb0be37 Simplify UI / Docker targets
- Renamed npm scripts to reflect what they are actually doing. Nothing is being built here!
- Not sure why the default django_host was 0.0.0.0…
- Removed unnecessary logic from build-docker-cid
2017-01-25 18:45:48 -05:00
Shane McDonald
7776dc1304 Remove SauceLabs stuff from package.json 2017-01-25 18:45:48 -05:00
Leigh Johnson
0803605ad7 @noissue - BrowserSync ssl/tls (#4407) 2016-12-13 11:50:13 -05:00
Leigh Johnson
aacae7b844 ui build system documents (#4353)
* add ui build system documentation, pin nodejs + npm engines to versions vetted for Tower

* Update ui_build_system.md

* Update ui_build_system.md
2016-12-09 12:33:01 -05:00
Graham Mainwaring
5d5fe88a47 Move npm dependencies to Ansible github org 2016-12-06 10:14:08 -05:00
John Mitchell
f3526ca86c add angular duration format filter lib 2016-11-18 11:00:13 -08:00
Takao Fujiwara
aebff5366e Update I18N patch under awx/ui to reflect pull request #3363
- Get rid of html tags and codes in translatable strings
- Replace i18n.format with i18n.sprintf to treat multiple %s
- Add translatable strings for login failures and "SIGN IN".
- Rename ansible-tower.pot to ansible-tower-ui.pot for backend pot

Signed-off-by: Takao Fujiwara <tfujiwar@redhat.com>
2016-11-17 17:49:39 +09:00
Leigh Johnson
0d3eb67bd0 Fixes namespace collision & allows command-line options to be passed to UI build system (#3876)
* Fixes BrowserSync window.name namespace collision #3872

* Allow command-line arguments to be passed to development UI builds.
Add support for --ng-debug and --router-debug flags to turn on Angular's
$log service and ui-router's trace utility.
Cleans up development debug settings & defunct websocket configuration.

Resolves lingering issues raised by trying read asynchronously-loaded config file during AngularJS config phase. #3872

* shrinkwrap updated minimist

* update CONTRIBUTING.md to include UI build options

* feedback/review
2016-11-09 12:49:18 -05:00
Leigh Johnson
38e40c7eba Hook up npm script target for jshint (#3916)
* Hook up npm script target for jshint

* Shrinkwrap ui dependencies
2016-11-09 09:53:58 -05:00
Leigh Johnson
4df56edb9f Move browser-sync & file-polling deps to optionalDependencies field, update npm engine field, shrinkwrap new dependency tree. 2016-10-31 13:01:14 -04:00
Leigh Johnson
a49095bdbc Boolean / Smart Search (#3631)
* Part 1: building new search components

Directives: smart-search, column-sort, paginate
Service: QuerySet
Model: DjangoSearchModel

* Part 2: Implementing new search components, de-implementing old search
components

Remove old code:
	* tagSearch directive
	* old pagination strategy
	* old column sorting strategy
	* lookup

Add new directives to list/form generator:
	* smart-search,
	* paginate
	* column-sort

Connect $state + dataset resolution
	* upgrade ui-router lib to v1.0.0-beta3
	* Custom $urlMatcherFactory.type - queryset
	* Render lists, forms, related, lookups in named views
	* Provide html templates in list/form/lookup/related state definitions
	* Provide dataset through resolve block in state definitions

Update utilities
	* isEmpty filter
	* use async validation strategy in awlookup directive

* Part 3: State implementations (might split into per-module commits)

* Support optional state definition flag: squashSearchUrl. *_search params are only URI-encoded if squashSearchUrl is falsey.

* * Fix list badge counts
* Clear search input after search term(s) applied
* Chain of multiple search terms in one submission

* Hook up activity stream

* Hook up portal mode

* Fix pagination range calculations

* Hook up organization sub-list views

* Hook up listDefinition.search defaults

* Fix ng-disabled conditions reflecting RBAC access on form fields

* Fix actively-editing indicator in generated lists

* form generator - fix undefined span, remove dead event listeners

* wrap hosts/groups lists in a panel, fix groups list error

* Smart search directive: clear all search tags

* Search tags - ‘Clear All’ text - 12px
Search key - remove top padding/margin
Search key - reverse bolding of relationship fields / label, add commas
Search tags - remove padding-bottom
Lookup modal - “X” close button styled incorrectly
Lookup modal - List title not rendered
Lookup modal - 20px margin between buttons

* Portal Mode
Fix default column-sort on jobs list
Hide column-oort on job status column
Apply custom search bar sizes

* stateDefinition.factory

Return ES6 Promise instead of $q promise.
$q cannot be safely provided during module.config() phase
Some generated state trees (inventory / inventoryManage) need to be
reduced to one promise. Side-step issues caused by ui-router de-registering ALL registered states that match placeholder state name/url pattern.

e.g. inventories.lazyLoad() would de-register inventoryManage states if
a page refresh occured @ /#/inventories/**

* Combine generated state trees: inventories + inventoryManage
Hook up inventory sync schedule list/form add /form edit views

* Hook up system job schedule list/add/edit states

* Fix breadcrumb of generated states in /setup view
Fix typo in scheduler search prefix

* Remove old search system deritus from list definitions

* Fix breadcrumb definitions in states registered in app.js config block

* Transclude list action buttons in generated form lists

* Lookup Modal passes acceptance criterea:
Modal cancel/exit - don’t update form field’s ng-model
Modal save - do update form field's ng-model
Transclude generated list contents into <lookup-modal> directive
Lookup modal test spec

* Fix typo in merge conflict resolution

* Disable failing unit tests pending revision

* Integrate smart-search architechture into add-permissions modal

* use a semicolon delimiter instead of comma to avoid collision with django __in comparator

* Hook up Dashboard > Hosts states, update Dashboard Inventory/Project counts with new search filters

* Misc bug splat

Add 20px spacing around root ui-view
Fix missing closing div in related views
Remove dupe line in smart-search controller

* Remove defunct LookupHelper code

* Rebuild inventories list status tooltips on updates to dataset

Code cleanup - remove defunct modules
Remove LookupHelper / LookupInit code
Remove pre-RBAC permissions module

* Add mising stateTree / basePath properties to form definitions

* Resolve i18n conflicts in list and form generator
Freeze dependencies

* Integrate sockets

* Final bug splat:
fix jobs > job details and jobs > scheduled routing
fix mis-resolved merge conflicts
swap console.info for $log.debug
2016-10-28 14:28:06 -04:00
Leigh Johnson
2c8d295132 UI Build System - new interface
Use `make ui-devel` to build a development/debug version of the  UI, with source maps,
without raising any additional browser-sync or filesystem polling.
2016-10-26 16:53:36 -04:00