Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Commit cdad39c

Browse files
jaywalker21snyk-botanandtiwarypalbizuPatricio Albizu
authored
Merge the latest changes from upstream (#22)
* fix: upgrade @apollo/client from 3.4.13 to 3.4.15 (hypertrace#1199) Snyk has created this PR to upgrade @apollo/client from 3.4.13 to 3.4.15. See this package in npm: https://www.npmjs.com/package/@apollo/client See this project in Snyk: https://app.snyk.io/org/surajpuvvada/project/553e7174-0e22-4c7f-aa2c-12ae5f5768b5?utm_source=github&utm_medium=referral&page=upgrade-pr * feat: adding a custom control template option for table (hypertrace#1189) * feat: adding a custom control template option for table * refactor: adding interaction controls * refactor: updating tests * feat: Adding count reference to Gauge List (hypertrace#1203) Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local> * enable rootless image (hypertrace#1202) * feat: add regex operator to filter bar (hypertrace#1205) * feat: add regex operator to filter bar * test: update tests * chore:(deps-dev): bump @types/webpack-env from 1.16.2 to 1.16.3 (hypertrace#1208) * chore:(deps-dev): bump @compodoc/compodoc from 1.1.14 to 1.1.15 (hypertrace#1210) * chore:(deps): bump core-js from 3.18.1 to 3.19.0 (hypertrace#1213) * chore:(deps-dev): bump jest-config from 27.2.0 to 27.3.1 (hypertrace#1212) * chore:(deps): bump @angular/flex-layout (hypertrace#1215) * chore:(deps-dev): bump ng-packagr from 12.2.1 to 12.2.5 (hypertrace#1214) * table widget browser storage (hypertrace#1206) * feat: clean up table widget preferences storage * feat: add view toggle preference * feat: add checkbox preferences * feat: add persistance for select filters * feat: fix publishSelectValues call * style: prettier * style: linting * feat: custom messages for load async (hypertrace#1217) * chore:(deps): bump @apollo/client from 3.4.15 to 3.4.16 (hypertrace#1223) * chore:(deps-dev): bump @ngneat/spectator from 8.1.0 to 8.3.1 (hypertrace#1225) * fix: some very minor clean up (hypertrace#1226) * fix: some very minor clean up * style: prettier * fix: incorrect focus on editing filter chips (hypertrace#1227) * Fix multi select view update (hypertrace#1228) * fix: multiselect updating trigger label * style: prettier * feat: remove subscription * test: fix test * feat: table prefs now use sessionStorage instead of localStorage (hypertrace#1231) * feat: table prefs now use sessionStorage instead of localStorage * style: prettier * style: lint imports * feat(span-detail): cookies as first class fields (hypertrace#1230) * feat(span-detail): cookies as first class fields * title instead of mode * prettier * fix: table control filter dropdowns now handle empty result sets (hypertrace#1236) * fix: allow entity datasources to allow toggling includeInactive query property (hypertrace#1237) * chore:(deps): bump graphql-tag from 2.12.5 to 2.12.6 (hypertrace#1243) * Allow configurable select or multiselect table controls (hypertrace#1238) * feat: add ability to choose regular or multi select table controls * style: prettier * test: fix * feat: hide header divider line when in detail list mode (hypertrace#1246) * feat: add additional specification array to entity spec (hypertrace#1247) * feat: add additional specification array to entity spec * refactor: fixing test * refactor: fix test * refactor: fix test * refactor: fix test * refactor: fix test again * fix: make explorer content scrollable (hypertrace#1248) * feat: import filter url service (hypertrace#1251) Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local> * fix: make divider 1px high (hypertrace#1253) * refactor: breadcrumb to support additional specifications (hypertrace#1254) * refactor: breadcrumb to support additional specifications * refactor: fixing lint * refactor: fix test * refactor: addressing review comments * refactor: fixing test * refactor: fixing lint * refactor: addressing review comments * refactor: fixing test * refactor: update breadcrumb and fix tests * feat: persist explorer state in url (hypertrace#1257) * chore:(deps): bump core-js from 3.19.0 to 3.19.1 (hypertrace#1261) * chore:(deps-dev): bump @commitlint/config-conventional (hypertrace#1260) * chore:(deps): bump mixpanel-browser from 2.41.0 to 2.42.0 (hypertrace#1259) * chore:(deps): bump @apollo/client from 3.4.16 to 3.4.17 (hypertrace#1263) * feat: Adding properties to Title Content (hypertrace#1235) * feat: Adding properties to Title Content * feat: Fixing comments * feat: fixing comments Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local> * fix: common project should not depend on components project (hypertrace#1264) * fix: common project should not depend on components project * fix: upgrade graphql from 15.6.1 to 15.7.0 (hypertrace#1266) Snyk has created this PR to upgrade graphql from 15.6.1 to 15.7.0. See this package in npm: https://www.npmjs.com/package/graphql See this project in Snyk: https://app.snyk.io/org/surajpuvvada/project/553e7174-0e22-4c7f-aa2c-12ae5f5768b5?utm_source=github&utm_medium=referral&page=upgrade-pr * feat: adding loading config functionality to table view toggle widget (hypertrace#1267) * Table use local storage for columns (hypertrace#1265) * feat: use local storage to persist table columns * fix: typo * style: lint * style: prettier * fix: avoid dupe columns, clear group name from url on none (hypertrace#1269) * feat: util methods to manipulate graphqlTimeRange (hypertrace#1271) * feat: util methods to manipulate graphqlTimeRange * chore:(deps-dev): bump husky from 7.0.1 to 7.0.4 (hypertrace#1276) * chore:(deps-dev): bump @commitlint/cli from 13.1.0 to 15.0.0 (hypertrace#1274) * chore:(deps-dev): bump ts-node from 10.2.1 to 10.4.0 (hypertrace#1277) * fix: upgrade graphql from 15.7.0 to 15.7.2 (hypertrace#1280) Snyk has created this PR to upgrade graphql from 15.7.0 to 15.7.2. See this package in npm: https://www.npmjs.com/package/graphql See this project in Snyk: https://app.snyk.io/org/saxenakshitiz/project/f89d1009-f321-4082-a83b-34ae0ca070eb?utm_source=github&utm_medium=referral&page=upgrade-pr * fix: new style for title in titled content (hypertrace#1283) * fix: new style for title in titled content * fix: emit correct shape for single select change (hypertrace#1284) * feat: change default visualization for spans to count (hypertrace#1272) * feat: add styling to table filters with applied values (hypertrace#1285) * fix: support for custom row size for table (hypertrace#1286) * chore:(deps-dev): bump @types/node from 16.7.10 to 16.11.10 (hypertrace#1289) * chore:(deps-dev): bump jest-config from 27.3.1 to 27.4.0 (hypertrace#1292) * chore:(deps): bump @apollo/client from 3.4.17 to 3.5.5 (hypertrace#1291) * Form changes (hypertrace#1281) * refactor: forms wip * refactor: added more changes for supporting forms * refactor: adding more changes * refactor: self review * feat: persisted expand collapse for explorer panels (hypertrace#1295) * feat: toggle able legend for cartesian chart (hypertrace#1270) * feat: table filters now always show their placeholder even when a selection is made (hypertrace#1296) * feat: add row highlighting to table selections (hypertrace#1300) * feat: add row highlighting to table selections * test: fix * feat: support styles for text-widget primary text (hypertrace#1301) * chore:(deps-dev): bump jest-config from 27.4.0 to 27.4.3 (hypertrace#1304) * chore:(deps): bump core-js from 3.19.1 to 3.19.3 (hypertrace#1307) * chore:(deps-dev): bump @commitlint/config-conventional (hypertrace#1306) * feat: exporting field and active tab label change (hypertrace#1309) * feat: exporting field and active tab label change * refactor: fixing lint errors * feat: support for custom row height in table widget (hypertrace#1310) * feat: list view changes (hypertrace#1302) * feat: list view changes * refactor: fix formatting * refactor: fixing test * fix: make border configurable in form field (hypertrace#1311) * fix: minor style changes to list view and multi select (hypertrace#1312) * refactor: making radio forms compatible with forms (hypertrace#1314) * Fix date picker timezone issue (hypertrace#1313) * fix(date-picker): date changes when time selected Issue caused by the timezone offset. * test(date-picker): add more test cases * refactor(date-picker): cleaned up code for constructing date * fix(date-picker): linting issues * refactor(date-picker): use UTC time for datepicker * chore:(deps-dev): bump jest-config from 27.4.3 to 27.4.4 (hypertrace#1317) * chore:(deps-dev): bump pretty-quick from 3.1.1 to 3.1.2 (hypertrace#1320) * chore:(deps-dev): bump @types/node from 16.11.10 to 16.11.12 (hypertrace#1319) * chore:(deps-dev): bump @ngneat/spectator from 8.3.1 to 8.3.2 (hypertrace#1318) * fix: setting max-height for multi select options container (hypertrace#1315) * fix: pull applied filter logic into table controls so consumer doesn't have to manage (hypertrace#1323) * feat: adding color picker component (hypertrace#1325) * feat: adding color picker component * refactor: downgrading version and fixing tests * feat: Combo box forms (hypertrace#1327) * fix: adding forms support to combo box * refactor: minor style change to color picker * refactor: fix lint issues * feat: grouped cartesian legend (hypertrace#1288) * chore:(deps-dev): bump @types/d3-scale from 2.2.4 to 2.2.6 (hypertrace#1332) * chore:(deps-dev): bump @types/node from 16.11.12 to 17.0.1 (hypertrace#1331) * chore:(deps): bump graphql from 15.7.2 to 15.8.0 (hypertrace#1328) * chore:(deps-dev): bump ng-mocks from 12.5.0 to 12.5.1 (hypertrace#1329) * fix: grouped legend bug (hypertrace#1334) * feat: disabled state for input component reactive forms (hypertrace#1333) * refactor: minor style change support for combo box (hypertrace#1336) * chore:(deps-dev): bump jest-html-reporter from 3.4.1 to 3.4.2 (hypertrace#1338) * chore:(deps): bump core-js from 3.19.3 to 3.20.1 (hypertrace#1339) * chore:(deps): bump mixpanel-browser from 2.42.0 to 2.42.1 (hypertrace#1340) * chore:(deps-dev): bump @types/node from 17.0.1 to 17.0.5 (hypertrace#1342) * chore:(deps-dev): bump @commitlint/cli from 15.0.0 to 16.0.1 (hypertrace#1345) * chore:(deps-dev): bump @types/jest from 26.0.24 to 27.4.0 (hypertrace#1346) * chore:(deps-dev): bump @compodoc/compodoc from 1.1.15 to 1.1.16 (hypertrace#1348) * fix: corrected nested styling for `titled-content` (hypertrace#1350) # Issue Reference below hypertrace#1298 * fix: upgrade @apollo/client from 3.4.13 to 3.4.15 (hypertrace#1199) Snyk has created this PR to upgrade @apollo/client from 3.4.13 to 3.4.15. See this package in npm: https://www.npmjs.com/package/@apollo/client See this project in Snyk: https://app.snyk.io/org/surajpuvvada/project/553e7174-0e22-4c7f-aa2c-12ae5f5768b5?utm_source=github&utm_medium=referral&page=upgrade-pr * feat: adding a custom control template option for table (hypertrace#1189) * feat: adding a custom control template option for table * refactor: adding interaction controls * refactor: updating tests * feat: Adding count reference to Gauge List (hypertrace#1203) Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local> * enable rootless image (hypertrace#1202) * feat: add regex operator to filter bar (hypertrace#1205) * feat: add regex operator to filter bar * test: update tests * chore:(deps-dev): bump @types/webpack-env from 1.16.2 to 1.16.3 (hypertrace#1208) * chore:(deps-dev): bump @compodoc/compodoc from 1.1.14 to 1.1.15 (hypertrace#1210) * chore:(deps): bump core-js from 3.18.1 to 3.19.0 (hypertrace#1213) * chore:(deps-dev): bump jest-config from 27.2.0 to 27.3.1 (hypertrace#1212) * chore:(deps): bump @angular/flex-layout (hypertrace#1215) * chore:(deps-dev): bump ng-packagr from 12.2.1 to 12.2.5 (hypertrace#1214) * table widget browser storage (hypertrace#1206) * feat: clean up table widget preferences storage * feat: add view toggle preference * feat: add checkbox preferences * feat: add persistance for select filters * feat: fix publishSelectValues call * style: prettier * style: linting * feat: custom messages for load async (hypertrace#1217) * chore:(deps): bump @apollo/client from 3.4.15 to 3.4.16 (hypertrace#1223) * chore:(deps-dev): bump @ngneat/spectator from 8.1.0 to 8.3.1 (hypertrace#1225) * fix: some very minor clean up (hypertrace#1226) * fix: some very minor clean up * style: prettier * fix: incorrect focus on editing filter chips (hypertrace#1227) * Fix multi select view update (hypertrace#1228) * fix: multiselect updating trigger label * style: prettier * feat: remove subscription * test: fix test * feat: table prefs now use sessionStorage instead of localStorage (hypertrace#1231) * feat: table prefs now use sessionStorage instead of localStorage * style: prettier * style: lint imports * feat(span-detail): cookies as first class fields (hypertrace#1230) * feat(span-detail): cookies as first class fields * title instead of mode * prettier * fix: table control filter dropdowns now handle empty result sets (hypertrace#1236) * fix: allow entity datasources to allow toggling includeInactive query property (hypertrace#1237) * chore:(deps): bump graphql-tag from 2.12.5 to 2.12.6 (hypertrace#1243) * Allow configurable select or multiselect table controls (hypertrace#1238) * feat: add ability to choose regular or multi select table controls * style: prettier * test: fix * feat: hide header divider line when in detail list mode (hypertrace#1246) * feat: add additional specification array to entity spec (hypertrace#1247) * feat: add additional specification array to entity spec * refactor: fixing test * refactor: fix test * refactor: fix test * refactor: fix test * refactor: fix test again * fix: make explorer content scrollable (hypertrace#1248) * feat: import filter url service (hypertrace#1251) Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local> * fix: make divider 1px high (hypertrace#1253) * refactor: breadcrumb to support additional specifications (hypertrace#1254) * refactor: breadcrumb to support additional specifications * refactor: fixing lint * refactor: fix test * refactor: addressing review comments * refactor: fixing test * refactor: fixing lint * refactor: addressing review comments * refactor: fixing test * refactor: update breadcrumb and fix tests * feat: persist explorer state in url (hypertrace#1257) * chore:(deps): bump core-js from 3.19.0 to 3.19.1 (hypertrace#1261) * chore:(deps-dev): bump @commitlint/config-conventional (hypertrace#1260) * chore:(deps): bump mixpanel-browser from 2.41.0 to 2.42.0 (hypertrace#1259) * chore:(deps): bump @apollo/client from 3.4.16 to 3.4.17 (hypertrace#1263) * feat: Adding properties to Title Content (hypertrace#1235) * feat: Adding properties to Title Content * feat: Fixing comments * feat: fixing comments Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local> * fix: common project should not depend on components project (hypertrace#1264) * fix: common project should not depend on components project * fix: upgrade graphql from 15.6.1 to 15.7.0 (hypertrace#1266) Snyk has created this PR to upgrade graphql from 15.6.1 to 15.7.0. See this package in npm: https://www.npmjs.com/package/graphql See this project in Snyk: https://app.snyk.io/org/surajpuvvada/project/553e7174-0e22-4c7f-aa2c-12ae5f5768b5?utm_source=github&utm_medium=referral&page=upgrade-pr * feat: adding loading config functionality to table view toggle widget (hypertrace#1267) * Table use local storage for columns (hypertrace#1265) * feat: use local storage to persist table columns * fix: typo * style: lint * style: prettier * fix: avoid dupe columns, clear group name from url on none (hypertrace#1269) * feat: util methods to manipulate graphqlTimeRange (hypertrace#1271) * feat: util methods to manipulate graphqlTimeRange * chore:(deps-dev): bump husky from 7.0.1 to 7.0.4 (hypertrace#1276) * chore:(deps-dev): bump @commitlint/cli from 13.1.0 to 15.0.0 (hypertrace#1274) * chore:(deps-dev): bump ts-node from 10.2.1 to 10.4.0 (hypertrace#1277) * fix: upgrade graphql from 15.7.0 to 15.7.2 (hypertrace#1280) Snyk has created this PR to upgrade graphql from 15.7.0 to 15.7.2. See this package in npm: https://www.npmjs.com/package/graphql See this project in Snyk: https://app.snyk.io/org/saxenakshitiz/project/f89d1009-f321-4082-a83b-34ae0ca070eb?utm_source=github&utm_medium=referral&page=upgrade-pr * fix: new style for title in titled content (hypertrace#1283) * fix: new style for title in titled content * fix: emit correct shape for single select change (hypertrace#1284) * feat: change default visualization for spans to count (hypertrace#1272) * feat: add styling to table filters with applied values (hypertrace#1285) * fix: support for custom row size for table (hypertrace#1286) * chore:(deps-dev): bump @types/node from 16.7.10 to 16.11.10 (hypertrace#1289) * chore:(deps-dev): bump jest-config from 27.3.1 to 27.4.0 (hypertrace#1292) * chore:(deps): bump @apollo/client from 3.4.17 to 3.5.5 (hypertrace#1291) * Form changes (hypertrace#1281) * refactor: forms wip * refactor: added more changes for supporting forms * refactor: adding more changes * refactor: self review * feat: persisted expand collapse for explorer panels (hypertrace#1295) * feat: toggle able legend for cartesian chart (hypertrace#1270) * feat: table filters now always show their placeholder even when a selection is made (hypertrace#1296) * feat: add row highlighting to table selections (hypertrace#1300) * feat: add row highlighting to table selections * test: fix * feat: support styles for text-widget primary text (hypertrace#1301) * chore:(deps-dev): bump jest-config from 27.4.0 to 27.4.3 (hypertrace#1304) * chore:(deps): bump core-js from 3.19.1 to 3.19.3 (hypertrace#1307) * chore:(deps-dev): bump @commitlint/config-conventional (hypertrace#1306) * feat: exporting field and active tab label change (hypertrace#1309) * feat: exporting field and active tab label change * refactor: fixing lint errors * feat: support for custom row height in table widget (hypertrace#1310) * feat: list view changes (hypertrace#1302) * feat: list view changes * refactor: fix formatting * refactor: fixing test * fix: make border configurable in form field (hypertrace#1311) * fix: minor style changes to list view and multi select (hypertrace#1312) * refactor: making radio forms compatible with forms (hypertrace#1314) * Fix date picker timezone issue (hypertrace#1313) * fix(date-picker): date changes when time selected Issue caused by the timezone offset. * test(date-picker): add more test cases * refactor(date-picker): cleaned up code for constructing date * fix(date-picker): linting issues * refactor(date-picker): use UTC time for datepicker * chore:(deps-dev): bump jest-config from 27.4.3 to 27.4.4 (hypertrace#1317) * chore:(deps-dev): bump pretty-quick from 3.1.1 to 3.1.2 (hypertrace#1320) * chore:(deps-dev): bump @types/node from 16.11.10 to 16.11.12 (hypertrace#1319) * chore:(deps-dev): bump @ngneat/spectator from 8.3.1 to 8.3.2 (hypertrace#1318) * fix: setting max-height for multi select options container (hypertrace#1315) * fix: pull applied filter logic into table controls so consumer doesn't have to manage (hypertrace#1323) * feat: adding color picker component (hypertrace#1325) * feat: adding color picker component * refactor: downgrading version and fixing tests * feat: Combo box forms (hypertrace#1327) * fix: adding forms support to combo box * refactor: minor style change to color picker * refactor: fix lint issues * feat: grouped cartesian legend (hypertrace#1288) * chore:(deps-dev): bump @types/d3-scale from 2.2.4 to 2.2.6 (hypertrace#1332) * chore:(deps-dev): bump @types/node from 16.11.12 to 17.0.1 (hypertrace#1331) * chore:(deps): bump graphql from 15.7.2 to 15.8.0 (hypertrace#1328) * chore:(deps-dev): bump ng-mocks from 12.5.0 to 12.5.1 (hypertrace#1329) * fix: grouped legend bug (hypertrace#1334) * feat: disabled state for input component reactive forms (hypertrace#1333) * refactor: minor style change support for combo box (hypertrace#1336) * chore:(deps-dev): bump jest-html-reporter from 3.4.1 to 3.4.2 (hypertrace#1338) * chore:(deps): bump core-js from 3.19.3 to 3.20.1 (hypertrace#1339) * chore:(deps): bump mixpanel-browser from 2.42.0 to 2.42.1 (hypertrace#1340) * chore:(deps-dev): bump @types/node from 17.0.1 to 17.0.5 (hypertrace#1342) * chore:(deps-dev): bump @commitlint/cli from 15.0.0 to 16.0.1 (hypertrace#1345) * chore:(deps-dev): bump @types/jest from 26.0.24 to 27.4.0 (hypertrace#1346) * chore:(deps-dev): bump @compodoc/compodoc from 1.1.15 to 1.1.16 (hypertrace#1348) * fix: corrected nested styling for `titled-content` (hypertrace#1350) # Issue Reference below hypertrace#1298 * feat: toISOString Time function (hypertrace#1351) * feat: toISOString Time function * feat: adding uts Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local> * Adding inputs to time picker (hypertrace#1343) * feat: disabled and display Mode input in Time Picker * feat: adding size inputs * feat: adding transparent background to select * feat: fixing comments * feat: fixing comments * feat: fixing comments Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local> * fix: prevent empty like clause for search parameters (hypertrace#1353) Reference: hypertrace#1344 Do not send empty search parameters, rather only send them when non empty values are present Co-authored-by: Snyk bot <snyk-bot@snyk.io> Co-authored-by: Anand Tiwary <52081890+anandtiwary@users.noreply.github.com> Co-authored-by: palbizu <79482271+palbizu@users.noreply.github.com> Co-authored-by: Patricio Albizu <patricioalbizu@Patricios-MacBook-Pro.local> Co-authored-by: Tomas Satka <61469727+tomassatka@users.noreply.github.com> Co-authored-by: Aaron Steinfeld <45047841+aaron-steinfeld@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jake <45181984+jake-bassett@users.noreply.github.com> Co-authored-by: Sandeep Sharma <78212931+itssharmasandeep@users.noreply.github.com> Co-authored-by: SJ <48863181+skjindal93@users.noreply.github.com> Co-authored-by: Arjunlal B <63222211+arjunlalb@users.noreply.github.com> Co-authored-by: Adithya Sreyaj <adi.sreyaj@gmail.com>
1 parent be01ec8 commit cdad39c

File tree

135 files changed

+7530
-4384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+7530
-4384
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM nginx:1.21-alpine
22
COPY dist/hypertrace-ui /usr/share/nginx/html
33
COPY conf/default.conf /etc/nginx/conf.d/default.conf
4+
RUN chmod a+w /var/cache/nginx /var/run
45
EXPOSE 2020
56
HEALTHCHECK --interval=1s --retries=5 --timeout=1s CMD wget -qO- http://localhost:2020/graphql?query={__schema{queryType{name}}} &> /dev/null || exit 1

package-lock.json

Lines changed: 4372 additions & 3516 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"build:components": "ng build components",
1616
"build:dashboards": "ng build dashboards",
1717
"build:ci": "node --max_old_space_size=3584 node_modules/@angular/cli/bin/ng build --configuration production --no-progress",
18-
"test": "ng test hypertrace-ui --cache",
18+
"test": "ng test hypertrace-ui --cache --maxWorkers=2",
1919
"lint": "ng lint hypertrace-ui",
2020
"lint:fix": "ng lint --fix hypertrace-ui",
2121
"prettier:check": "prettier --check '**'",
@@ -30,20 +30,20 @@
3030
"@angular/common": "^12.2.1",
3131
"@angular/compiler": "^12.2.1",
3232
"@angular/core": "^12.2.1",
33-
"@angular/flex-layout": "^12.0.0-beta.34",
33+
"@angular/flex-layout": "^12.0.0-beta.35",
3434
"@angular/forms": "^12.2.1",
3535
"@angular/material": "^12.2.1",
3636
"@angular/platform-browser": "^12.2.1",
3737
"@angular/platform-browser-dynamic": "^12.2.1",
3838
"@angular/router": "^12.2.1",
39-
"@apollo/client": "^3.4.13",
39+
"@apollo/client": "^3.5.5",
4040
"@fullstory/browser": "^1.4.9",
4141
"@hypertrace/hyperdash": "^1.2.1",
4242
"@hypertrace/hyperdash-angular": "^2.6.0",
4343
"@types/d3-hierarchy": "^2.0.2",
4444
"@types/d3-transition": "1.1.5",
4545
"apollo-angular": "^2.6.0",
46-
"core-js": "^3.18.1",
46+
"core-js": "^3.20.1",
4747
"d3-array": "^2.12.0",
4848
"d3-axis": "^2.1.0",
4949
"d3-brush": "^1.1.6",
@@ -59,11 +59,12 @@
5959
"d3-shape": "^1.3.5",
6060
"d3-transition": "^1.2.0",
6161
"d3-zoom": "^1.8.3",
62-
"graphql": "^15.6.0",
63-
"graphql-tag": "^2.12.5",
62+
"graphql": "^15.8.0",
63+
"graphql-tag": "^2.12.6",
6464
"iso8601-duration": "^1.3.0",
6565
"lodash-es": "^4.17.21",
66-
"mixpanel-browser": "^2.41.0",
66+
"mixpanel-browser": "^2.42.1",
67+
"ngx-color": "7.0.0",
6768
"rxjs": "~6.6.7",
6869
"tslib": "^2.3.1",
6970
"uuid": "^8.3.2",
@@ -75,42 +76,42 @@
7576
"@angular/cli": "12.2.1",
7677
"@angular/compiler-cli": "~12.2.1",
7778
"@angular/language-service": "~12.2.1",
78-
"@commitlint/cli": "^13.1.0",
79-
"@commitlint/config-conventional": "^13.1.0",
80-
"@compodoc/compodoc": "^1.1.14",
81-
"@ngneat/spectator": "^8.1.0",
79+
"@commitlint/cli": "^16.0.1",
80+
"@commitlint/config-conventional": "^15.0.0",
81+
"@compodoc/compodoc": "^1.1.16",
82+
"@ngneat/spectator": "^8.3.2",
8283
"@types/d3-array": "^2.9.0",
8384
"@types/d3-axis": "^2.0.0",
8485
"@types/d3-brush": "^2.1.0",
8586
"@types/d3-drag": "^1.2.3",
8687
"@types/d3-force": "^2.1.0",
8788
"@types/d3-path": "^2.0.0",
8889
"@types/d3-quadtree": "^1.0.7",
89-
"@types/d3-scale": "^2.1.1",
90+
"@types/d3-scale": "^2.2.6",
9091
"@types/d3-selection": "^1.4.2",
9192
"@types/d3-shape": "^2.1.0",
9293
"@types/d3-zoom": "^1.7.5",
93-
"@types/jest": "^26.0.24",
94+
"@types/jest": "^27.4.0",
9495
"@types/lodash-es": "^4.17.5",
9596
"@types/mixpanel-browser": "^2.35.7",
96-
"@types/node": "^16.7.10",
97+
"@types/node": "^17.0.5",
9798
"@types/uuid": "^8.3.1",
98-
"@types/webpack-env": "^1.16.2",
99+
"@types/webpack-env": "^1.16.3",
99100
"codelyzer": "^6.0.2",
100101
"commitizen": "^4.2.4",
101102
"cz-conventional-changelog": "^3.3.0",
102-
"husky": "^7.0.0",
103+
"husky": "^7.0.4",
103104
"jest": "^26.6.3",
104-
"jest-config": "^27.2.0",
105-
"jest-html-reporter": "^3.4.1",
105+
"jest-config": "^27.4.4",
106+
"jest-html-reporter": "^3.4.2",
106107
"jest-junit": "^13.0.0",
107108
"jest-preset-angular": "^8.4.0",
108109
"lodash": "^4.17.21",
109-
"ng-mocks": "^12.5.0",
110-
"ng-packagr": "^12.2.1",
110+
"ng-mocks": "^12.5.1",
111+
"ng-packagr": "^12.2.5",
111112
"prettier": "^2.2.1",
112-
"pretty-quick": "^3.1.1",
113-
"ts-node": "~10.2.1",
113+
"pretty-quick": "^3.1.2",
114+
"ts-node": "~10.4.0",
114115
"tslint": "~6.1.3",
115116
"tslint-config-prettier": "^1.18.0",
116117
"typescript": "~4.3.5",
30.2 KB
Loading
72.7 KB
Loading
7.73 KB
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const enum ImagesAssetPath {
2+
ErrorPage = 'assets/images/error-page.svg',
3+
LoaderSpinner = 'assets/images/loader-spinner.gif',
4+
LoaderPage = 'assets/images/loader-page.gif',
5+
LoaderExpandableRow = 'assets/images/loader-expandable-row.gif'
6+
}

projects/assets-library/src/public-api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export * from './icons/icon-type';
66
export * from './icons/icon-registry.service';
77
export * from './icons/icon-library.module';
88
export * from './icons/testing/icon-library-testing.module';
9+
export * from './images/image-type';

projects/common/src/navigation/navigation.service.test.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import { Location } from '@angular/common';
22
import { Title } from '@angular/platform-browser';
33
import { Router, UrlSegment } from '@angular/router';
44
import { RouterTestingModule } from '@angular/router/testing';
5-
import { IconType } from '@hypertrace/assets-library';
65
import { APP_TITLE } from '@hypertrace/common';
7-
import { NavItemType } from '@hypertrace/components';
86
import { patchRouterNavigateForTest } from '@hypertrace/test-utils';
97
import { createServiceFactory, mockProvider, SpectatorService } from '@ngneat/spectator/jest';
108
import {
@@ -298,36 +296,6 @@ describe('Navigation Service', () => {
298296
}
299297
});
300298

301-
test('decorating navItem with features work as expected', () => {
302-
expect(
303-
spectator.service.decorateNavItem(
304-
{
305-
type: NavItemType.Header,
306-
label: 'Label'
307-
},
308-
spectator.service.getCurrentActivatedRoute()
309-
)
310-
).toEqual({ type: NavItemType.Header, label: 'Label' });
311-
312-
expect(
313-
spectator.service.decorateNavItem(
314-
{
315-
type: NavItemType.Link,
316-
label: 'Label',
317-
icon: IconType.None,
318-
matchPaths: ['root']
319-
},
320-
spectator.service.rootRoute()
321-
)
322-
).toEqual({
323-
type: NavItemType.Link,
324-
label: 'Label',
325-
icon: IconType.None,
326-
matchPaths: ['root'],
327-
features: ['test-feature']
328-
});
329-
});
330-
331299
test('setting title should work as expected', () => {
332300
router.navigate(['root', 'child']);
333301
expect(spectator.inject(Title).setTitle).toHaveBeenCalledWith('defaultAppTitle | child1');

projects/common/src/navigation/navigation.service.ts

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import {
1414
UrlSegment,
1515
UrlTree
1616
} from '@angular/router';
17-
import { NavItemConfig, NavItemType } from '@hypertrace/components';
18-
import { uniq } from 'lodash-es';
1917
import { from, Observable, of } from 'rxjs';
2018
import { distinctUntilChanged, filter, map, share, skip, startWith, switchMap, take, tap } from 'rxjs/operators';
2119
import { isEqualIgnoreFunctions, throwIfNil } from '../utilities/lang/lang-utils';
@@ -243,26 +241,6 @@ export class NavigationService {
243241
return this.findRouteConfig(path, childRoutes ? childRoutes : []);
244242
}
245243

246-
public decorateNavItem(navItem: NavItemConfig, activatedRoute: ActivatedRoute): NavItemConfig {
247-
if (navItem.type !== NavItemType.Link) {
248-
return { ...navItem };
249-
}
250-
const features = navItem.matchPaths
251-
.map(path => this.getRouteConfig([path], activatedRoute))
252-
.filter((maybeRoute): maybeRoute is HtRoute => maybeRoute !== undefined)
253-
.flatMap(route => this.getFeaturesForRoute(route))
254-
.concat(navItem.features || []);
255-
256-
return {
257-
...navItem,
258-
features: uniq(features)
259-
};
260-
}
261-
262-
private getFeaturesForRoute(route: HtRoute): string[] {
263-
return (route.data && route.data.features) || [];
264-
}
265-
266244
public rootRoute(): ActivatedRoute {
267245
return this.router.routerState.root;
268246
}
@@ -376,7 +354,7 @@ export class NavigationService {
376354
}
377355

378356
export interface QueryParamObject extends Params {
379-
[key: string]: string | string[] | number | number[] | undefined;
357+
[key: string]: string | string[] | boolean | boolean[] | number | number[] | undefined;
380358
}
381359

382360
export type NavigationPath = string | (string | Dictionary<string>)[];

0 commit comments

Comments
 (0)