Commit Graph
100 Commits
Author SHA1 Message Date
Alex Corey c45b1ffca6 Ensures Variables Details renders even when no value.
When there is no value VariablesDetails will show ---.
2020-01-20 12:58:58 -05:00
Alex Corey 078dc666c1 Removes code from serializer in favor to api call of Project.readDetails
Adds necessary tests.
2020-01-17 15:57:14 -05:00
Alex Corey 790942c0f2 Fixes navigation bug in InventoryAdd Adds SCM Branch field on JTForm 2020-01-17 14:44:56 -05:00
Alex Corey fd1e574fcb Resets playbook and scm-branch fields when project is changed
The playbook field becomes undefined and the scm-branch
field becomes ''.  This ensures that the user has to assign
a playbook to the template that is associated with the project
and suggests to the user to review their scm-branch.
TODO: when the user updates project with scm-branch override
allow the user to type in playbook in dropdown. Then, check if
playbook is present in list of playbooks.  If no, add it to the
list of playbooks.
2020-01-17 14:44:56 -05:00
Alex Corey 2daefcd94e Removes code from serializer in favor to api call of Project.readDetails
Adds necessary tests.
2020-01-17 14:44:28 -05:00
Alex Corey 46a7ca4dc3 Fixes navigation bug in InventoryAdd Adds SCM Branch field on JTForm 2020-01-17 14:44:28 -05:00
Alex Corey 8bfcef01df Fixes Breaedcrumb 2020-01-13 12:24:15 -05:00
Alex Corey dfa578fcde Utilizes React Router Hooks and removes No-op function 2020-01-13 11:28:31 -05:00
Alex Corey 33bc9e63c4 Addresses Console Errors related to functions and test data
Also Adds speecificity to link URLs by add /details for urls that should
redireect to details pages instead of them ending in /:id
2020-01-13 11:28:31 -05:00
Alex Corey 919475a4c7 Improves NestedTabs, Refactors PR, Adds Delete/DeleteError Functionality to HostDetail 2020-01-13 11:28:31 -05:00
Alex Corey 1db88fe4f6 Adds Toggle, Variables, user Link and Delete to Inventory Host and Host Details
If the user comes to Host details through Inventory Host they will get a
Return To Host tab in addition to the others.  This PR allows Inventory Host
to share many of the same components with Host but does add some complexity
to the routing files in Host.jsx
2020-01-13 11:28:31 -05:00
Alex Corey 7d0d000180 Adds Promote Delete Modal To InventoryGroupDetails
It also removes a comment/reminder to remove some code after CredentialsLookUp
refactor was completed.  Now that it has been completed that code has been removed.
2020-01-06 16:53:15 -05:00
Alex Corey 259e53f59d Fixes failing zuul test 2019-12-13 16:38:59 -05:00
Alex Corey 4b62d77015 Moves inventoryGroupForm into shared directory
Updates InventoryGroups tests
Adds ContentError functionalist to catch a case where a use might navigate to an Inventory
that isn't associated to the shown inventoryGroup.
2019-12-13 14:20:56 -05:00
Alex Corey ef5ce0b082 Flattens Inventory File Structure Remove 2019-12-13 14:20:56 -05:00
Alex Corey 1942be7dc3 Checks for modified and create in Inv Group Deets
Also includes refactoring for css over style prop and removed some
unnecessary loading checks
2019-12-13 14:20:56 -05:00
Alex Corey 210f9577b0 Fixed filename typo 2019-12-13 14:20:56 -05:00
Alex Corey 87a05a5b2e Testing Improvements and Refactoring 2019-12-13 14:20:56 -05:00
Alex Corey f8a754cf44 Adds Alert Modal, Breadcrumb, Nested Tabs and Refactors PR. 2019-12-13 14:20:56 -05:00
Alex Corey 3ea37e1c79 Addresses PR issues
Adds Delete Modal for deleting from Details view
Adds test for delete modal
Addresses styling for Variables label
Removes X close button from form
2019-12-13 14:20:56 -05:00
Alex Corey c997fcfc2c Adds Inventory Groups routing --sort of
Adds Inventory Groups Add
Adds Inventory Groups Edit
Adds Inventory Groups Form
Adds api module for Groups
Adds placeholder file for InventoryGroupsList.  This was added to refine routing.  Tgere are no tests for this file yet.
2019-12-13 14:20:56 -05:00
Alex Corey 2a722ba8d0 Refactors Lookup 2019-12-10 10:58:32 -08:00
Alex Corey 83caf99c58 Improves Tests and addresses other PR Issues 2019-11-22 10:22:05 -05:00
Alex Corey 19180a1bc4 Adds Add/Edit Inventory and Inventory Form 2019-11-21 17:40:28 -05:00
Alex Corey e3ee3c5a00 Fixes failing tests 2019-11-12 11:11:17 -05:00
Alex Corey 95cdddd670 Adds Proptypes to AddDropDownButton Component
Also refactors to use the url that is passed in as the key for the link.
This means that we don't have to pass in a key value.
2019-11-12 10:21:10 -05:00
Alex Corey d91aa8c6cf Allows AddDropDownButton components to accept array of dropdownItems 2019-11-12 10:21:10 -05:00
Alex Corey 052f101a70 Adds AddDropDownButton removes TemplateDropDown Button
Both Inventory List and Template List use the same add button that has a drop down.
I decided to make a component that both can use.
This also addresses a typo in a InventoryList test.
2019-11-12 10:21:10 -05:00
Alex Corey b570c8ad2a Fixes linting issues 2019-11-04 16:26:01 -05:00
Alex Corey 9170aa184a Removes missingDetail prop and addresses a typo.
This removes `missingDetail` prop in favor of using styledComponent's className prop.
2019-11-04 14:42:00 -05:00
Alex Corey e5b76c6427 Adds Deleted text to missing resources in JT Detials View
The usecase of this change is if a user deletes an Inventory, or a Project
that is used by a JT they need to know that those resources are missing.

