Commit Graph
100 Commits
Author SHA1 Message Date
Jared Tabor 36e5300be6 Adds npm-shrinkwrap and locks down ui-router version 2018-07-24 21:05:44 -07:00
Jared Tabor 1daba7ffb3 Switching to $http service instead of Rest service.
Because the Rest.setUrl function adds a trailing slash to the URL,
which is unnecessary for a partial.
2018-07-23 13:55:06 -07:00
Jared Tabor 7b7c211471 Bumps version of angular-scheduler
After fix for DTSTART parsing
2018-07-18 16:17:07 -07:00
Jared Tabor 429cf40db3 Adjusts which partical/controller combination is used when editing a schedule
MGMT jobs require a different partial + controller
2018-07-16 18:02:11 -07:00
Jared Tabor 0d089b8cbf Subscribes the Sources list to both the inventory group for pending deletes
It was subscribed to the jobs group, for source sync updates, but now it
is subscribed to that group and the inventory group for pending deletes.
2018-07-13 16:17:55 -07:00
Jared Tabor 7dbdff2aa7 Adds error catch block to credentials resolve
Catches the case where a user doesn't have permission to a credential
2018-07-13 13:54:00 -07:00
Jared Tabor 02f6fa9b0a Prevents the user from adding a token for a user other than themselves
It's possible to maninpulate the URL to get to the add-token screen
for a different user, which gives the user the idea that they could
possibly add a token for that user, which is not allowed.
2018-07-11 17:32:56 -07:00
Jared Tabor 1b67755358 Cleanup to users' state tree
In order to add additional route flexibility for the users-tokens states

Removes unnecessary ui-view from form-generator

Adjust nested ui-view target

found during PR feedback
2018-07-11 16:45:20 -07:00
Jared Tabor a30e2f93a6 Adds org column to the application lookup modal, while on tokens form 2018-07-11 16:32:33 -07:00
Jared Tabor 7bf1569417 Corrects label on schedule form 2018-07-06 10:46:24 -07:00
Jared Tabor a4e9f18d2b Fixes Discard Changes & Save buttons in Settings page 2018-07-03 15:25:00 -07:00
Jared Tabor 580736e80d Prefers arrow function over unnamed function 2018-07-03 13:08:57 -07:00
Jared Tabor 92cf8d538a Changes UI dev server to operate over https 2018-07-02 22:09:24 -07:00
Jared Tabor aa76f6ca39 Adjustments to Socket Service for session-limit PR 2018-06-27 10:45:23 -07:00
Jared Tabor 5702c8249e Fixes the standalone schedules list styling
The list was not wrapped in a panel and the form was not showing
above the list view like our other CRUD views.
2018-06-26 14:19:12 -07:00
Jared Tabor d468f829dd Shows the Cancel button on the jobs list for a running system job 2018-06-22 17:56:26 -07:00
Jared Tabor 041256a6e0 Removing return statement
The SocketService.addStateResolve returns the resolve so you don't
have to.
2018-06-22 14:47:52 -07:00
Jared Tabor c0f3b0268e Update jobs list if navigating from the output page. 2018-06-22 13:42:00 -07:00
Jared Tabor aac939d9e4 Improves UX for readonly codemirrors so that users can copy/paste 2018-06-21 12:30:53 -07:00
Jared Tabor ccb7758b37 Changes the ngShow for the Network Visualizer and Remediate Inventory buttons
to only show them on the Details tab (or in the case of Remediate inventory,
only show it on the Details or Hosts tab).
2018-06-20 15:27:40 -07:00
Jared Tabor f3fa3afe93 Changes title on the Network UI to "Network Visualizer | <name of inv>" 2018-06-20 11:48:42 -07:00
Jared Tabor 2566a5f14f Adds a button to the inventory form that links the user directly to hte
Network UI
2018-06-19 14:55:51 -07:00
Jared Tabor c02c92890c Enables smart inventories to be shown on the network UI 2018-06-19 14:55:51 -07:00
Jared Tabor afb214b8d4 Hides the "Inventory" title on the inventory toolbox when toggling 2018-06-19 14:55:51 -07:00
Jared Tabor 0bc3332f68 Changes console.logs to $log.debug for network UI 2018-06-19 14:55:51 -07:00
Jared Tabor 5bf0724bd0 Changes "Cancel" button to read "Close" 2018-06-19 14:55:51 -07:00
Jared Tabor 1a8b5426f8 UI i18n Audit: Translates strings throughout the UI
Translations for dashboard lists -> tooltips

