Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
fa155e6
fix: upgrade @apollo/client from 3.4.13 to 3.4.15 (#1199)
snyk-bot Oct 19, 2021
9ecc56c
feat: adding a custom control template option for table (#1189)
anandtiwary Oct 19, 2021
6576c54
feat: Adding count reference to Gauge List (#1203)
palbizu Oct 21, 2021
985195b
enable rootless image (#1202)
tomassatka Oct 22, 2021
f1d14cb
feat: add regex operator to filter bar (#1205)
aaron-steinfeld Oct 22, 2021
8f57e12
chore:(deps-dev): bump @types/webpack-env from 1.16.2 to 1.16.3 (#1208)
dependabot[bot] Oct 25, 2021
6eee336
chore:(deps-dev): bump @compodoc/compodoc from 1.1.14 to 1.1.15 (#1210)
dependabot[bot] Oct 25, 2021
c26925b
chore:(deps): bump core-js from 3.18.1 to 3.19.0 (#1213)
dependabot[bot] Oct 25, 2021
ba8f111
chore:(deps-dev): bump jest-config from 27.2.0 to 27.3.1 (#1212)
dependabot[bot] Oct 25, 2021
5c05cd5
chore:(deps): bump @angular/flex-layout (#1215)
dependabot[bot] Oct 25, 2021
6d51d17
chore:(deps-dev): bump ng-packagr from 12.2.1 to 12.2.5 (#1214)
dependabot[bot] Oct 25, 2021
981e14b
table widget browser storage (#1206)
jake-bassett Oct 26, 2021
de79bb9
feat: custom messages for load async (#1217)
itssharmasandeep Oct 29, 2021
00e24d2
chore:(deps): bump @apollo/client from 3.4.15 to 3.4.16 (#1223)
dependabot[bot] Nov 1, 2021
47957d7
chore:(deps-dev): bump @ngneat/spectator from 8.1.0 to 8.3.1 (#1225)
dependabot[bot] Nov 1, 2021
ed3bd8f
fix: some very minor clean up (#1226)
jake-bassett Nov 1, 2021
d86f11e
fix: incorrect focus on editing filter chips (#1227)
aaron-steinfeld Nov 1, 2021
22921bf
Fix multi select view update (#1228)
jake-bassett Nov 2, 2021
f06a7a5
feat: table prefs now use sessionStorage instead of localStorage (#1231)
jake-bassett Nov 3, 2021
d8f87b6
feat(span-detail): cookies as first class fields (#1230)
skjindal93 Nov 5, 2021
c854d39
fix: table control filter dropdowns now handle empty result sets (#1236)
jake-bassett Nov 5, 2021
c4f48c7
fix: allow entity datasources to allow toggling includeInactive query…
jake-bassett Nov 5, 2021
cf82f51
chore:(deps): bump graphql-tag from 2.12.5 to 2.12.6 (#1243)
dependabot[bot] Nov 8, 2021
2a2e427
Allow configurable select or multiselect table controls (#1238)
jake-bassett Nov 8, 2021
bba10d4
feat: hide header divider line when in detail list mode (#1246)
jake-bassett Nov 9, 2021
586da92
feat: add additional specification array to entity spec (#1247)
anandtiwary Nov 10, 2021
0d793a2
fix: make explorer content scrollable (#1248)
aaron-steinfeld Nov 10, 2021
0eff64f
feat: import filter url service (#1251)
palbizu Nov 10, 2021
a9293f3
fix: make divider 1px high (#1253)
jake-bassett Nov 11, 2021
b1d8250
refactor: breadcrumb to support additional specifications (#1254)
anandtiwary Nov 12, 2021
e9cdabe
feat: persist explorer state in url (#1257)
aaron-steinfeld Nov 15, 2021
756d8f4
chore:(deps): bump core-js from 3.19.0 to 3.19.1 (#1261)
dependabot[bot] Nov 15, 2021
2f4c2b3
chore:(deps-dev): bump @commitlint/config-conventional (#1260)
dependabot[bot] Nov 15, 2021
6bc351d
chore:(deps): bump mixpanel-browser from 2.41.0 to 2.42.0 (#1259)
dependabot[bot] Nov 15, 2021
5ee7d10
chore:(deps): bump @apollo/client from 3.4.16 to 3.4.17 (#1263)
dependabot[bot] Nov 15, 2021
7013af5
feat: Adding properties to Title Content (#1235)
palbizu Nov 15, 2021
3cc0402
fix: common project should not depend on components project (#1264)
arjunlalb Nov 16, 2021
c601819
fix: upgrade graphql from 15.6.1 to 15.7.0 (#1266)
snyk-bot Nov 17, 2021
21247f9
feat: adding loading config functionality to table view toggle widget…
itssharmasandeep Nov 17, 2021
6803f3b
Table use local storage for columns (#1265)
jake-bassett Nov 18, 2021
612c72a
fix: avoid dupe columns, clear group name from url on none (#1269)
aaron-steinfeld Nov 18, 2021
e14d879
feat: util methods to manipulate graphqlTimeRange (#1271)
arjunlalb Nov 19, 2021
011cda2
chore:(deps-dev): bump husky from 7.0.1 to 7.0.4 (#1276)
dependabot[bot] Nov 22, 2021
b9eefdb
chore:(deps-dev): bump @commitlint/cli from 13.1.0 to 15.0.0 (#1274)
dependabot[bot] Nov 22, 2021
0236f33
chore:(deps-dev): bump ts-node from 10.2.1 to 10.4.0 (#1277)
dependabot[bot] Nov 22, 2021
6908d7f
fix: upgrade graphql from 15.7.0 to 15.7.2 (#1280)
snyk-bot Nov 22, 2021
965c0c2
fix: new style for title in titled content (#1283)
arjunlalb Nov 23, 2021
f042275
fix: emit correct shape for single select change (#1284)
aaron-steinfeld Nov 23, 2021
70f6e9a
feat: change default visualization for spans to count (#1272)
aaron-steinfeld Nov 23, 2021
b35921e
feat: add styling to table filters with applied values (#1285)
jake-bassett Nov 23, 2021
11f2a78
fix: support for custom row size for table (#1286)
arjunlalb Nov 29, 2021
dd933a7
chore:(deps-dev): bump @types/node from 16.7.10 to 16.11.10 (#1289)
dependabot[bot] Nov 29, 2021
7870e97
chore:(deps-dev): bump jest-config from 27.3.1 to 27.4.0 (#1292)
dependabot[bot] Nov 29, 2021
aa91526
chore:(deps): bump @apollo/client from 3.4.17 to 3.5.5 (#1291)
dependabot[bot] Nov 29, 2021
342deb3
Form changes (#1281)
anandtiwary Nov 29, 2021
8509f36
feat: persisted expand collapse for explorer panels (#1295)
itssharmasandeep Nov 30, 2021
f46c9d8
feat: toggle able legend for cartesian chart (#1270)
itssharmasandeep Dec 2, 2021
644d6f2
feat: table filters now always show their placeholder even when a sel…
jake-bassett Dec 2, 2021
037d46a
feat: add row highlighting to table selections (#1300)
jake-bassett Dec 2, 2021
9edaeff
feat: support styles for text-widget primary text (#1301)
arjunlalb Dec 3, 2021
2a1f846
chore:(deps-dev): bump jest-config from 27.4.0 to 27.4.3 (#1304)
dependabot[bot] Dec 6, 2021
f4acb1a
chore:(deps): bump core-js from 3.19.1 to 3.19.3 (#1307)
dependabot[bot] Dec 6, 2021
bb43344
chore:(deps-dev): bump @commitlint/config-conventional (#1306)
dependabot[bot] Dec 6, 2021
c318185
feat: exporting field and active tab label change (#1309)
anandtiwary Dec 7, 2021
560f339
feat: support for custom row height in table widget (#1310)
arjunlalb Dec 7, 2021
9df5db8
feat: list view changes (#1302)
anandtiwary Dec 8, 2021
3381f26
fix: make border configurable in form field (#1311)
anandtiwary Dec 8, 2021
beb707f
fix: minor style changes to list view and multi select (#1312)
anandtiwary Dec 9, 2021
aff92e4
refactor: making radio forms compatible with forms (#1314)
anandtiwary Dec 9, 2021
2c0f8ab
Fix date picker timezone issue (#1313)
adisreyaj Dec 13, 2021
b654927
chore:(deps-dev): bump jest-config from 27.4.3 to 27.4.4 (#1317)
dependabot[bot] Dec 13, 2021
bff6f9f
chore:(deps-dev): bump pretty-quick from 3.1.1 to 3.1.2 (#1320)
dependabot[bot] Dec 13, 2021
f88e986
chore:(deps-dev): bump @types/node from 16.11.10 to 16.11.12 (#1319)
dependabot[bot] Dec 13, 2021
70291d9
chore:(deps-dev): bump @ngneat/spectator from 8.3.1 to 8.3.2 (#1318)
dependabot[bot] Dec 13, 2021
f850718
fix: setting max-height for multi select options container (#1315)
arjunlalb Dec 13, 2021
5456802
fix: pull applied filter logic into table controls so consumer doesn'…
jake-bassett Dec 14, 2021
ecc635f
feat: adding color picker component (#1325)
anandtiwary Dec 17, 2021
a4c2803
feat: Combo box forms (#1327)
anandtiwary Dec 17, 2021
bc9ed82
feat: grouped cartesian legend (#1288)
itssharmasandeep Dec 18, 2021
fc10939
chore:(deps-dev): bump @types/d3-scale from 2.2.4 to 2.2.6 (#1332)
dependabot[bot] Dec 20, 2021
f7825cd
chore:(deps-dev): bump @types/node from 16.11.12 to 17.0.1 (#1331)
dependabot[bot] Dec 20, 2021
2d065fa
chore:(deps): bump graphql from 15.7.2 to 15.8.0 (#1328)
dependabot[bot] Dec 20, 2021
4f377bb
chore:(deps-dev): bump ng-mocks from 12.5.0 to 12.5.1 (#1329)
dependabot[bot] Dec 20, 2021
d5c638b
fix: grouped legend bug (#1334)
itssharmasandeep Dec 21, 2021
71a0f52
feat: disabled state for input component reactive forms (#1333)
itssharmasandeep Dec 21, 2021
7e4ce91
refactor: minor style change support for combo box (#1336)
anandtiwary Dec 22, 2021
6c0ae0e
chore:(deps-dev): bump jest-html-reporter from 3.4.1 to 3.4.2 (#1338)
dependabot[bot] Dec 27, 2021
f9e4b80
chore:(deps): bump core-js from 3.19.3 to 3.20.1 (#1339)
dependabot[bot] Dec 27, 2021
d49ae58
chore:(deps): bump mixpanel-browser from 2.42.0 to 2.42.1 (#1340)
dependabot[bot] Dec 27, 2021
3c0531e
chore:(deps-dev): bump @types/node from 17.0.1 to 17.0.5 (#1342)
dependabot[bot] Dec 27, 2021
e22d5cd
chore:(deps-dev): bump @commitlint/cli from 15.0.0 to 16.0.1 (#1345)
dependabot[bot] Jan 3, 2022
d87f4bd
chore:(deps-dev): bump @types/jest from 26.0.24 to 27.4.0 (#1346)
dependabot[bot] Jan 3, 2022
05ffcff
chore:(deps-dev): bump @compodoc/compodoc from 1.1.15 to 1.1.16 (#1348)
dependabot[bot] Jan 3, 2022
180e753
fix: corrected nested styling for `titled-content` (#1350)
jaywalker21 Jan 4, 2022
0f2906e
fix: upgrade @apollo/client from 3.4.13 to 3.4.15 (#1199)
snyk-bot Oct 19, 2021
6c9b97d
feat: adding a custom control template option for table (#1189)
anandtiwary Oct 19, 2021
326d085
feat: Adding count reference to Gauge List (#1203)
palbizu Oct 21, 2021
df07386
enable rootless image (#1202)
tomassatka Oct 22, 2021
ef14fda
feat: add regex operator to filter bar (#1205)
aaron-steinfeld Oct 22, 2021
4568679
chore:(deps-dev): bump @types/webpack-env from 1.16.2 to 1.16.3 (#1208)
dependabot[bot] Oct 25, 2021
3b5a4cf
chore:(deps-dev): bump @compodoc/compodoc from 1.1.14 to 1.1.15 (#1210)
dependabot[bot] Oct 25, 2021
ad3a0db
chore:(deps): bump core-js from 3.18.1 to 3.19.0 (#1213)
dependabot[bot] Oct 25, 2021
6fc46b5
chore:(deps-dev): bump jest-config from 27.2.0 to 27.3.1 (#1212)
dependabot[bot] Oct 25, 2021
86df93c
chore:(deps): bump @angular/flex-layout (#1215)
dependabot[bot] Oct 25, 2021
20595b5
chore:(deps-dev): bump ng-packagr from 12.2.1 to 12.2.5 (#1214)
dependabot[bot] Oct 25, 2021
7f395e9
table widget browser storage (#1206)
jake-bassett Oct 26, 2021
5832781
feat: custom messages for load async (#1217)
itssharmasandeep Oct 29, 2021
606d0fc
chore:(deps): bump @apollo/client from 3.4.15 to 3.4.16 (#1223)
dependabot[bot] Nov 1, 2021
02f76f8
chore:(deps-dev): bump @ngneat/spectator from 8.1.0 to 8.3.1 (#1225)
dependabot[bot] Nov 1, 2021
8dc3038
fix: some very minor clean up (#1226)
jake-bassett Nov 1, 2021
88a46a9
fix: incorrect focus on editing filter chips (#1227)
aaron-steinfeld Nov 1, 2021
b99b933
Fix multi select view update (#1228)
jake-bassett Nov 2, 2021
ea41f64
feat: table prefs now use sessionStorage instead of localStorage (#1231)
jake-bassett Nov 3, 2021
a1238d9
feat(span-detail): cookies as first class fields (#1230)
skjindal93 Nov 5, 2021
fc16f95
fix: table control filter dropdowns now handle empty result sets (#1236)
jake-bassett Nov 5, 2021
09e0f96
fix: allow entity datasources to allow toggling includeInactive query…
jake-bassett Nov 5, 2021
2c8a2e9
chore:(deps): bump graphql-tag from 2.12.5 to 2.12.6 (#1243)
dependabot[bot] Nov 8, 2021
f04f785
Allow configurable select or multiselect table controls (#1238)
jake-bassett Nov 8, 2021
ad943af
feat: hide header divider line when in detail list mode (#1246)
jake-bassett Nov 9, 2021
378473b
feat: add additional specification array to entity spec (#1247)
anandtiwary Nov 10, 2021
d6585e4
fix: make explorer content scrollable (#1248)
aaron-steinfeld Nov 10, 2021
5757afa
feat: import filter url service (#1251)
palbizu Nov 10, 2021
3ef7006
fix: make divider 1px high (#1253)
jake-bassett Nov 11, 2021
78244c2
refactor: breadcrumb to support additional specifications (#1254)
anandtiwary Nov 12, 2021
dfb23dd
feat: persist explorer state in url (#1257)
aaron-steinfeld Nov 15, 2021
a3082af
chore:(deps): bump core-js from 3.19.0 to 3.19.1 (#1261)
dependabot[bot] Nov 15, 2021
30e0208
chore:(deps-dev): bump @commitlint/config-conventional (#1260)
dependabot[bot] Nov 15, 2021
034760a
chore:(deps): bump mixpanel-browser from 2.41.0 to 2.42.0 (#1259)
dependabot[bot] Nov 15, 2021
be87f72
chore:(deps): bump @apollo/client from 3.4.16 to 3.4.17 (#1263)
dependabot[bot] Nov 15, 2021
a540698
feat: Adding properties to Title Content (#1235)
palbizu Nov 15, 2021
dd216cc
fix: common project should not depend on components project (#1264)
arjunlalb Nov 16, 2021
bf927b0
fix: upgrade graphql from 15.6.1 to 15.7.0 (#1266)
snyk-bot Nov 17, 2021
5331a9c
feat: adding loading config functionality to table view toggle widget…
itssharmasandeep Nov 17, 2021
75af0c4
Table use local storage for columns (#1265)
jake-bassett Nov 18, 2021
0ffd2b0
fix: avoid dupe columns, clear group name from url on none (#1269)
aaron-steinfeld Nov 18, 2021
da04456
feat: util methods to manipulate graphqlTimeRange (#1271)
arjunlalb Nov 19, 2021
4395c87
chore:(deps-dev): bump husky from 7.0.1 to 7.0.4 (#1276)
dependabot[bot] Nov 22, 2021
aa336e1
chore:(deps-dev): bump @commitlint/cli from 13.1.0 to 15.0.0 (#1274)
dependabot[bot] Nov 22, 2021
28d729d
chore:(deps-dev): bump ts-node from 10.2.1 to 10.4.0 (#1277)
dependabot[bot] Nov 22, 2021
410edcb
fix: upgrade graphql from 15.7.0 to 15.7.2 (#1280)
snyk-bot Nov 22, 2021
02ee0d6
fix: new style for title in titled content (#1283)
arjunlalb Nov 23, 2021
b0ec066
fix: emit correct shape for single select change (#1284)
aaron-steinfeld Nov 23, 2021
4f9530d
feat: change default visualization for spans to count (#1272)
aaron-steinfeld Nov 23, 2021
64297b6
feat: add styling to table filters with applied values (#1285)
jake-bassett Nov 23, 2021
4b6ba4c
fix: support for custom row size for table (#1286)
arjunlalb Nov 29, 2021
5199d3c
chore:(deps-dev): bump @types/node from 16.7.10 to 16.11.10 (#1289)
dependabot[bot] Nov 29, 2021
a82e72d
chore:(deps-dev): bump jest-config from 27.3.1 to 27.4.0 (#1292)
dependabot[bot] Nov 29, 2021
9965f34
chore:(deps): bump @apollo/client from 3.4.17 to 3.5.5 (#1291)
dependabot[bot] Nov 29, 2021
270290d
Form changes (#1281)
anandtiwary Nov 29, 2021
13b4a6a
feat: persisted expand collapse for explorer panels (#1295)
itssharmasandeep Nov 30, 2021
205d485
feat: toggle able legend for cartesian chart (#1270)
itssharmasandeep Dec 2, 2021
64e1c71
feat: table filters now always show their placeholder even when a sel…
jake-bassett Dec 2, 2021
b921169
feat: add row highlighting to table selections (#1300)
jake-bassett Dec 2, 2021
244262b
feat: support styles for text-widget primary text (#1301)
arjunlalb Dec 3, 2021
ebea623
chore:(deps-dev): bump jest-config from 27.4.0 to 27.4.3 (#1304)
dependabot[bot] Dec 6, 2021
c0b98c1
chore:(deps): bump core-js from 3.19.1 to 3.19.3 (#1307)
dependabot[bot] Dec 6, 2021
2681648
chore:(deps-dev): bump @commitlint/config-conventional (#1306)
dependabot[bot] Dec 6, 2021
4c9d0d5
feat: exporting field and active tab label change (#1309)
anandtiwary Dec 7, 2021
2282b9e
feat: support for custom row height in table widget (#1310)
arjunlalb Dec 7, 2021
9311445
feat: list view changes (#1302)
anandtiwary Dec 8, 2021
b574a66
fix: make border configurable in form field (#1311)
anandtiwary Dec 8, 2021
bfed54d
fix: minor style changes to list view and multi select (#1312)
anandtiwary Dec 9, 2021
c09cd93
refactor: making radio forms compatible with forms (#1314)
anandtiwary Dec 9, 2021
fa0b5e9
Fix date picker timezone issue (#1313)
adisreyaj Dec 13, 2021
e30e6c0
chore:(deps-dev): bump jest-config from 27.4.3 to 27.4.4 (#1317)
dependabot[bot] Dec 13, 2021
2d32e9d
chore:(deps-dev): bump pretty-quick from 3.1.1 to 3.1.2 (#1320)
dependabot[bot] Dec 13, 2021
23201ff
chore:(deps-dev): bump @types/node from 16.11.10 to 16.11.12 (#1319)
dependabot[bot] Dec 13, 2021
58a7b37
chore:(deps-dev): bump @ngneat/spectator from 8.3.1 to 8.3.2 (#1318)
dependabot[bot] Dec 13, 2021
ed85254
fix: setting max-height for multi select options container (#1315)
arjunlalb Dec 13, 2021
02fdb04
fix: pull applied filter logic into table controls so consumer doesn'…
jake-bassett Dec 14, 2021
67a44ef
feat: adding color picker component (#1325)
anandtiwary Dec 17, 2021
775d1a6
feat: Combo box forms (#1327)
anandtiwary Dec 17, 2021
6545fe7
feat: grouped cartesian legend (#1288)
itssharmasandeep Dec 18, 2021
87daed5
chore:(deps-dev): bump @types/d3-scale from 2.2.4 to 2.2.6 (#1332)
dependabot[bot] Dec 20, 2021
25c5e26
chore:(deps-dev): bump @types/node from 16.11.12 to 17.0.1 (#1331)
dependabot[bot] Dec 20, 2021
5f074a5
chore:(deps): bump graphql from 15.7.2 to 15.8.0 (#1328)
dependabot[bot] Dec 20, 2021
3329648
chore:(deps-dev): bump ng-mocks from 12.5.0 to 12.5.1 (#1329)
dependabot[bot] Dec 20, 2021
f9b9cba
fix: grouped legend bug (#1334)
itssharmasandeep Dec 21, 2021
3d5222e
feat: disabled state for input component reactive forms (#1333)
itssharmasandeep Dec 21, 2021
4a22e64
refactor: minor style change support for combo box (#1336)
anandtiwary Dec 22, 2021
bc292b8
chore:(deps-dev): bump jest-html-reporter from 3.4.1 to 3.4.2 (#1338)
dependabot[bot] Dec 27, 2021
18b4b30
chore:(deps): bump core-js from 3.19.3 to 3.20.1 (#1339)
dependabot[bot] Dec 27, 2021
7b3e7a6
chore:(deps): bump mixpanel-browser from 2.42.0 to 2.42.1 (#1340)
dependabot[bot] Dec 27, 2021
343c266
chore:(deps-dev): bump @types/node from 17.0.1 to 17.0.5 (#1342)
dependabot[bot] Dec 27, 2021
c1c772d
chore:(deps-dev): bump @commitlint/cli from 15.0.0 to 16.0.1 (#1345)
dependabot[bot] Jan 3, 2022
02faf34
chore:(deps-dev): bump @types/jest from 26.0.24 to 27.4.0 (#1346)
dependabot[bot] Jan 3, 2022
4970665
chore:(deps-dev): bump @compodoc/compodoc from 1.1.15 to 1.1.16 (#1348)
dependabot[bot] Jan 3, 2022
3603c23
fix: corrected nested styling for `titled-content` (#1350)
jaywalker21 Jan 4, 2022
f7d76eb
feat: toISOString Time function (#1351)
palbizu Jan 4, 2022
2388474
Adding inputs to time picker (#1343)
palbizu Jan 4, 2022
a2c70ee
fix: prevent empty like clause for search parameters (#1353)
jaywalker21 Jan 5, 2022
0db5f22
Merge branch 'latest_fork' into latest_merge
jaywalker21 Jan 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM nginx:1.21-alpine
COPY dist/hypertrace-ui /usr/share/nginx/html
COPY conf/default.conf /etc/nginx/conf.d/default.conf
RUN chmod a+w /var/cache/nginx /var/run
EXPOSE 2020
HEALTHCHECK --interval=1s --retries=5 --timeout=1s CMD wget -qO- http://localhost:2020/graphql?query={__schema{queryType{name}}} &> /dev/null || exit 1
7,888 changes: 4,372 additions & 3,516 deletions package-lock.json

Large diffs are not rendered by default.

45 changes: 23 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build:components": "ng build components",
"build:dashboards": "ng build dashboards",
"build:ci": "node --max_old_space_size=3584 node_modules/@angular/cli/bin/ng build --configuration production --no-progress",
"test": "ng test hypertrace-ui --cache",
"test": "ng test hypertrace-ui --cache --maxWorkers=2",
"lint": "ng lint hypertrace-ui",
"lint:fix": "ng lint --fix hypertrace-ui",
"prettier:check": "prettier --check '**'",
Expand All @@ -30,20 +30,20 @@
"@angular/common": "^12.2.1",
"@angular/compiler": "^12.2.1",
"@angular/core": "^12.2.1",
"@angular/flex-layout": "^12.0.0-beta.34",
"@angular/flex-layout": "^12.0.0-beta.35",
"@angular/forms": "^12.2.1",
"@angular/material": "^12.2.1",
"@angular/platform-browser": "^12.2.1",
"@angular/platform-browser-dynamic": "^12.2.1",
"@angular/router": "^12.2.1",
"@apollo/client": "^3.4.13",
"@apollo/client": "^3.5.5",
"@fullstory/browser": "^1.4.9",
"@hypertrace/hyperdash": "^1.2.1",
"@hypertrace/hyperdash-angular": "^2.6.0",
"@types/d3-hierarchy": "^2.0.2",
"@types/d3-transition": "1.1.5",
"apollo-angular": "^2.6.0",
"core-js": "^3.18.1",
"core-js": "^3.20.1",
"d3-array": "^2.12.0",
"d3-axis": "^2.1.0",
"d3-brush": "^1.1.6",
Expand All @@ -59,11 +59,12 @@
"d3-shape": "^1.3.5",
"d3-transition": "^1.2.0",
"d3-zoom": "^1.8.3",
"graphql": "^15.6.0",
"graphql-tag": "^2.12.5",
"graphql": "^15.8.0",
"graphql-tag": "^2.12.6",
"iso8601-duration": "^1.3.0",
"lodash-es": "^4.17.21",
"mixpanel-browser": "^2.41.0",
"mixpanel-browser": "^2.42.1",
"ngx-color": "7.0.0",
"rxjs": "~6.6.7",
"tslib": "^2.3.1",
"uuid": "^8.3.2",
Expand All @@ -75,42 +76,42 @@
"@angular/cli": "12.2.1",
"@angular/compiler-cli": "~12.2.1",
"@angular/language-service": "~12.2.1",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@compodoc/compodoc": "^1.1.14",
"@ngneat/spectator": "^8.1.0",
"@commitlint/cli": "^16.0.1",
"@commitlint/config-conventional": "^15.0.0",
"@compodoc/compodoc": "^1.1.16",
"@ngneat/spectator": "^8.3.2",
"@types/d3-array": "^2.9.0",
"@types/d3-axis": "^2.0.0",
"@types/d3-brush": "^2.1.0",
"@types/d3-drag": "^1.2.3",
"@types/d3-force": "^2.1.0",
"@types/d3-path": "^2.0.0",
"@types/d3-quadtree": "^1.0.7",
"@types/d3-scale": "^2.1.1",
"@types/d3-scale": "^2.2.6",
"@types/d3-selection": "^1.4.2",
"@types/d3-shape": "^2.1.0",
"@types/d3-zoom": "^1.7.5",
"@types/jest": "^26.0.24",
"@types/jest": "^27.4.0",
"@types/lodash-es": "^4.17.5",
"@types/mixpanel-browser": "^2.35.7",
"@types/node": "^16.7.10",
"@types/node": "^17.0.5",
"@types/uuid": "^8.3.1",
"@types/webpack-env": "^1.16.2",
"@types/webpack-env": "^1.16.3",
"codelyzer": "^6.0.2",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"husky": "^7.0.0",
"husky": "^7.0.4",
"jest": "^26.6.3",
"jest-config": "^27.2.0",
"jest-html-reporter": "^3.4.1",
"jest-config": "^27.4.4",
"jest-html-reporter": "^3.4.2",
"jest-junit": "^13.0.0",
"jest-preset-angular": "^8.4.0",
"lodash": "^4.17.21",
"ng-mocks": "^12.5.0",
"ng-packagr": "^12.2.1",
"ng-mocks": "^12.5.1",
"ng-packagr": "^12.2.5",
"prettier": "^2.2.1",
"pretty-quick": "^3.1.1",
"ts-node": "~10.2.1",
"pretty-quick": "^3.1.2",
"ts-node": "~10.4.0",
"tslint": "~6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "~4.3.5",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions projects/assets-library/src/images/image-type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const enum ImagesAssetPath {
ErrorPage = 'assets/images/error-page.svg',
LoaderSpinner = 'assets/images/loader-spinner.gif',
LoaderPage = 'assets/images/loader-page.gif',
LoaderExpandableRow = 'assets/images/loader-expandable-row.gif'
}
1 change: 1 addition & 0 deletions projects/assets-library/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export * from './icons/icon-type';
export * from './icons/icon-registry.service';
export * from './icons/icon-library.module';
export * from './icons/testing/icon-library-testing.module';
export * from './images/image-type';
32 changes: 0 additions & 32 deletions projects/common/src/navigation/navigation.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { Location } from '@angular/common';
import { Title } from '@angular/platform-browser';
import { Router, UrlSegment } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { IconType } from '@hypertrace/assets-library';
import { APP_TITLE } from '@hypertrace/common';
import { NavItemType } from '@hypertrace/components';
import { patchRouterNavigateForTest } from '@hypertrace/test-utils';
import { createServiceFactory, mockProvider, SpectatorService } from '@ngneat/spectator/jest';
import {
Expand Down Expand Up @@ -298,36 +296,6 @@ describe('Navigation Service', () => {
}
});

test('decorating navItem with features work as expected', () => {
expect(
spectator.service.decorateNavItem(
{
type: NavItemType.Header,
label: 'Label'
},
spectator.service.getCurrentActivatedRoute()
)
).toEqual({ type: NavItemType.Header, label: 'Label' });

expect(
spectator.service.decorateNavItem(
{
type: NavItemType.Link,
label: 'Label',
icon: IconType.None,
matchPaths: ['root']
},
spectator.service.rootRoute()
)
).toEqual({
type: NavItemType.Link,
label: 'Label',
icon: IconType.None,
matchPaths: ['root'],
features: ['test-feature']
});
});

test('setting title should work as expected', () => {
router.navigate(['root', 'child']);
expect(spectator.inject(Title).setTitle).toHaveBeenCalledWith('defaultAppTitle | child1');
Expand Down
24 changes: 1 addition & 23 deletions projects/common/src/navigation/navigation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import {
UrlSegment,
UrlTree
} from '@angular/router';
import { NavItemConfig, NavItemType } from '@hypertrace/components';
import { uniq } from 'lodash-es';
import { from, Observable, of } from 'rxjs';
import { distinctUntilChanged, filter, map, share, skip, startWith, switchMap, take, tap } from 'rxjs/operators';
import { isEqualIgnoreFunctions, throwIfNil } from '../utilities/lang/lang-utils';
Expand Down Expand Up @@ -243,26 +241,6 @@ export class NavigationService {
return this.findRouteConfig(path, childRoutes ? childRoutes : []);
}

public decorateNavItem(navItem: NavItemConfig, activatedRoute: ActivatedRoute): NavItemConfig {
if (navItem.type !== NavItemType.Link) {
return { ...navItem };
}
const features = navItem.matchPaths
.map(path => this.getRouteConfig([path], activatedRoute))
.filter((maybeRoute): maybeRoute is HtRoute => maybeRoute !== undefined)
.flatMap(route => this.getFeaturesForRoute(route))
.concat(navItem.features || []);

return {
...navItem,
features: uniq(features)
};
}

private getFeaturesForRoute(route: HtRoute): string[] {
return (route.data && route.data.features) || [];
}

public rootRoute(): ActivatedRoute {
return this.router.routerState.root;
}
Expand Down Expand Up @@ -376,7 +354,7 @@ export class NavigationService {
}

export interface QueryParamObject extends Params {
[key: string]: string | string[] | number | number[] | undefined;
[key: string]: string | string[] | boolean | boolean[] | number | number[] | undefined;
}

export type NavigationPath = string | (string | Dictionary<string>)[];
Expand Down
53 changes: 41 additions & 12 deletions projects/common/src/preference/preference.service.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,61 @@
import { Injectable } from '@angular/core';
import { Observable, of, throwError } from 'rxjs';
import { map, switchMap } from 'rxjs/operators';
import { AbstractStorage } from '../utilities/browser/storage/abstract-storage';
import { LocalStorage } from '../utilities/browser/storage/local-storage';
import { SessionStorage } from '../utilities/browser/storage/session-storage';
import { BooleanCoercer } from '../utilities/coercers/boolean-coercer';
import { NumberCoercer } from '../utilities/coercers/number-coercer';

export const enum StorageType {
Local = 'local',
Session = 'session'
}

@Injectable({
providedIn: 'root'
})
export class PreferenceService {
private static readonly DEFAULT_STORAGE_TYPE: StorageType = StorageType.Local;

private static readonly PREFERENCE_STORAGE_NAMESPACE: string = 'preference';
private static readonly SEPARATOR_CHAR: string = '.';
private static readonly SEPARATOR_REGEX: RegExp = /\.(.+)/;
private readonly numberCoercer: NumberCoercer = new NumberCoercer();
private readonly booleanCoercer: BooleanCoercer = new BooleanCoercer();

public constructor(private readonly preferenceStorage: LocalStorage) {}
public constructor(private readonly localStorage: LocalStorage, private readonly sessionStorage: SessionStorage) {}

/**
* Returns the current storage value if defined, else the default value. The observable
* will continue to emit as the preference is updated, reverting to default value if the
* preference becomes unset. If default value is not provided, the observable will
* throw in the case the preference is unset.
*/
public get<T extends PreferenceValue>(key: PreferenceKey, defaultValue?: T): Observable<T> {
return this.preferenceStorage.watch(this.asStorageKey(key)).pipe(
map(storedValue => this.fromStorageValue<T>(storedValue) ?? defaultValue),
switchMap(value =>
value === undefined
? throwError(Error(`No value found or default provided for preferenceKey: ${key}`))
: of(value)
)
);
public get<T extends PreferenceValue>(
key: PreferenceKey,
defaultValue?: T,
type: StorageType = PreferenceService.DEFAULT_STORAGE_TYPE
): Observable<T> {
return this.preferenceStorage(type)
.watch(this.asStorageKey(key))
.pipe(
map(storedValue => this.fromStorageValue<T>(storedValue) ?? defaultValue),
switchMap(value =>
value === undefined
? throwError(Error(`No value found or default provided for preferenceKey: ${key}`))
: of(value)
)
);
}

public set(key: PreferenceKey, value: PreferenceValue): void {
public set(
key: PreferenceKey,
value: PreferenceValue,
type: StorageType = PreferenceService.DEFAULT_STORAGE_TYPE
): void {
const val = this.asStorageValue(value);
this.preferenceStorage.set(this.asStorageKey(key), val);
this.preferenceStorage(type).set(this.asStorageKey(key), val);
}

private asStorageKey(key: PreferenceKey): PreferenceStorageKey {
Expand Down Expand Up @@ -70,6 +89,16 @@ export class PreferenceService {
return undefined;
}
}

private preferenceStorage(type: StorageType): AbstractStorage {
switch (type) {
case StorageType.Session:
return this.sessionStorage;
case StorageType.Local:
default:
return this.localStorage;
}
}
}

type PreferenceStorageKey = string;
Expand Down
17 changes: 17 additions & 0 deletions projects/common/src/time/time.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Time } from './time';

describe('Time', () => {
const mockedTime = new Time(8, 30);

test('can get label', () => {
expect(mockedTime.label).toBe('8:30 AM');
});

test('can get date', () => {
expect(mockedTime.date).toEqual(new Date(`${new Date().toDateString()} 08:30Z`));
});

test('can get ISO String from time', () => {
expect(mockedTime.toISOString()).toBe('08:30:00.000Z');
});
});
4 changes: 4 additions & 0 deletions projects/common/src/time/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ export class Time {
public get date(): Date {
return this._date;
}

public toISOString(): string {
return this.date.toISOString().substring(11);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Injectable } from '@angular/core';
import { AbstractStorage } from './abstract-storage';

@Injectable({ providedIn: 'root' })
export class SessionStorage extends AbstractStorage {
public constructor() {
super(sessionStorage);
}
}
3 changes: 2 additions & 1 deletion projects/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"d3-axis": "^2.1.0",
"d3-scale": "^3.3.0",
"d3-selection": "^1.4.2",
"d3-shape": "^1.3.5"
"d3-shape": "^1.3.5",
"ngx-color": "7.0.0"
},
"devDependencies": {
"@hypertrace/test-utils": "^0.0.0"
Expand Down
19 changes: 17 additions & 2 deletions projects/components/src/button/button.component.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { TrackDirective } from '@hypertrace/common';
import { createHostFactory, Spectator } from '@ngneat/spectator/jest';
import { MockDirective } from 'ng-mocks';
import { IconSize } from '../icon/icon-size';
import { ButtonRole, ButtonSize, ButtonStyle } from './button';
import { ButtonRole, ButtonSize, ButtonStyle, ButtonType } from './button';
import { ButtonComponent } from './button.component';
import { ButtonModule } from './button.module';

Expand All @@ -26,7 +26,22 @@ describe('Button Component', () => {
}
});

expect(spectator.query('.button')).toHaveClass('button secondary small solid');
const buttonEl = spectator.query('.button');
expect(buttonEl).toHaveClass('button secondary small solid');
expect(buttonEl).toHaveAttribute('type', 'button');
});

test('should set correct button type', () => {
spectator = createHost(`<ht-button [label]="label" [type]="type"></ht-button>`, {
hostProps: {
label: 'Button',
type: ButtonType.Submit
}
});

const buttonEl = spectator.query('.button');
expect(buttonEl).toHaveClass('button secondary small solid');
expect(buttonEl).toHaveAttribute('type', 'submit');
});

test('should have correct style class for selected role', () => {
Expand Down
Loading