aboutsummaryrefslogtreecommitdiffstats
path: root/gui-clamp/ui-react/src
AgeCommit message (Collapse)AuthorFilesLines
2022-09-28Amend GUI to work directly towards ACM runtimeliamfallon1-11/+11
GUI proxies the URLs towards the ACM runtime server across CLAMP backend because clamp-backend handles the certificates for HTTPS communication and also handles AAF. For now, the Policy GUI is being used for testing and demonstration purposes only. As AAF is disabled and we are using HTTP, the GUI can now work towards the ACM runtime server port directly for test installations. Issue-ID: POLICY-4122 Change-Id: Idca87d520a5eef2058781534df6f96a0260c5eaf Signed-off-by: liamfallon <liam.fallon@est.tech>
2022-05-05Added Edit Button Functionalitybrunomilitzer6-36/+145
Issue-ID: POLICY-4094 Change-Id: I7e83e1c194272f274f351bc1ee34761fcc7353a4 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-04-06Gray-out links from older UI functionalitysaul.gill2-4/+12
Links are disabled and greyed out for non-acm functionality Altered menu bar test Issue-ID: POLICY-4082 Change-Id: I5b0807cfdc687de9fdc0accd38825ed6309f79db Signed-off-by: saul.gill <saul.gill@est.tech>
2022-03-15Merge "Added more unit tests for overall coverage"Liam Fallon5-72/+63
2022-03-14Added more unit tests for overall coveragebrunomilitzer5-72/+63
Issue-ID: POLICY-3932 Change-Id: I481f5da35047da7a790f02368cc915d5e1a9e04d Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-03-10Merge "Added Jest Tests for Overall Coverage"Liam Fallon2-12/+59
2022-03-10Added Jest Tests for Overall Coveragebrunomilitzer2-12/+59
Issue-ID: POLICY-3873 Change-Id: Ie3516ad0178b7960e3ecc380eb0ad3a48a78ce1f Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-03-09Code coverage policy gui reactlapentafd4-0/+116
Issue-ID: POLICY-3351 Signed-off-by: lapentafd <francesco.lapenta@est.tech> Change-Id: I5329a7437be4702361940ef9e22f51413ed892d0
2022-03-07Fixed Instance Properties Namebrunomilitzer5-18/+73
Added a input text box so the user can customize the instance name properties Issue-ID: POLICY-3978 Change-Id: I505eff37699dbe50a285ce2f153c70be246e1d8c Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-03-02Code Coverage in gui ui reactlapentafd2-0/+76
Issue-ID: POLICY-3351 Signed-off-by: lapentafd <francesco.lapenta@est.tech> Change-Id: I0a2ada8e19619eaf95012300c7a3c2c6013f2495
2022-02-28Renamed Control Loop to ACMbrunomilitzer72-313/+131
Issue-ID: POLICY-3940 Change-Id: I37d768ac339e4e354a369fcb659bf36da861d7aa Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-02-15Added Jest Test on SVG Generatorbrunomilitzer2-0/+38
Issue-ID: POLICY-3873 Change-Id: I5ad1ba66a6ac8c3b48c8468dbcd4fc2132060ceb Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-02-11Added Jest Tests on ViewAllPolicies and PolicyDeploymentEditorbrunomilitzer6-3/+284
Issue-ID: POLICY-3916 Change-Id: I81e34903bf1e8d2d059b755d58eea7738b600829 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-02-04Added Policy Jest Testsbrunomilitzer12-77/+1222
Added more tests to increase overall coverage Issue-ID: POLICY-3899 Change-Id: I97e7954d42199145948f2ac2738a0ceaa7e6a44f Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-02-01Merge "Added Menu and Loop Jest Tests"Liam Fallon8-18/+415
2022-01-31Fix assertions in ControlLoopService testdanielhanrahan1-4/+8
Fix assertion lines to check response status value. Wrap responses in beforeEach so async calls are resolved before assertions. Issue-ID: POLICY-3351 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: If540831367a7e359739b9675a2800b426b3e7f20
2022-01-28Added Menu and Loop Jest Testsbrunomilitzer8-18/+415
Issue-ID: POLICY-3876 Change-Id: I5f4d80aefdff8b837a40742b66727b888e985b86 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-01-17Merge "Improved Test coverage for Service Component"Liam Fallon7-0/+1304
2022-01-14Improved Test coverage for Service ComponentLathish7-0/+1304
Issue-ID: POLICY-3351 Change-Id: I7d710a3fbd91d3c62fe29c4748244b480e7798e6 Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
2022-01-11Added Test Code Coveragebrunomilitzer8-102/+198
Issue-ID: POLICY-3563 Change-Id: I65cd2bfc72b973baa8f2b28a14e5d364ca4562a2 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2022-01-04Added Jest Unit Testsbrunomilitzer14-265/+1979
Jest Tests for creation of instance properties Jest Tests for deletion of instance properties Included Issue-Id: 3566 Issue-ID: POLICY-3563 Signed-off-by: brunomilitzer <bruno.militzer@est.tech> Change-Id: I227ae8f306df10ee3cc341791471dda9ca79d9d1
2021-11-04Merge "UPDATED Jest Unit Tests for Monitoring Functionality"Liam Fallon7-23/+358
2021-11-03Merge "Added tests to improve coverage"Liam Fallon21-228/+4896
2021-11-03UPDATED Jest Unit Tests for Monitoring Functionalitybrunomilitzer7-23/+358
Updated Unit Tests to cover monitoring functionality Issue-ID: POLICY-3561 Change-Id: I8434cf5d60463d60175ef6e48f0e75e8c4f656da Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-10-29Added tests to improve coveragesaul.gill21-228/+4896
Added new tests and snapshots Altered existing tests to bring up coverage Altered package.json in response to warning messages Removed unused functions from ControlLoopService Added json testFiles Added utils directory for out-of-component functions Issue-ID: POLICY-3643 Change-Id: I3405a4421637e63235ff5176c913a5a5f9a4a44c Signed-off-by: saul.gill <saul.gill@est.tech>
2021-10-28Added JEST Unit Tests for Monitoring Functionalitybrunomilitzer13-98/+324
Created Unit Tests to cover monitoring functionality Issue-ID: POLICY-3561 Change-Id: I48035f3960447c66d29005d5eba2e8332c55b591 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-10-08Fix delete instance in Design statesaul.gill1-1/+1
Original change was made in clamp repo Change must also be added to gui repo Downgraded material-table due to build-breaking dependency Issue-ID: POLICY-3707 Change-Id: I708e867f6336c8bf34edc08156a731cc9439e763 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-09-10Make gui-clamp work in Docker imagedanielhanrahan9-74/+52
Change package.json to generate URLs relative to current pathname Change REST URLs to use window.location.pathname Remove broken React state variables for window.location.pathname Issue-ID: POLICY-3600 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: I6951a0a6b3f3bef15d262242df13cc2d20a198c8
2021-09-10Add Delete Instantiation Functionality.brunomilitzer12-244/+405
Update UI to centralize Instantiation Management Created Delete button to delete the instantiations Fixed Change Order State Functionality Issue-ID: POLICY-3558 Change-Id: I2efb00ce041ab4fc217e06ed72385ad8ea1b10fb Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-08-20ADD State Change CL Instantiationbrunomilitzer10-1/+564
Will Apply Unit Tests on POLICY-3537, since focus is to get the functionalities completed. Issue-ID: POLICY-3425 Change-Id: I926bb1a213e71dee56c0fc5df4779a4f1b633383 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-08-11Add error handling and refactoringsaul.gill9-73/+186
Added error for when common or instance props can't be retrieved Added error for monitoring when control loops can't be retrieved Made node templates collapsed by default when editing properties Added single service function to get common or instance properties Issue-ID: POLICY-3439 Change-Id: I74560a06aae1a820862f977d5e7ac86597a093c0 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-07-30Add Instance Properties Formbrunomilitzer16-503/+418
Added save button to update paramaters Added service to retrieve paramaters; Added service to upload instance paramaters Issue-ID: POLICY-3436 Change-Id: I82e7545b12160f2e7937db2fdb3857c66ea0b858 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-07-29Added Common Parameter Formsaul.gill6-37/+193
Added save button for user edits Added commission button to push up edits Added service to retrieve common parameters Issue-ID: POLICY-3439 Change-Id: Ia355f36bf263bb1385db363a267c53af86504905 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-07-19Added Commissioning Template Editorsaul.gill17-16/+574
Added a new modal to allow editing of the tosca template Json schema from the backend generates a for the user Added Decommissioning capability while viewing template Added service for decommissioning Issue-ID: POLICY-3439 Change-Id: Ic5bec9ea26aa8df468d36a893faa06f88d248dd5 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-07-13Add Upload Control Loop Instantiationbrunomilitzer19-30/+740
Created Functionality to Upload JSON file to Control Loop Instantiation. Issue-ID: POLICY-3436 Change-Id: Iefd538c91154b7e61615ab63b440378e2feea502 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-07-07Update React NPM dependenciesbrunomilitzer2-59/+59
Updated React UI and React UI Lib dependencies to the latest version. Issue-ID: POLICY-3354 Change-Id: I12e0bb7e01d426928e3184fcd49f461f775a369a Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-07-02Changed components to be service-centricsaul.gill19-375/+403
Moved endpoints to ControlLoopService.js Refactored components and tests Issue-ID: POLICY-3424 Change-Id: I70d48750250eecd651b845ef0c726617983f75f5 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-06-24Add Tosca Monitoring App to Policy Guibrunomilitzer10-0/+494
Implemented the prototype monitoring gui onto the policy gui Issue-ID: POLICY-3357 Change-Id: Iabf25cd6c26d4e65a7a963cdd79c25aa91c39736 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-06-24Added jest/enzyme tests for new componentssaul.gill12-4/+525
Tests and snapshots added for reference Single package added to package.json Issue-ID: POLICY-3423 Change-Id: Ica0045bb80f587856f6e2392c3d846b6416cce21 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-06-17Added Tosca File Upload Functionalitysaul.gill7-0/+289
Added 2 new components One deals with the file upload to commissioning Other deals with display of the ui elements Issue-ID: POLICY-3222 Change-Id: I3b20489bb9e5c499f842cc8adde8147d3e3e8de0 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-06-11Added GET Tosca Service Template componentssaul.gill7-15/+231
Added in header, using existing styling Integrated with existing FE Issue-ID: POLICY-3222 Change-Id: I5b6a9f4be3296b2969baa559a7a48c87d2ab9258 Signed-off-by: saul.gill <saul.gill@est.tech>
2021-06-04MERGE Clamp UI-React repo to Policy Gui Repobrunomilitzer31-562/+2262
According to a Diff differences from one repo to the other, there was some missing changes from the original clamp repo to the policy gui repo. Issue-ID: POLICY-3267 Change-Id: I9a71841732dc5c3d9623bca9c1384866f4c826a6 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
2021-05-27React Front-End UIbrunomilitzer70-0/+11211
This commit is to move the React front end files from the Clamp Policy Repo to the Onap Gui Policy Repo. Also created the added Maven featue to compile the React project via Node and NPM, and copy the production files to the target directory. Fixed in gitignore that was ignoring the contents inside the logs/ directory. Reformated JS spacing files from 4 spaces to 2 spaces. Fixed Broken JEST test Applied Jim's Code Review as well updated Node Version from 12.18 to 14.17 accross the modules. Unfortunately cannot apply NPM version since it broke npm install. Fixed ONAP Job Builder Linting Error Applied Jim's Second Code Review Issue-ID: POLICY-3218 Signed-off-by: brunomilitzer <bruno.militzer@est.tech> Change-Id: I01f95c350d27d72f941c835592fd596472601d6e