summaryrefslogtreecommitdiffstats
path: root/ui-react
AgeCommit message (Collapse)AuthorFilesLines
2021-05-13Modular structure of clamp including controlloopSirisha_Manchikanti83-12931/+0
This commit is the first commit that puts in multi module structure while changing the existing CLAMP code as little as possible. It adds a structure where common, models, participant and runtime are direct children under clamp, and current clamp code is moved under runtime. This runtime directory will host controlloop runtime code in later commits. Issue-ID: POLICY-3215 Signed-off-by: Sirisha_Manchikanti <sirisha.manchikanti@est.tech> Change-Id: I15bc8be92ed020343bff4024c4718fec462c40d7 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-05-05Add Tests on UIsebdet25-74/+1367
Add some test to UI and fix errors reported by JEST during Ui tests Issue-ID: POLICY-3200 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I69e93ad1f1714fa60a0c7ea9b1f3fb691f089f8a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-04-26Remove dead codesebdet1-58/+2
Remove dead code due to change done to add tosca file to PEF directly. Issue-ID: POLICY-3229 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I4e48fd5401e304b131406b739268134dd7e7997f Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-04-26Fix not refreshed Tosca listsebdet1-1/+2
The refresh must be don inside the asynchronous block to fix the refreshing of the tosca list Issue-ID: POLICY-3229 Change-Id: I89d4964b68d88e28bd8d0dfef19c2382d52fa7bf Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-04-23ToscaFileSelectorsebdet3-3/+179
The UI code that manages the tosca file selector that will be sent to clamp be + fix Rest Camel endpoint that always want ot convert http body to JSON (due to Camel upgrade) Issue-ID: POLICY-3229 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I6148276d4c527f29db904a76655055c19d4e2023
2021-04-21Fix UI that sends 2 list policies querysebdet1-1/+0
The UI code that manages the PDP deployments was not correct, it uses to do 2 List queries when it was successful Issue-ID: POLICY-3226 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia67d67d1e953cc3426fbe450c428d31bc72649d8
2021-04-21Fix wrong PDP operations send by UIsebdet1-2/+6
The code that was computing the operations to execute was wrong. THe command POST was missing Issue-ID: POLICY-3225 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I0de307e782bf99ed3cb4274c587c9c71955bab74
2021-04-20Fix bug in pdp updat Uisebdet1-1/+1
Fix the bug in the pdp update UI, one wrong "test" was preventing the user to tick a pdp group and ask for a new deployment Issue-ID: POLICY-3204 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I4718e96767212e38496312e71072c3621a443fd3
2021-04-16Fix Sonar bugs & sec issuessebdet1-11/+5
Fix all bugs & sec issues reported by Sonar Issue-ID: POLICY-3200 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ifb3d0d3602586b8defb0826e799ef0e24742235c
2021-04-14Add new component to support Tree viewsebdet3-132/+263
Add treeview component to show subset of policies by prefix (using .) Issue-ID: POLICY-3165 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I1365695f03086beda36a6bafddd9ad0f52944b6d
2021-04-07Modify the PolicyDeploymentEditor to support checkboxessebdet6-83/+164
Add code to the PolicyDeploymentEditor so that checkboxes are rendered. Issue-ID: POLICY-2931 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I3c933272419770595b706f6950f821220a76f789
2021-04-01Rework the backend to support PDP updatessebdet2-51/+117
Add new mem structure so that we do not need to parse the same Json for each policy/type + rework the camel flows so that we use the same code for loop and policies related calls Issue-ID: POLICY-2930 Issue-ID: POLICY-2931 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I3c30c4f87cf669b40511472d518fe5ccc89f56f0
2021-03-15Add refresh & update libssebdet19-533/+627
Add refresh features to the policy list when changing it + update materials-Ui + update Json-editor libs to solve big lag in UI + Remove useless link in the menu + fix issue with build due to mariadb not started yet Issue-ID: POLICY-3131 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9bcb9558f213731a4ea8e20e186fb91c9db1b6f3
2021-03-11Remove useless codesebdet8-728/+0
Remove useless code due to the changes done for the policy create feature. The tosca list can now be seen directly in the policy framework dialog Issue-ID: POLICY-3106 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I5fd61f28ed7071ceaf5729045983fc2d792bc9a4 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-03-11Introduce a new json editor componentsebdet8-177/+489
Add this a new react component so that the json editor can be called within the policies table + Add the tosca tab + Fix for Submit operation in clamp-api-v2.xml Issue-ID: POLICY-3106 Issue-ID: POLICY-3124 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I18ab3a6034cac719525774f11b2c17f0a14bc2aa Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-03-08Add "delete policy" feature in UIsebdet2-68/+115
Add delete policy functionality (call to backend) + insert Policies array in a tabs for future policy create operation + Ask column names during export of the test db Issue-ID: POLICY-2929 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I4108c9fa2b986cc5aff11b8710bc6ad722c52f46 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-02-22Rearrange the UI menusebdet2-29/+37
Rearrange the UI menu to improve the usability Issue-ID: POLICY-2925 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Icb56655b8b9300fa78d004a8fe88d64e54f42279 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-02-19Add code in UI to create new policy versionsebdet2-13/+105
Add code to call the policy create backend endpoint + alert box to show status of the creation + Fix backend + Issue-ID: POLICY-2928 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia8f2506ecc692ad68111ebe7a55a92579b951908
2021-02-18Introduce a new endpoint to create policysebdet2-11/+17
One first part of the update is to create a policy version from an existing one (this is similar as the create new policy). The policy-flow.xml has been refactored so that the same policy query is done for policies and loop related flows. A code has been added to remove fields from the UI that could be present (the PDP group info json enrichment) Issue-ID: POLICY-2926 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ia60c656a9b5100296042d3346d5c97c8dad5d041
2021-02-18Improve the policy list react componentsebdet1-12/+75
Add feature to the new policy list component, like grouping, sorting, CSV export, add delete/update button for future use Issue-ID: POLICY-2925 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I5f6141eca43d750a7e8e8edf9b59cc6b1e53f0bb
2021-02-17Modify Backend for listing the policiessebdet2-10/+64
Improve Ui components to list policies + changes an existing camel route to expose the policy json schema properly. New files added to emulator for testing + comments added. Now the Ui can show the policy config Issue-ID: POLICY-3061 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iacf9577a4ab2cc927d05ff267e7356d8410eb77a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-02-15Add New UI component for policies listsebdet11-670/+1211
Add new Ui components to list policies + the small refactoring of React Routes Issue-ID: POLICY-2925 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I784d7c144a3a3af98a9d62b5d40b5172dbdaed47 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2021-01-13Align Ui code for the policy movesebdet1-3/+3
Change package.json to update the clamp to policy-clamp Issue-ID: POLICY-2922 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I3cdc63c39a77cf4f8b2f285a68a3d2ac58e3f8b9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-07-30Clamp react ui to use url pathname dynamically instead of hardcoded prefix ↵Ashwin Sharma5-27/+27
for calling apis Issue-ID: CLAMP-914 Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com> Change-Id: I266aeafe9a543e95bcb96fcab6437227c148f8c4
2020-07-29change -1 to No Limit in View All Templates for # Instances AllowedTed Humphrey1-1/+7
Issue-ID: CLAMP-912 Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com> Change-Id: I3d7732ae741bd3ab0766fc022e8920af2a08e9af
2020-07-15block re-use of existing loop name; support derivation of SvgGeneratorTed Humphrey8-31/+160
added changes to LoopUI for global style and support of "delete" CL case Issue-ID: CLAMP-896 Change-Id: I97f603f38c277011835b8e206e5e05226a296606 Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
2020-07-15Merge "Support disabling of Loop Instance Properties "Save" button"Christophe Closset1-1/+2
2020-07-14Merge "Add many jests tests and implement block on element type and ↵Christophe Closset2-301/+599
subdictionary fields for subdictionary elements"
2020-07-14Merge "Add a customValidation method to PolicyModal"Christophe Closset2-19/+109
2020-07-14Support disabling of Loop Instance Properties "Save" buttonTed Humphrey1-1/+2
Issue-ID: CLAMP-895 Change-Id: I0e8fd70b750a59c14bb8e73407c49cc09f1d2657 Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
2020-07-14Add many jests tests and implement block on element type andTed Humphrey2-301/+599
subdictionary fields for subdictionary elements Issue-ID: CLAMP-849 Change-Id: Ic6c4c06ee3b41e2e4dfe1913b7ecf57a951d9993 Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
2020-07-08add framework for blocking user interactionTed Humphrey6-51/+188
this adds two new methods to LoopUI.js, setBusyLoading and clearBusyLoading, and one new state variable, busyLoadingCount, for supporting the blocking of user clicking during async back end calls that might take a bit of time to return. Blocking the user from clicking on a component box is implemented as an important first case use, as well as all PerformAction calls. Issue-ID: CLAMP-894 Change-Id: I28660afe26b6cc8184b9392aee42157f44601bf6 Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
2020-07-07Add a customValidation method to PolicyModalTed Humphrey2-19/+109
In order for derivations of PolicyModal to apply their own custom error checking, a new customValidation method is introduced into PolicyModal.js Issue-ID: CLAMP-863 Change-Id: If2ed515357741cab6f5b675b4b99423f9f3defed Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
2020-06-17Merge "Address Manage Dictionary issues"Sébastien Determe5-383/+890
2020-06-12Address Manage Dictionary issuesTed Humphrey5-383/+890
A variety of bugs are addressed. See JIRA. Issue-ID: CLAMP-849 Change-Id: I620c1ec774fdcec484f40fc638551960a98973c8 Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
2020-06-12Merge "Removal of Svg api"Eddy Hautot1-20/+0
2020-06-12Removal of Svg apisebdet1-20/+0
Removal of previous api not even presetn in backend Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I199b8aab1e3f333d31fed68415058419bf352f21
2020-06-04Remove logoutxuegao5-63/+0
Remove the logout option from UI. Issue-ID: CLAMP-860 Change-Id: I711b8a7eaf523195f0534044efd3dd74c3f1e0be Signed-off-by: xuegao <xg353y@intl.att.com>
2020-06-02Removal of useless codesebdet8-529/+0
Removal of previous modal not used anymore Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ica6a316369433714323bf0fddff60722281d0f5f
2020-05-20Create SVG in UIsebdet24-538/+460
Remove the SVG generation from the backend and put it in the UI Issue-ID: CLAMP-854 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Icfa9e107d83bb244ac3d87300d013555bfa0b037
2020-05-05Add unit testxuegao4-2/+380
Add unit tests to improve code coverage. Issue-ID: CLAMP-844 Change-Id: I7792212d476103086e063cf8fe4a9abed1294fd6 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-27Merge changes Id525d532,I91723b83Xue Gao1-5/+7
* changes: Fix bugs reported by sonar Fix bugs reported by sonar
2020-04-23Fix bugs reported by sonarsebdet1-5/+7
Fix bugs reported by sonar as critical, major, ... Issue-ID: CLAMP-841 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Id525d532d4f405216da44f95503e06e172458e70
2020-04-23Merge "Fix bug when adding op policy"Christophe Closset1-2/+2
2020-04-22Fix bug when adding op policysebdet1-2/+2
The fix to prevent multiple op policy modle to be inserted introduced another bug, this pr fixes it Issue-ID: CLAMP-828 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I90432688df48cbf2b456efae5e4191e2909077cc
2020-04-22Remove bugs and vulnerabilitiesxuegao1-8/+6
Remove bugs and vulnerabilities based on the sonar report Issue-ID: CLAMP-841 Change-Id: I49d0eeeedf69a0cbe3adf49cf115ab25aec7adfd Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-22Guard policy clean upxuegao8-28/+6
Remove guard policy related code, so that it will not be shown or created in the legacy policy UI. Issue-ID: CLAMP-825 Change-Id: I6c654fef9fd9df810fd48600c91ffef96db371cd Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-21Merge "Fix table pagination issue"Sébastien Determe1-3/+3
2020-04-21Fix table pagination issuesebdet1-3/+3
The pagination issue was due to a bug in the material-ui javascript lib Issue-ID: CLAMP-803 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9a9cf3ee373528a343f72b6c625326554ffd9965
2020-04-21Merge "Prevent adding same type of Op policy"Sébastien Determe2-12/+28