From cb00b707c047dd648e720b491cd7a7181f9c8b48 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Thu, 6 Jul 2017 14:21:23 +0200 Subject: [PATCH] SONAR-9403 Create form to add custom metric on project activity graph --- .../components/forms/AddMemberForm.js | 4 +- .../__snapshots__/AddMemberForm-test.js.snap | 1 + .../{StaticGraphs.js => GraphsHistory.js} | 16 +- ...cGraphsLegend.js => GraphsLegendStatic.js} | 2 +- .../projectActivity/components/GraphsZoom.js | 60 ++++--- .../components/ProjectActivityApp.js | 1 + .../components/ProjectActivityGraphs.js | 14 +- .../components/ProjectActivityGraphsHeader.js | 22 ++- ...icGraphs-test.js => GraphsHistory-test.js} | 12 +- ...end-test.js => GraphsLegendStatic-test.js} | 4 +- ...est.js.snap => GraphsHistory-test.js.snap} | 2 +- ...s.snap => GraphsLegendStatic-test.js.snap} | 0 .../ProjectActivityApp-test.js.snap | 9 ++ .../ProjectActivityGraphs-test.js.snap | 2 +- .../components/forms/AddGraphMetric.js | 147 ++++++++++++++++++ .../src/main/js/apps/projectActivity/types.js | 2 + .../src/main/js/apps/projectActivity/utils.js | 5 + .../users/components/UsersSelectSearch.css | 13 -- .../users/components/UsersSelectSearch.js | 1 - .../components/UsersSelectSearchOption.js | 8 +- .../UsersSelectSearchOption-test.js.snap | 64 ++++---- .../js/components/charts/AdvancedTimeline.js | 5 +- .../main/less/components/react-select.less | 23 +++ .../resources/org/sonar/l10n/core.properties | 3 + 24 files changed, 303 insertions(+), 117 deletions(-) rename server/sonar-web/src/main/js/apps/projectActivity/components/{StaticGraphs.js => GraphsHistory.js} (93%) rename server/sonar-web/src/main/js/apps/projectActivity/components/{StaticGraphsLegend.js => GraphsLegendStatic.js} (95%) rename server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/{StaticGraphs-test.js => GraphsHistory-test.js} (83%) rename server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/{StaticGraphsLegend-test.js => GraphsLegendStatic-test.js} (90%) rename server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/{StaticGraphs-test.js.snap => GraphsHistory-test.js.snap} (98%) rename server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/{StaticGraphsLegend-test.js.snap => GraphsLegendStatic-test.js.snap} (100%) create mode 100644 server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddGraphMetric.js delete mode 100644 server/sonar-web/src/main/js/apps/users/components/UsersSelectSearch.css diff --git a/server/sonar-web/src/main/js/apps/organizations/components/forms/AddMemberForm.js b/server/sonar-web/src/main/js/apps/organizations/components/forms/AddMemberForm.js index 4502597be29..e59f7137a8b 100644 --- a/server/sonar-web/src/main/js/apps/organizations/components/forms/AddMemberForm.js +++ b/server/sonar-web/src/main/js/apps/organizations/components/forms/AddMemberForm.js @@ -98,7 +98,9 @@ export default class AddMemberForm extends React.PureComponent {