Changing "Portal Mode" to "My View," in part due to translations.

Adding "Job Template" to strings to be translated from OPTIONS on API

Marking translations for JT that has a project that needs to be re-synced.

Marking translations for survey maker

Marking translations for lookup modal directive

Marking translations for empty, "Go To Notifications To Add Template"

Adds strings service for scheduler, and marking strings for translation

Translations for teams linkout from orgs, as well as cred types

Translations for instance groups

Marks translations for the Network UI

Translates strings on the workflow editor

Translations for workflow results

Translations for host event modal and some missing translations on

the stdout page.
2018-06-13 12:49:22 -04:00
Jared Tabor 4fa1518bcc Sets default zoom to 100% on network UI
instead of 120%
2018-06-06 18:24:24 -07:00
Jared Tabor 782b9b8bec Fixes URL used for root groups for pagination purposes.
Changes from 'inventories/:inventory_id/root_groups' to
'inventories/:inventory_id/groups'. Includes changing the function
name for root groups based on PR feedback.
2018-05-31 13:06:15 -07:00
Jared Tabor 01611540f0 Marking a Configure Tower string for translation
Once this gets added to the UI's es.po file, this should show up translated,
along with it's tooltip.
2018-05-31 09:36:23 -07:00
Jared Tabor 70897d3503 Prevents Network UI from scrolling and showing Tower
I also fixed an issue where the mouse-wheel events were not zooming
the network UI in firefox.
2018-05-30 14:19:07 -07:00
Jared Tabor 3d8d27064f Makes rows inactive on permissions list if assigning user doesn't have
permission to edit the target user
2018-05-25 00:18:50 -07:00
Jared Tabor b37926792f Fixes organizations collections watcher
it was watching 'organization' instead of 'organizations'
2018-05-22 17:11:04 -07:00
Jared Tabor 16b00e4867 Validates extra vars before moving to next step in prompt workflow 2018-05-22 15:35:21 -07:00
Jared Tabor 7610c660cb Fixes the CTiT save errors. I added a toast message for successful saves too. 2018-05-18 16:30:44 -07:00
Jared Tabor 85caf6253c Fixes a portal mode breadcrumb and capitalizes the instance groups breadcrumb 2018-05-17 11:36:51 -07:00
Jared Tabor 3658ce1a93 Uses atCodeMirror directive for extra vars widget on workflow results page 2018-05-15 18:09:07 -07:00
Jared Tabor 1e6905aac4 Fixes to the scheduler form 2018-05-15 15:31:21 -07:00
Jared Tabor f3923af3fa Makes extra variables CodeMirror shown only for JT-schedules that
have promptable extra vars in the JT. Hides vars for all other schedule types
2018-05-15 11:38:25 -07:00
Jared Tabor 5006b84eee adds parentResolve for new route 2018-05-14 18:34:07 -07:00
Jared Tabor 8f3cc4ec3e Addes a /#/jobs/schedules/:schedule_id/ route to the app
To leave user in the context of jobs/schedules when editing
a schedule instead of putting them in the context of the resource
they're scheduling
2018-05-14 17:54:30 -07:00
Jared Tabor e04b2b7455 Fixes breadcrumbs for all the schedule states 2018-05-14 17:17:24 -07:00
Jared Tabor 77e195bbb9 Moves schedules tab to related tab for sources form 2018-05-11 16:42:49 -07:00
Jared Tabor ce09ab446d Moves scheduler to related tab for projects
Signed-off-by: Jared Tabor <jtabor@redhat.com>
2018-05-11 16:37:24 -07:00
Jared Tabor 13d58107b8 Moves scheduler to related tab for workflows
and updates all links to point to updated state
2018-05-11 16:37:24 -07:00
Jared Tabor 464b7c3775 Moves schedules to related tab for job templates 2018-05-11 16:37:24 -07:00
Jared Tabor 576a4a1b58 removes extra slash 2018-05-10 13:04:26 -07:00
Jared Tabor 4caa145161 Removes prompt modal after clicking the action button on the copy prompt 2018-05-10 11:06:56 -07:00
Jared Tabor 0c45d917d1 adds comment for setUntil function 2018-05-10 09:34:39 -07:00
Jared Tabor 04b8349895 fixes issues with select dropdowns
and adds a search box for the timezone select dropdown
2018-05-09 16:15:02 -07:00
Jared Tabor 507db4e3b6 sets the UNTIL time to use the "until" that is explicitly state on the
schedules endpoint GET response
2018-05-09 14:39:26 -07:00
Jared Tabor 876431c529 Removes the 'Z' from the UNTIL before sending the rrule to the API 2018-05-07 14:42:59 -07:00
Jared Tabor 33d4c97156 Sets the timezone to the api/v2/schedule/:id -> data.timezone
and moving the data calls from the controller to the route resolve
2018-05-07 14:42:59 -07:00
Jared Tabor 7a3fb02791 Aligns text for canceling/deleting a job on the jobs list & the stdout page 2018-05-02 10:44:04 -07:00
Jared Tabor cf0efe969e Changes "Cancel" to "OK" on cancel-job-prompt modal 2018-05-01 16:20:44 -07:00
Jared Tabor 63542c3b43 Don't render tooltips that shouldn't exist 2018-05-01 16:05:22 -07:00
Jared Tabor a840ec4089 Fixes jobs' page activity stream link, and remove AS button on job results page 2018-05-01 15:36:47 -07:00
Jared Tabor a79632968c Fixes job template schedule link from Activity Stream 2018-05-01 15:19:44 -07:00
Jared Tabor 079d8e2565 fixes issue with ui-view for network UI
and closes network UI socket connections after closing the network UI
2018-05-01 13:43:33 -07:00
Jared Tabor 421293c8c5 fixes error handling with groups service, sources service 2018-04-30 15:11:34 -07:00
Jared Tabor f5c4f9a9df Adds liveUpdates flag for the UI back in
This line was lost in the 3.2.4 merge
2018-04-27 11:15:20 -07:00
Jared Tabor 5f38b4fde4 removes code/references related to cleanup_facts mgmt jobs, and their schedules 2018-04-26 09:35:34 -07:00
Jared Tabor b154949639 Removes dupclicate Angular import, and removes tower.app.js module from network UI 2018-04-26 09:22:25 -07:00
Jared Tabor 6f1774f1b1 Adds NgNonBindable directive to stdout lines
in order to prevent stdout code from running angular snippets
2018-04-23 19:51:14 -07:00
Jared Tabor 99fb8e6d83 Updates URL for host events for adhoc commands 2018-04-23 19:15:12 -07:00
Jared Tabor 298af25bab Points the host event modal's Standard Out tab at event_data.res.stdout
instead of `event_data.res.results.stdout`. Same for stderr. This was
some stale copy pasta from the host event modal rework
2018-04-23 18:13:26 -07:00
Jared Tabor 929129e8ad Makes CodeMirror Modal resizable 2018-04-23 18:05:47 -07:00
Jared Tabor 0b4d88a57d Adds ability for parent controller to call atCodeMirror's init() function.
This enables the parent controller to re-instantiate the CodeMirror instance
on the fly, when necessary. This was necessary on the NetworkUI to update the
CodeMirror instance on the Host Detail panel.
2018-04-23 17:35:17 -07:00
Jared Tabor 19ebaa6916 Adds atCdeMirror directive
This commit adds a new component to be used for showing CodeMirror
instances, along with an expandable capability to view more variables.
It also removes the previous directive for the Network UI that used
to include this functionality.
2018-04-23 17:35:16 -07:00
Jared Tabor 639da5de59 Changes https flag to false for UI dev env 2018-04-06 13:28:24 -07:00
Jared Tabor fe58b74d1e Adds the host event modal to the standard out feature
Removes old host modal code
2018-04-05 02:49:38 -04:00
Jared Tabor 0f5f2804a7 Reverts DeleteJob factory, fixes null provider to stdout pages
and removing unnecessary console.logs in app.js
2018-04-04 11:38:27 -07:00
Jared Tabor 9f07beed59 Increases the angular-tz-extension tag in package.json
The angular-tz-extensions was changed to accomodate for an issue with
UTC dates not getting parsed correctly.
2018-04-03 21:27:38 +00:00
Jared Tabor 92dc450940 Adds acceptance doc for networking UI
* Adds gerkin feature file for networking visualization
* Adds implementation details to networking.md
2018-03-29 16:53:57 -04:00
Jared Tabor df60876bf3 Adds a debug function to turn on $log.debug 2018-03-23 16:17:24 -07:00
Jared Tabor 883545d4cb Fixes some bugs from PR feedback
* Fixes bug where new devices on the canvas weren't added to the search dropdown
* Fixes bug with closing the details panel
* Changes the fill color to white for remote-selected devices
* Fixes read-only mode by swapping out move controller for move read-only
* Updates range on the zoom widget
2018-03-23 17:00:28 -04:00
Jared Tabor 82ec0d4d4b Disables actions according to RBAC privilege
* Removes the toolbox if user doesn't have permission to edit
* Fixes the extra click that was identified with the context menu
* Adds new readonly version of the move FSM
* Adds an enhancement to debug directive to align the text better
* Disables the toolbox FSM if user doesn't have permission to edit
2018-03-23 17:00:27 -04:00
Jared Tabor abb95fdad6 Cleans up the Network UI after PR feedback and UX feedback
-removes stale commented-out lines
-makes "unknown" type devices smaller on canvas
-moves "unknown" type device title underneath icon
-removes collapsed inventory toolbox
-changes "Delete" to "Remove"
-removes the "Close" button for "Cancel" on details panel
-changing Remove color to red
2018-03-23 17:00:27 -04:00
Jared Tabor 66c351c60c Cleans up network UI code for 3.3
This removes features that were not selected for 3.3.