The only time that `Deleted` won't be shown for a missing resource is for
Inventory if it has been marked Prompt on Launch then nothing is shown. in that field.

Also adds icon to indicate that a JT is missing resources on the JT List.
2019-10-31 18:02:13 -04:00
Alex Corey dab80fb842 Adds Proptypes 2019-10-25 16:16:04 -04:00
Alex Corey 7f409c6487 Moves JT CredentialsList Manipulation Back to CredentialsLookup
Rename CredentialsLookup to MultiCredentialLookup
Removes unnecessary functions in Lookup.
Puts CredentialsList manipulation on CredsLookup and removes that work from JTForm.
Upates tests for CredentialsLookup and JTForm to reflect changes above.
2019-10-25 15:13:11 -04:00
Alex Corey 53b4dd5dbf Fixes linting errors 2019-10-24 12:35:30 -04:00
Alex Corey 491f4824b0 Addresses PR Issues
Improves credential ID variable in JT model.
Removes unused prop from Lookup ComponentDidMount.
Removed unused function call from Credentials ComponentDidMount.
Streamlines toggleCredential function and moves it to JobTemplateForm.  This was done because the
JobTemplateForm should handle the credential values passed to the CredentialsLookup.
Adds tests for JobTemplateForm to ensure toggleCredentialSelection function is putting proper values
in state.
Removed withRouter wrapper on CredentialsLookup export.
Improved CredentialsLookup test to ensure that onChange is called when user removes
a credential from the input.
2019-10-24 12:32:50 -04:00
Alex Corey 91721e09df Adds tests 2019-10-24 12:32:50 -04:00
Alex Corey 2828d31141 Adds CredentialLookUp to JT Form 2019-10-24 12:32:50 -04:00
Alex Corey d10e727b3c Adds CredentialLookUp to JT Form 2019-10-24 12:32:50 -04:00
Alex Corey 4134d0b516 Updates PR and Addresses Console Error
THis commit imroves conditional rendering of the container groups form for
System Auditors.  It also removes a ng-class condition in the IG list that was unused.
2019-10-16 09:15:44 -04:00
Alex Corey 5cf84ddb60 Sys Aud can see CG forms, Adds correct CG form link, Disables CodeMirror
This allows the System Auditor to see the container groups form in a disabled state.
If the pod_spec_override has been changed that field will be open when the page renders
but it will be disabled. It also greys out all code mirror text area fields for System Auditor.
It adds the correct url for the Container Groups message bar to inform users of possible
pitfalls associated with that feature.
2019-10-15 10:47:04 -04:00
Alex Corey 74b398f920 Add Tech Preview notice to Container Group UI
and some refactoring
2019-10-04 15:17:57 -04:00
Alex Corey 9289ade1ec IG List responsiveness 2019-10-04 13:21:28 -04:00
Alex Corey 958c8a4177 Fixes Credential Type Issue, ExtraVars Toggle Issue, Job Results Inert Link 2019-10-04 13:21:28 -04:00
Alex Corey 8fabb1f10d Show override toggle as off when pod_spec matches default 2019-10-04 13:21:28 -04:00
Alex Corey 895c71f62c removes instances tab from CGs 2019-10-04 13:21:27 -04:00
Alex Corey 32a57e9a97 add default pod spec to edit 2019-10-04 13:21:27 -04:00
Alex Corey 584777e21e Adds Tabs to CGs 2019-10-04 13:21:27 -04:00
Alex Corey 007f33c186 Add Container Group Form Render and cred type modal pops up
modal render proper cred

