aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src
AgeCommit message (Collapse)AuthorFilesLines
2020-04-08Add spinner for Deploy actionxuegao2-2/+28
Add the spinning symbol while loop is deploying. Issue-ID: CLAMP-814 Change-Id: Id041622c300e18643e6fb725b3b5bd4ad8e9911e Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-06Update suc alert colorxuegao11-77/+147
Update the back groud color for succesful alert messages. Issue-ID: CLAMP-815 Change-Id: I97a621e31f2eb850eae30da3754afd3cd4ddb34a Signed-off-by: xuegao <xg353y@intl.att.com>
2020-04-03Move to console.info in testsJulienBe3-5/+5
to please Sonar Issue-ID: CLAMP-806 Signed-off-by: JulienBe <jb379x@att.com> Change-Id: Ia09874acfa7237f0a920f0327e6e2d76eb61fb2a
2020-04-02Merge "Fix bug in Create loop UI"Christophe Closset3-6/+6
2020-04-02Fix bug in Create loop UIsebdet3-6/+6
Fix the missing SVG representing the loop template in the Create loop dialog Issue-ID: CLAMP-811 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Id74855e2935130337bc852df79b3a9fed0d444ac
2020-04-01Remove unused objectsJulienBe3-3/+0
reported by Sonar Issue-ID: CLAMP-806 Signed-off-by: JulienBe <jb379x@att.com> Change-Id: Ia3d6939e1f946280551583a777032efe63e12e01
2020-04-01Update template menu UIjingjincs8-80/+143
Modify View Templates Menu to adopt changes from get template CL API Issue-ID: CLAMP-589 Change-Id: I54d059620e91d0da70e85c62dbb932ee58dd99ab Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-25Fix the loop deploy issuexuegao1-4/+4
Fix deploy UI issue and update the deployment payload. Issue-ID: CLAMP-791 Change-Id: I2e652bc321e27be7c21ae12c66e98880e2eed4b5 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-18Fix modify model UI bugxuegao1-2/+2
Fix the modify model UI bug, update the loopCache before closing the window. Issue-ID: CLAMP-783 Change-Id: Ide103f66b103ca2f51e8b7bbeda883db6626d027 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-17Merge "Update policy model UI"Sébastien Determe2-1/+193
2020-03-17Fix the policy synchrosebdet1-1/+1
Fix the periodic policy synchro issue due to wrong format expected. Issue-ID: CLAMP-784 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iaa815e92bb5c7d93f9db9c75f98e144b8d0f6b44
2020-03-17Update policy model UIxuegao2-1/+193
Update the PolicyModal UI, adding refresh button to update policy josn representation. Issue-ID: CLAMP-578 Change-Id: I8dc85fa1908fa735352b3877a845113d4995c3ec Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-16Rework the policy refreshsebdet4-18/+26
Rework the policy refresh for the new unique dialog policyModel Issue-ID: CLAMP-578 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Ie8c91223e92c1e344d7ead5784ffea33d4f6a00f
2020-03-16Fix the legacy Guard UIsebdet2-5/+18
Fix the legacy policies UI because guard content can't be set in PolicyModal component. It was due to Jsoneditor bugged parameter Issue-ID: CLAMP-780 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I8070d8c57e48c9a386e19475f1d377f91104aef1 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-03-16Fix the legacy policiessebdet1-2/+5
Fix the legacy policies not displayed in the UI properly due to the new PolicyModal dialog. Issue-ID: CLAMP-779 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I8070d8c57e43c9a386e09475f0d377f91104aef1
2020-03-13Merge "Fix the tosca converter"Xue Gao3-19/+16
2020-03-13Merge "Add remove op policy option"Sébastien Determe3-49/+225
2020-03-13Add remove op policy optionxuegao3-49/+225
Update the UI and backend code to be able to remove op policy for loop instances. Issue-ID: CLAMP-648 Change-Id: Ib3eab4977fe4f1b85e11f2373263197009bbc3e1 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-10Fix the tosca convertersebdet3-19/+16
Fix the new tosca converter to support metadata section Issue-ID: CLAMP-580 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9068bd9dc89851c630660a7f78fae1cb70bdc178
2020-03-10Merge "Rework tosca converter"Xue Gao5-74/+79
2020-03-09Rework tosca convertersebdet5-74/+79
New code to convert the Policy Tosca Yaml to Json Schema for the Clamp UI Issue-ID: CLAMP-647 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Id15ddedc1910f6a40bf6e407b34e343e00135571
2020-03-09Merge "Adding manage dictionary UI feature"Sébastien Determe9-17/+1180
2020-03-04Adding manage dictionary UI featuredrveerendra9-17/+1180
Adding manage dictionaries.js, its test file and respective changes in loopui, menu js files Issue-ID: CLAMP-589 Change-Id: Ib0440a7a966f3736682d2964e3329e08c91578d3 Signed-off-by: drveerendra <vrajasekharaiah@att.com>
2020-03-04Change json representation in op policysebdet1-5/+1
Change the json generation for an operational policy instance and update all emulator response for all policy types Issue-ID: CLAMP-653 Change-Id: I68525be3d5bfbf5dd7a4bcf6d59853df07fd4dd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-03-03Update UI to define Pdp Groupxuegao3-38/+171
Update teh UI, adding the possibilities to define Pdp Group and Pdp Subgroup info. Issue-ID: CLAMP-654 Change-Id: I3660c491d3a4c730a7414f9c6de9e3859f3c3601 Signed-off-by: xuegao <xg353y@intl.att.com>
2020-03-02Merge "Upload Tosca Model changes to remove policy model type parsing from ↵Sébastien Determe4-146/+5
UI. Dictionary API fix to allow bulk create or update of dictionary elements."
2020-02-27Fix bug in operational policysebdet2-0/+4
Fix bugs in camel routes and operational policy due to changes done for op policy insertion/removal Issue-ID: CLAMP-647 Change-Id: I68524bd3d5bfbf5dd7a4bcf6d59853df07fd4dd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-27Upload Tosca Model changes to remove policy model type parsing from UI.Ashwin Sharma4-146/+5
Dictionary API fix to allow bulk create or update of dictionary elements. Issue-ID: CLAMP-656 Change-Id: I6a0a36a6be40a098d917c45462872d31b7f47dd2 Signed-off-by: Ashwin Sharma <ashwin.shyam.sharma@att.com>
2020-02-27Fix the loopCachesebdet3-5/+5
Fix the loop cache so that the micro service configuration are well read. Issue-ID: CLAMP-653 Change-Id: I68524bd3d5bfbf5ca5a3acf5c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-27Add Create loop dialogsebdet9-8/+238
Add create loop dialog and backend part associated (this is based on this PR https://gerrit.onap.org/r/c/clamp/+/102156) Issue-ID: CLAMP-587 Change-Id: I58524bc2d5bfbf5ca5a3acf5c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-26Add new dialog for policysebdet9-18/+202
Add a new dialog component for tosca based policy, config/op should use that dialog now. Issue-ID: CLAMP-653 Change-Id: I57523bc2d4bfbf5ca5a3acf5c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-25Simplify the user managementsebdet4-91/+23
Simplify the user management and fix a bug in the server, crashing when no user are logged and an operation is requested, and also previous user still stored in the securitycontext when admin is logged (due to static variable) Issue-ID: CLAMP-651 Change-Id: I57523bc2c3afaf5ca5a3acf5c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-25Modify the Uisebdet16-603/+526
Modify the Ui to have a modify option in the menu so that the user can tune the loop instance Issue-ID: CLAMP-648 Change-Id: I57523bc1c3afaf5ca5a2acf5c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-17Fix the loop template viewsebdet8-100/+89
Fix the loop template view modal as the rest api has been changed + the database model as well Issue-ID: CLAMP-589 Change-Id: I57521bc1c3afaf4ca5a2acf4c59823df06fd4cd9 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2020-02-14Changes include Metadata support, Upload tosca policy model and Loop Templateash7426812-75/+527
CLAMP Metadata support to parse policy_model_type, acronym and clamp_possible_values from the Tosca Policy Model UI and Backend changes to support Loop Template Backend APIs for Dictionary referenced in the Tosca Policy Model. Upload Tosca Model UI changes to allow user to upload policy models. DB Schema changes for the Loop Element Model and updated schema for the Dictionary Added Jest test cases and snapshots checkstyle issues fix and Junits Issue-ID: CLAMP-580 Signed-off-by: ash74268 <ashwin.shyam.sharma@att.com> Change-Id: I57521bc1c3afaf4ca5a2acf4c59823df05fd4cd6 Signed-off-by: ash74268 <ashwin.shyam.sharma@att.com>
2020-02-04Changes for populating ReactJS component libraryTed Humphrey6-34/+64
Modification of Maven pom.xml to segregate creation of component library away from the basic CLAMP UI. New directory ui-react-lib is introduced and populated with just a few files to support the library creation. Introduction of OnapConstants.js provides single focus for defining constants shared across multiple components, resolving circular dependency between LoopUI.js and MenuBar.js around defaultLoopName. Modified LoopSvg.js to import withRoute from react-router-dom instead of react-router, which was causing problems in usage of completed component library. Issue-ID: CLAMP-586 Change-Id: I3054d5388b8aa7417fe7566c34279390d24fb80a Signed-off-by: Ted Humphrey <Thomas.Humphrey@att.com>
2020-01-13Update based on commentxuegao1-14/+22
Initialize the state attribute in the constructor. Issue-ID: CLAMP-569 Change-Id: Iabd739ce2c828d6e50720bfb2f29c365b8736bfa Signed-off-by: xuegao <xg353y@intl.att.com>
2020-01-07Add button to refresh op policy UIxuegao4-4/+64
Add the button on Operational Policy UI to refresh the json representation. Issue-ID: CLAMP-584 Change-Id: I3ae6ca0207bf9ca84f1e1dc6b3aed42b90298d8e Signed-off-by: xuegao <xg353y@intl.att.com>
2019-12-19Update op policy UIxuegao5-6/+38
Change the React UI accordingly so that we read OperationalPolicy Object Issue-ID: CLAMP-583 Change-Id: Ifd14a7eb115dc75acb35f1e7591ee383066a45f1 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-12-16Update deploymentParametersxuegao3-39/+73
Update deploymentParameters to allow a map of <msName, deploymentParams> instead of a single deploymentParam Issue-ID: CLAMP-569, CLAMP-570 Change-Id: I6abc4fe193157644bd6abe1c893a1416cadec988 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-11-20Merge "Adding View BP template Menu"Sébastien Determe14-163/+864
2019-11-18Adding View BP template Menudrveerendra14-163/+864
Adding View Blue Print templates option under Template menu. Adding few more test cases for ViewTosca Modals to cover the api calls. Issue-ID: CLAMP-544 Change-Id: Ibf881f46fd03e9149a88ccc211a996d99fd74748 Signed-off-by: drveerendra <vrajasekharaiah@att.com>
2019-11-18Merge "Create Service object"Sébastien Determe3-4/+4
2019-11-18Create Service objectxuegao3-4/+4
User Service object to store loop service and resource realted info. Issue-ID: CLAMP-545 Change-Id: I0df6f5d43d7e0575346e02a27bca5c0b5ecdb0a0 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-11-15Fix naming conventionsebdet4-9/+9
Fourth stage, fix naming convention in UI-react so that it's clearer Issue-ID: CLAMP-552 Change-Id: I5d082aec575bf0d71dd08065b9d2bf1bb869d7ca Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-11-15Fix naming conventionsebdet4-1/+1
Third stage, fix naming convention in UI-react so that it's clearer Issue-ID: CLAMP-552 Change-Id: I16bed5be640d87e3458cdbd7a83fdfe1e37a7b98 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-11-15Fix naming conventionsebdet4-15/+15
Second stage, fix naming convention in UI-react so that it's clearer Issue-ID: CLAMP-552 Change-Id: I1bfd48b55d9e1edf66c0369539718e086a778429 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-11-15Fix naming conventionsebdet5-18/+18
Fix naming convention in UI-react so that it's clearer Issue-ID: CLAMP-552 Change-Id: I758e0695f5b299514758c35aa699454b0c010974 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-11-06Upgrade the libssebdet10-68/+62
Upgrade the version of some libraries for NPM so for React UI Issue-ID: CLAMP-544 Change-Id: Ie5238c699a2b441892e6e12f3a6f17640d26b10c Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-11-04Adding viewToscamodels menudrveerendra9-22/+539
Updated package.json file to include material table and material UI react libraries. Added ViewToscalModals folder which contains js file, corresponding test file and its snapshots Issue-ID: CLAMP-544 Change-Id: I6b9328d6270fc32b41a152c91a9fd872f3524beb Signed-off-by: drveerendra <vrajasekharaiah@att.com>