* Removes breadcrumb
* Removes "Jump To" panel and some of the hotkey panel items
* Removes Buttons in favor of Action Dropdown
* Removes chevrons
* Removes ActionIcon model
* Removes the Rename button on the context menu
* Makes details panel readonly
* Adds expand modal for extra vars
* Adds inventory copy function back to inventory list
* Sets cursor to visible
* Adds hide_menus
* Adds fix for mice that return large mousewheel deltas
2018-03-23 17:00:25 -04:00
Jared Tabor 14ee6a8360 Adds editing to the host details form.
* Adds editing host vars, description, and name to the host details
form.
* Adds details panel FSM and updates to keybindings FSM
2018-03-23 17:00:22 -04:00
Jared Tabor 050f43e3bf Improves host details panel UI
* Hooks up the first two context menu buttons
* Makes the rename and details menu show up
    wherever the user's cursor's location
* Adds TopologyInventory and DeviceHost tables
* Adds design for host_id on the Device table
* Adds migrations for TopologyInventory
* Adds host_id to Device table
* Adds inventory_id and host_id tracking
* Auto-closes the right hand panel if focus is directed to the canvas.
* Retrieves the host details on inventory load.
* Adds back support for inventory and host_id tracking
* Adds host icon
* Changes rack icon to new icon
* Site icon replacement
* Fixes host icon "hitbox", and adding debug and construction
* Adds construction and debug lines for switch, router, rack, and site
* Adds some error handling for REST calls, as well as alert on
    host detail panel.
