Commit Graph
100 Commits
Author SHA1 Message Date
Kia Lam 74e4c17b63 Address PR feedback and format. 2019-07-02 09:54:07 -04:00
Kia Lam d3ed6ac73a Fix Template list as well. 2019-07-01 16:21:41 -04:00
Kia Lam d22cafc42e Add unit test. 2019-07-01 16:20:38 -04:00
Kia Lam 58444a75b9 Fix Org list returning a 404 by redirecting user to current page.
- Update itemCount after an org has been successfully deleted.
- Update PaginatedDataList to get current page when the number of items has changed.
2019-07-01 16:20:38 -04:00
kialam 5df424803f Merge pull request #211 from ansible/upgrade-node-v8-to-node-v10
Upgrade our packaging for NodeJS 10.
2019-06-04 10:54:24 -04:00
Kia Lam 4b9024bcb0 Revert puppeteer upgrade to fix failing UI unit tests in Zuul. 2019-05-30 09:51:19 -04:00
Kia Lam 15c699de7c Update dockerfile to build using node v10.15.0. 2019-05-29 13:00:06 -04:00
Kia Lam 515d4fe20f Update INSTALL.md with new node version. 2019-05-29 12:21:54 -04:00
Kia Lam 75380b9576 Upgrade our packaging for NodeJS 10.
- Update README.md
- Bump certain dependencies to fix vulnerabilities. Exclude dependency bumps that would cause breaking changes.
2019-05-29 12:21:54 -04:00
Kia Lam efc45ac1fa Upgrade our packaging for NodeJS 10.
- Update README.md
- Bump certain dependencies to fix vulnerabilities.
2019-05-20 16:07:33 -04:00
kialam d59975c1ad Merge pull request #204 from ansible/use-styled-components
Use styled-components
2019-05-14 10:33:28 -04:00
Kia Lam cc24d524ac Merge remote-tracking branch 'origin' into use-styled-components 2019-05-14 10:20:25 -04:00
Kia Lam 457c6287a2 General cleanup.
- Fix tests.
- Update snapshots.
- Remove old import statement.
- Add element ids for Sort and Search Components.
2019-05-13 18:42:26 -04:00
Kia Lam 3322123dd4 Remove defunct external stylesheet. 2019-05-13 18:42:26 -04:00
Kia Lam a53509b359 Refactor DataListToolbar component. 2019-05-13 18:42:26 -04:00
Kia Lam a87c6ddf1b Convert DataListToolbar to a styled-component. 2019-05-13 18:42:25 -04:00
Kia Lam 0ea4a4dedd Convert toolbar button components to styled-components. 2019-05-13 18:42:25 -04:00
Kia Lam cc192246d9 Make Orgs List page responsive. 2019-05-13 18:42:08 -04:00
Kia Lam 82c7052d6f Make Org Notifications page responsive. 2019-05-10 11:06:24 -04:00
Kia Lam 349a9c7cc2 Add styled-components library and its babel plugin. 💅 2019-05-10 11:03:16 -04:00
kialam 500765cea5 Merge pull request #186 from ansible/add-username-to-top-header-bar
Add logged in username to top level header bar.
2019-05-03 10:14:29 -04:00
Kia Lam f14934f42c Translate tooltip block. 2019-05-03 09:59:10 -04:00
Kia Lam 5287af1b9f Add logged in username to top level header bar. 2019-04-30 11:05:08 -04:00
Kia Lam b978a28f8b Fix job output name in websocket service. 2019-04-09 17:04:30 -04:00
Kia Lam d25f1d1357 Format jt details for popover use. 2019-03-29 09:22:15 -04:00
kialam 1cb2a95a47 Merge pull request #137 from ansible/document-naming-functions
Update contributing doc
2019-03-21 14:26:12 -04:00
Kia Lam 57820b7056 Fix 'Groups' list item styling. 2019-03-21 13:44:56 -04:00
Kia Lam e3a6a20049 Update contributing doc to include:
- Method naming convention
- Initial Empty State convention
2019-03-21 12:51:23 -04:00
kialam dbeef0a823 Merge pull request #123 from ansible/access-list-remove-role-functionality
Org Access List: add remove role functionality
2019-03-18 10:25:56 -04:00
Kia Lam a4493cd02b Add empty initial states and adjust rendering logic. 2019-03-18 09:32:11 -04:00
Kia Lam a5683fb354 Clear mocked methods after each test to prevent overlaps with other tests. 2019-03-14 10:41:28 -04:00
Kia Lam 518ecee53e Apply padding to Alert component. 2019-03-14 10:35:54 -04:00
Kia Lam 6bd5ee4201 Move test for AccessList. 2019-03-13 17:12:16 -04:00
Kia Lam 390832cc1a Rename AccessList to OrganizationAccessList and fix paths. 2019-03-13 16:46:50 -04:00
Kia Lam c6d810621f Move AccessList out of components directory.
- The AccessList component is pretty specific to the Organization component, and given the structure and methods within it, is pretty context-specific and not a good candidate to be a re-useable component.
2019-03-13 16:37:03 -04:00
Kia Lam 0495214f47 Address PR feedback. 2019-03-13 15:59:42 -04:00
Kia Lam 21156d1409 Merge remote-tracking branch 'origin' into access-list-remove-role-functionality 2019-03-13 15:43:30 -04:00
Kia Lam 198dfe7f2e Add unit test to check state when user tries to delete a role. 2019-03-13 14:44:12 -04:00
Kia Lam 3b65068258 Add remove role functionality. 2019-03-08 13:56:27 -05:00
kialam e935776067 Merge pull request #121 from ansible/org-access-list
Organization Access List
2019-03-05 18:56:29 -05:00
Kia Lam 9f86fc2def Respond to PR feedback. 2019-03-05 12:01:06 -05:00
Kia Lam 35ecd83214 Some cosmetic changes.
- Reverse order of Expand/Compact icons in DataListToolbar to Compact/Expand.
- Make Expanded the default view for Access Lists.
- Make role badge styling closer to Chip component styling.
2019-03-04 14:38:58 -05:00
Kia Lam 86a92fefe7 Merge remote-tracking branch 'origin' into org-access-list 2019-03-01 10:37:44 -05:00
Kia Lam bf7e6201a2 Refactor Access List.
- Derive Team Roles without making extra API call.
- Consistent variable naming convention use camelCase.
- More informative error display.
2019-03-01 10:12:36 -05:00
Kia Lam a3a80bc23e Fix prop errors in unit tests. 2019-02-27 18:03:15 -05:00
Kia Lam 5659270d3e Add unit test for Access List component. 2019-02-27 17:30:02 -05:00
Kia Lam 1443625d89 Abstract out Access List as shared component. 2019-02-26 13:23:34 -05:00
Kia Lam 3cd54c45eb Add Access List to Orgs. 2019-02-26 08:39:13 -05:00
Kia Lam d2c345a374 Fix API lint error. 2019-02-22 13:06:20 -05:00
Kia Lam 0943f989ce Fix various errors when trying to run make bulk_data.
- Properly import PrimoridialModel.
- Use floor division operator for range() method to avoid float vs int errors.
2019-02-22 11:59:18 -05:00
kialam ec8a452f1d Call this.sync when we receive a ws complete message.
- There can be a race condition where a job run finishes event processing before sending off a "successful/failed" websocket message. In this instance, we would miss gathering known artifacts for a job. The proposed fix is to do a manual detection of when a job status updates to "successful/failed/unknown" and perform a GET request to the job endpoint.
2019-02-20 14:11:13 -05:00
kialam 728fb1aaef Fix hidden relaunch dropdown in new lists. 2019-02-20 10:05:21 -05:00
kialam 2596ad26b9 Make compact rows responsive. 2019-02-20 09:35:22 -05:00
kialam e0df011804 Merge pull request #109 from ansible/add-prop-checking
Add proptypes to shared components
2019-02-19 11:37:03 -05:00
kialam f9d615fdee Fix unit tests. 2019-02-19 11:28:17 -05:00
kialam da8c3f6c43 Enable submit button by default. 2019-02-19 10:24:26 -05:00
kialam c3493b0539 Remove unused method. 2019-02-19 10:19:47 -05:00
kialam bba1c4f5b6 Restore FormGroup to parent Add Org component for AnsibleSelect. 2019-02-19 10:18:03 -05:00
kialam 2a254ea538 Add typechecking to contributing guide. 2019-02-15 15:20:02 -05:00
kialam b340d49cb7 Integrate proptypes for our shared components.
- Fix unit tests.
- Fix linter errors.
2019-02-15 15:08:52 -05:00
kialam 91f87b6d81 Merge pull request #106 from ansible/add-select-default-option
Add default option for AnsibleSelect dropdown.
2019-02-14 11:00:04 -05:00
kialam 7c009fc315 Update unit tests to use new props. 2019-02-14 10:53:53 -05:00
kialam f09eb182c2 Merge remote-tracking branch 'origin/master' into add-select-default-option 2019-02-14 10:38:28 -05:00
kialam 1f07fc8494 Make default option selectable but return null value. 2019-02-13 15:39:29 -05:00
kialam 2b18cee9c0 Fix linter errors and add test to AnsibleSelect component. 2019-02-13 15:39:29 -05:00
kialam 97477b789a Add default option for AnsibleSelect dropdown. 2019-02-13 15:39:26 -05:00
kialam 099a82fdf8 Fix expanded view not persisting when a user copies a project. 2019-02-12 15:24:17 -05:00
kialam fcba02cd86 Linter fix. 2019-02-08 14:52:15 -07:00
kialam 28a29293c7 Check for empty object rather than string value. 2019-02-08 14:31:06 -07:00
kialam 76a16b329e Conditionally show the Artifacts field. 2019-02-07 08:59:44 -07:00
kialam c114243082 Add artifacts as a subscriber to job details status service.
- This will emerge the artifacts field values if they become available to the UI from the API once a job has completed successfully.
2019-02-07 07:59:45 -07:00
kialam dc7ec9dfe0 Adjust WF results to account for codemirror changes. 2019-02-06 12:11:15 -07:00
kialam 07aae8cefc Add Artifacts CodeMirror field to job details. 2019-02-06 10:52:18 -07:00
Kia Lam 6f9cf6a649 Fix expanded view not persisting when a user copies a JT/WF. 2019-01-30 13:23:21 -05:00
Kia Lam c1b48e2c9c Some sidebar nav fixes.
- Set isExpanded state to false when window width is < 700px.
- Set `pointer-events` to `none` for logo to allow users to easily click on hamburger icon.
2019-01-28 13:25:44 -05:00
Kia Lam 5421c243d7 Add expand/collapse toolbar to Projects List.
Add some responsive styling.
2019-01-25 10:31:38 -05:00
Kia Lam 9a10811366 Add expand/collapse toolbar for Job Templates list. 2019-01-24 13:50:32 -05:00
Kia Lam ebc2b821be Only show toolbar if the job list is not empty. 2019-01-24 10:44:58 -05:00
Kia Lam 85a875bbfe Styling changes. 2019-01-24 10:44:58 -05:00
Kia Lam a9663c2900 Add expand/collapse toolbar to Jobs List view. 2019-01-24 10:44:58 -05:00
Kia Lam 05c24df9e3 Add list toolbar component. 2019-01-24 10:44:58 -05:00
kialam 3060abab1d Merge pull request #87 from ansible/lookup-form-component
Lookup form component
2019-01-16 13:32:28 -05:00
kialam a70a0fa622 Bump Lookup component test coverage up. 2019-01-16 13:15:51 -05:00
kialam 7230b4bf8d Bump up unit test coverage for OrganizationAdd component. 2019-01-15 15:51:37 -05:00
kialam fc32cf026f Address review feedback. 2019-01-15 15:15:17 -05:00
kialam e8fe6fe33c Fix & Add unit tests. 2019-01-15 14:58:23 -05:00
kialam 215c23609c Hook up 'x' remove button; rename ListItem component. 2019-01-14 09:45:49 -05:00
kialam c5cd659c83 Redirect user to org detail page after successful POST. 2019-01-08 16:09:30 -05:00
kialam a1d1dc7a24 Style pop up modal 2019-01-08 15:56:37 -05:00
kialam c085fc6751 Merge remote-tracking branch 'origin/master' into lookup-form-component 2019-01-08 13:47:06 -05:00
kialam 395e30509b Fix linter and existing unit tests. 2019-01-07 17:17:22 -05:00
kialam 517ef8a2c9 Hook up add instance group functionality. 2019-01-07 16:56:39 -05:00
kialam f34ec4be10 Merge remote-tracking branch 'origin/master' into lookup-form-component 2019-01-07 14:40:35 -05:00
kialam c63896fbb6 Implement basic lookup modal component. 2019-01-07 10:09:35 -06:00
kialam e8924e8f6f Fix linter errors. 2019-01-03 15:20:46 -05:00
kialam e77d81dd5b Lift config context one level higher.
- Refactor About component to use config context.
- Update About component unit tests.
2019-01-03 15:20:41 -05:00
kialam a217a387c6 Use new lifecycle method to update component state.
- Use component state to handle rendering of Ansible Select dropdown based on the number of custom virtualenvs the API returns.
2019-01-03 15:20:35 -05:00
kialam 13680a436c Add unit tests for recent changes to App.jsx. 2019-01-03 15:20:30 -05:00
kialam 6c307726db Use setState instead of sessionStorage for config data. 2019-01-03 15:20:23 -05:00
kialam 9bc87b3e80 Implement React Context API
- Move API GET request to /v2/config out to the top level of our App.
- Store /v2/config response data in sessionStorage.
- Use Context API to pass down relevant data to Organizations component.
- Wrap our AnsibleSelect component as a context consumer and pass in the list of Ansible Environments of the logged in user.
- Clear sessionStorage object when user logs out.
- Update unit tests.
2019-01-03 15:20:08 -05:00