WIP

modal rendering properly

card for edit CG renders, no fields

add code mirror and some list styling

address PR issues
2019-10-04 13:21:27 -04:00
Alex Corey 6c443a0a6a fix lint error 2019-09-30 16:38:51 -04:00
Alex Corey 55378c635e Makes template list responive 2019-09-30 16:28:24 -04:00
Alex Corey 90cac2ec35 fix lint errors 2019-09-26 16:11:34 -04:00
Alex Corey d42ffd7353 Removes unused fnc and unnecessary props adds dom node to Empty State
This.node was use for the add button for both empty list and list with data.
This was done to reduce complexity in handleAddToggle() and I don't think it
will cause bugs because those two elements are not rendered at the same time.
2019-09-26 13:32:00 -04:00
Alex Corey 38b506bb94 Removes isPlain prop from DropdownItem 2019-09-25 10:28:57 -04:00
Alex Corey 1316ace475 Fixes translation omissions 2019-09-24 16:34:09 -04:00
Alex Corey b3b53a8ce4 Pluralized modal titles and empty state strings
All itemNames used in empty state messages, and delete modal titles
need to be plural and capitalized.  Because of this change we no
longer need the ucFirst() in utils/strings.js.
2019-09-24 11:21:54 -04:00
Alex Corey 8dd4379bf2 Adds proper translation. removes ucFirst()> 2019-09-24 11:21:54 -04:00
Alex Corey b79c686336 requires individual components to pluralize 2019-09-24 11:21:54 -04:00
Alex Corey ce1d9793ce ToolBar checkbox checks and JT Add Button closes and Test Clean up
The Select-All check box in the DataList Toolbar will be checked when the
user clicks on it. Also, the JT Add button closes when the user clicks
elsewhere on the page as well as when the user clicks on the button a second time.
I also cleaned up some tests in the DataListToolBar file.
2019-09-23 09:49:38 -04:00
Alex Corey 1ebe91cbf7 Adds delete button to job details and handle delete errors
After successful deletion of Job the user is nativated back to Jobs List.
If the job is not successfully deleted a alert modal pops up and on close
the user remains on Job Details page.
2019-09-19 17:34:18 -04:00
Alex Corey ef4f1df9bb fixes grid so action buttons stay in view 2019-09-16 16:27:10 -04:00
Alex Corey 9028afab07 allows user to save form after reverting 2019-09-16 12:55:31 -04:00
Alex Corey 9e8d0758c8 allows all WFJT tabs to properly route to workflow visualizer 2019-09-13 15:21:54 -04:00
Alex Corey e23c1477da Properly reloads after successful deletion 2019-09-10 12:13:41 -04:00
Alex Corey a95394b135 Adds proper pluralization to Look Up modal empty state 2019-09-09 14:55:39 -04:00
Alex Corey fbe6abfb53 Allows user to hit enter to create label, fixes console errors. 2019-08-27 17:37:23 -04:00
Alex Corey 8b35642b08 Fixes failing test and addresses PR issues 2019-08-02 17:37:58 -04:00
Alex Corey 74a1ebff32 Adds tests and refines chip interaction in MultiSelect component 2019-08-02 16:42:22 -04:00
Alex Corey a577be906e Adds Multiselect functionality to labels on JTs 2019-08-02 16:42:22 -04:00
Alex Corey 7039f82d15 Only reload details whe navigating to details from another tab 2019-07-09 13:43:09 -04:00
Alex Corey 3b17170533 more concise conditions for api calls 2019-07-03 16:19:43 -04:00
Alex Corey 320581a6c0 Addresses PR issues 2019-07-03 12:43:40 -04:00
Alex Corey b5b38c1b79 addresses PR Issues 2019-07-02 12:36:13 -04:00
Alex Corey b0249a9a8b Addressed PR Issues 2019-06-21 08:58:51 -04:00
Alex Corey a7c787af02 Adds notify on start toggle 2019-06-20 13:07:09 -04:00
Alex Corey a5a6fdf1d6 Updates text of tooltip for Forks in JT. 2019-05-29 14:27:16 -04:00
Alex Corey 7452b82856 addresses PR issues 2019-05-28 13:13:42 -04:00
Alex Corey b7b17b9176 updates test issues caused by PF bump 2019-05-28 11:42:17 -04:00
Alex Corey 92d8948a83 updates tests 2019-05-17 15:32:04 -04:00
Alex Corey d3cc1a8771 Adds AddOrgBtn to Orgs List empty state 2019-05-17 15:29:05 -04:00
Alex Corey 1200c23ebc addressing PR issues 2019-05-03 14:26:19 -04:00
Alex Corey b8b2209335 add bottom border to org tabs 2019-05-03 10:27:48 -04:00
Alex Corey a3fdb4aee3 add bottom border to tabs 2019-05-02 16:26:31 -04:00
Alex Corey c9c7d2c2a5 add tooltip proptype 2019-05-02 15:20:25 -04:00
Alex Corey cc0b2bb5b4 added props to Proptypes 2019-05-02 15:12:04 -04:00
Alex Corey c6de6b8f25 added props to Proptypes 2019-05-02 14:34:17 -04:00
Alex Corey b136ce1e1d updating PR issues updated snapshot test 2019-05-01 15:48:08 -04:00
Alex Corey f704f320b5 address pr issues 2019-05-01 14:42:59 -04:00
Alex Corey c4a4275a89 updated snapshot of failing test 2019-05-01 14:42:00 -04:00
Alex Corey 64d4b71ec9 UX improvements 2019-05-01 14:42:00 -04:00
Alex Corey f71421f60a removed orgsToDelete and fixed other tests 2019-04-30 10:22:25 -04:00
Alex Corey f4da620c4d updating PR 2019-04-30 09:48:42 -04:00
Alex Corey 1bae944b85 fix tests and function name changes 2019-04-29 17:29:40 -04:00
Alex Corey 33f7bf67e1 fix merge conflicts 2019-04-29 17:00:04 -04:00
Alex Corey 8fa9535b98 styling changes 2019-04-18 13:07:10 -04:00
Alex Corey 2067718c0e fixed tests 2019-04-17 16:42:39 -04:00
Alex Corey ca6153c955 RoutedTabs is now a functional component 2019-04-17 13:51:09 -04:00
Alex Corey 76a7a76e81 refactoring and updating tests 2019-04-17 13:50:38 -04:00
Alex Corey 2daf202e52 addresses PR issues 2019-04-17 13:50:38 -04:00
Alex Corey 178d519f6e Remove unwanted committed file 2019-04-17 13:50:38 -04:00
Alex Corey c4ffc58228 addresses PR issues 2019-04-10 14:16:22 -04:00