aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react
AgeCommit message (Collapse)AuthorFilesLines
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-13Fix NPM loop issuesebdet1-2/+1
Fix the NPM loop issue that appears during the deploy maven phase Issue-ID: CLAMP-450 Change-Id: I4b1bb691f56d39792217f297dd0fb3e3c9397363 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-11-06Upgrade the libssebdet11-73/+67
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 menudrveerendra10-22/+543
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>
2019-10-25Merge "Reset npm param"Sébastien Determe1-1/+1
2019-10-25Reset npm paramsebdet1-1/+1
Reset NPM parameters so that LF team can test their changes Issue-ID: CLAMP-450 Change-Id: I6e4f3001a79509beafbfcb87fbbeb94822bf955a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-25Merge "Dump npm config"Sébastien Determe1-1/+1
2019-10-25Dump npm configsebdet1-1/+1
Dump the NPM config again to see what has put there Issue-ID: CLAMP-450 Change-Id: Iadb684ae5074528082f07616505070e8187e28a3 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-24Merge "Remove lib Remove lib for React not used right now, they will be ↵Eddy Hautot1-4/+1
re-injected later on"
2019-10-24Remove libsebdet1-4/+1
Remove lib for React not used right now, they will be re-injected later on Issue-ID: CLAMP-450 Change-Id: Icdc65259b636a8bce4602118bb0e2004f7a0d3c1 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-23Merge "Change the npm repo"Sébastien Determe1-1/+1
2019-10-23Change the npm reposebdet1-1/+1
Change the npm repo to the one specify in the npmrc Issue-ID: CLAMP-450 Change-Id: I7e416ca31f4beb06d2b0c3b3feff0dcb50c57279 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-23Merge "Try to dump config"Sébastien Determe1-1/+1
2019-10-23Try to dump configsebdet1-1/+1
Try to log config to investigate the npm publish problem Issue-ID: CLAMP-450 Change-Id: Ib63e77f97d77a2b1e887600cb83b85252a68a53f Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-23Merge "Change the repo to release"Sébastien Determe1-1/+1
2019-10-23Change the repo to releasesebdet1-1/+1
Change the npm repository to release as public seems not accepting the publish Issue-ID: CLAMP-450 Change-Id: I34eb4a3e507ecdf3083a5519fce335f9d2b2f6f7 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-23Merge "Change npm repo"Sébastien Determe1-1/+1
2019-10-23Change npm reposebdet1-1/+1
Change the npm repo so that it refers to the right one set by LF team Issue-ID: CLAMP-450 Change-Id: Ic5ee9623c2dfce1d829f43c50afb4d087e4158f0 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-23Merge "Update React libraries"Sébastien Determe1-2/+5
2019-10-23Update React librariessebdet1-2/+5
Update the libraries so that we can verify in nexus iq that it's ok + skip the npm buil for now Issue-ID: CLAMP-450 Change-Id: Id4f0cde100ed8e1d44763d7b70791a736c52a1d6 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-10-21Fix issuesxuegao1-4/+1
Fix issues from the previous commit. Issue-ID: CLAMP-512 Change-Id: I84b97e9c457f34771b4c8e723dbeeb7fdfc3a18f Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-21Add ui testsxuegao3-7/+136
Add more tests for react UI. Issue-ID: CLAMP-512 Change-Id: Iab51ff107688164dfa85341a3758b8799fe60ecd Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-17Add unit testsxuegao6-0/+599
Add unit tests for backend and frontend. Issue-ID: CLAMP-512 Change-Id: I713ba2dce3bd132e7e3e713f4e91e3662df7aafd Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-09Fix policy status issuexuegao1-1/+9
Change the initial status of policy from SENT_AND_DEPLOYED to NOT_SENT. Issue-ID: CLAMP-533 Change-Id: If4fa22fc2e3fb33500502bab41e49de9000dd7e7 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-07Fix Sonar vulnerabilitiesxuegao9-45/+56
Fix the vulnerabilities reported by Sonar. Issue-ID: CLAMP-530 Change-Id: I9f6a7fe9ce042045085c371ef3777188b11ffb36 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-07Fix loopUI issuexuegao1-1/+2
Fix the issue that loopName doesn't show correctly. Issue-ID: CLAMP-529 Change-Id: I2f7916eb300cecc311b0752df92926c747b8eb71 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-04Add react ui testxuegao8-27/+299
Add react ui test to improve code coverage. Issue-ID: CLAMP-509 Change-Id: Ic9c974a78ee453dddb8f985f3e9c9067f66e95d9 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-10-01Add react ui testsxuegao6-7/+253
Add more tests for react UI. Issue-ID: CLAMP-509 Change-Id: I58f6408bcd8667fa8b16b0b2f31f8287bdfac8c9 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-09-25Fix the ooperational policy ui issuexuegao1-2/+16
Update the css of the Jsoneditor tab component so that the operational policy UI will not have names overlapped. Issue-ID: CLAMP-511 Change-Id: I05806a398cd7f642290d7dbef1e58533a8bdac1c Signed-off-by: xuegao <xg353y@intl.att.com>
2019-09-24Add unit tests for UIxuegao16-3/+1373
Adding unit tests for React UI Issue-ID: CLAMP-509 Change-Id: If31bbea7972736aa190fd0fed19336a1aa382af8 Signed-off-by: xuegao <xg353y@intl.att.com>
2019-09-10Remove Dead codesebdet1-1/+1
Removal of useless code not used anymore in clamp because model are received from CSAR Issue-ID: CLAMP-487 Change-Id: Ifeb0411e7f7cd599cb5cf5d8f5b0e33d34bbf396 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-09-06Fix sonar issuessebdet9-26/+25
FIx some issues reported incorrectly by sonar for the new javascript code Issue-ID: CLAMP-425 Change-Id: I485b727c3a6007c0f0f9301fcda526b028d6251f Signed-off-by: sebdet <sebastien.determe@intl.att.com>