2018-03-23 17:00:20 -04:00
Jared Tabor a1f639bc8f Adds host detail panel UI and improves toolbox UI
* Changes Layers' panel's default setting to not expanded
* Adds OffScreen2 state to handle the case where a toolbox is both offscreen and disabled
* Adds a collapsed view of the toolbox, as well as a model for ActionIcons
    which is a model whose purpose is to connect the button FSM with the
    chevron icons that are used on the toolbox.
* Adds action-icon directive
* Enables/disables the icons if they're not shown
* Fixes initial state of the toolboxes
* Creates context menu and context menu buttons in the network UI
* Adds extra vars to details panel on left hand side
2018-03-23 17:00:19 -04:00
Jared Tabor 2a8ced5a5d Adds network UI shell wrapper
* Adds networking icons, state, and shell
* Adds network UI to the network UI shell.
* Removes jquery as a dependency of network-ui
* Fills the entire viewport with the network canvas and
    makes header panel and the right panel overlay on
    top of it
2018-03-23 17:00:18 -04:00
Jared Tabor 8643972064 Fixes issue with sockets and XHR requests for backgrounded tabs
adjusts toggling based on API setting and doesn't toggle for job stdout page
2018-03-23 12:40:34 -07:00
Jared Tabor 86eb0353c5 fixing url used for determining which notification to toggle on/off
for #711
2017-12-12 11:07:21 -08:00
Jared Tabor a3144ee234 Update error handling on host service after angular upgrade 2017-12-04 13:52:34 -08:00
Jared Tabor 32cb18fc85 removing codemirror instantiation from $transition event 2017-11-14 10:24:36 -08:00
Jared Tabor e70d377a53 feedback from PR: launch both DELETE calls at the same time
for both groups and hosts.
2017-11-03 16:26:00 -07:00
Jared Tabor f65ef9f75c prolong removing the delete modal until after the list refreshes, post-delete 2017-11-03 15:25:39 -07:00
Jared Tabor 9d39ac83f9 When deleting a source, delete the source's groups too 2017-11-02 15:59:09 -07:00
Jared Tabor aef224732c changing angular-tz to point to a branch with a patch for UTC timezones
and also patching angular-scheduler to point to angular 1.4.14
and also patching angular-codemirror to point to angular 1.4.14,
and adding fsevents:"*" to the package.json, and regenerating
npm-shrinkwrap.json for the new dependencies and their branches.
2017-10-30 14:20:24 -07:00
Jared Tabor 4fbfddaa93 changes from PR feedback: removing ghost action icon
and fixing a bug where the list of job templates was improperly
updated when a job was running and live events were received.
2017-10-26 16:50:12 -07:00
Jared Tabor 5e349590fd making JOB TEMPLATES tab the last tab on the projects form 2017-10-25 11:21:36 -07:00
Jared Tabor 625c0ad578 Adding Project Based Navigation of Job Templates
This adds a Job Templates tab onto the Project form that gives
the user the ability to see all the job templates using a project.
Clicking the add button on this list will take the user to the job
template form with the project field auto-filled with the project.
2017-10-25 11:21:36 -07:00
Jared Tabor 275e02a8cf fixing issue with scrolling due to UI-router upgrade 2017-10-18 20:16:05 -07:00
Jared Tabor 887a09d052 fixing issue from UI-router upgrade where document title wouldn't update
with the name of the state.
2017-10-18 16:34:39 -07:00
Jared Tabor 02af117f51 adjusting unit tests to pass 2017-10-18 16:34:39 -07:00
Jared Tabor 6e2de1b4b0 changing "dyanmic" to "dynamic" 2017-10-18 16:34:39 -07:00
Jared Tabor 47f743e623 fixing removeTerm for smart search to work 2017-10-18 16:34:39 -07:00
Jared Tabor 4f0fa57a1b removing $urlMatcherFactory and $urlRouter b/c they're deprecated
in favor or $urlService
2017-10-18 16:34:39 -07:00