hyperdx/packages/app/package.json
Joel Sequeira 4d24bfac0a
Add new useTimeQuery hook (#75)
## Context

This PR relates to https://github.com/hyperdxio/hyperdx/issues/53. From a chat with @MikeShi42 a while back we were discussing the UX of the time query presets (e.g. "Past 1h") and how it's kind of confusing atm. Once you click a preset, the label will remain as "Past 1h" and add a `from` and `to` param to the url. If after some time you refresh the page, the label will still say "Past 1h" but the `from` and `to` are the old values. At the same time, the existing useTimeQuery hook has a ton of complex logic which makes it very tricky to modify without causing regressions.

## This PR

Create a new version of the useTimeQuery hook (temporarily calling it useNewTimeQuery) and add detailed unit testing to it for all the different cases. This can eventually be used to replace all the existing callsites of the useTimeQuery hook. For the search page, we can move all the live tail functionality into a separate hook and integrate with this new time query hook to have better separation of concerns and make them both easier to maintain. I'll be making a separate PR for the live tail functionality.
2023-10-29 04:44:07 +00:00

118 lines
3.6 KiB
JSON

{
"name": "@hyperdx/app",
"version": "1.1.3",
"private": true,
"license": "MIT",
"engines": {
"node": ">=18.12.0"
},
"scripts": {
"dev": "next dev -p 8080",
"build": "next build",
"start": "next start",
"lint": "eslint . --ext .ts,.tsx",
"ci:lint": "yarn lint",
"ci:unit": "jest --coverage"
},
"dependencies": {
"@hyperdx/browser": "^0.18.4",
"@hyperdx/lucene": "^3.1.1",
"@microsoft/fetch-event-source": "^2.0.1",
"@monaco-editor/react": "^4.3.1",
"@tanstack/react-table": "^8.7.9",
"@tanstack/react-virtual": "^3.0.0-beta.54",
"@types/react-csv": "^1.1.3",
"ansi-to-html": "^0.7.2",
"bootstrap": "^5.1.3",
"chrono-node": "^2.5.0",
"classnames": "^2.3.1",
"date-fns": "^2.28.0",
"date-fns-tz": "^2.0.0",
"esbuild": "^0.14.47",
"fuse.js": "^6.6.2",
"immer": "^9.0.21",
"ky": "^0.30.0",
"ky-universal": "^0.10.1",
"lodash": "^4.17.21",
"monaco-editor": "^0.31.1",
"next": "^12.3.4",
"next-query-params": "^4.1.0",
"next-seo": "^4.28.1",
"nextra": "2.0.1",
"nextra-theme-docs": "^2.0.2",
"normalize-url": "4",
"pluralize": "^8.0.0",
"react": "^17.0.2",
"react-bootstrap": "^2.4.0",
"react-bootstrap-range-slider": "^3.0.8",
"react-copy-to-clipboard": "^5.1.0",
"react-csv": "^2.2.2",
"react-datepicker": "^4.10.0",
"react-dom": "^17.0.2",
"react-error-boundary": "^3.1.4",
"react-fast-marquee": "^1.3.5",
"react-grid-layout": "^1.3.4",
"react-hook-form": "^7.43.8",
"react-hotkeys-hook": "^4.3.7",
"react-intersection-observer": "^9.3.4",
"react-json-tree": "^0.17.0",
"react-markdown": "^8.0.4",
"react-merge-refs": "^2.0.1",
"react-modern-drawer": "^1.2.0",
"react-query": "^3.39.1",
"react-reflex": "^4.0.9",
"react-select": "^5.7.0",
"react-slider": "^2.0.1",
"react-sliding-pane": "^7.3.0",
"react-sortable-hoc": "^2.0.0",
"react-syntax-highlighter": "^15.4.5",
"react-table": "^7.8.0",
"react-toastify": "^8.1.0",
"react-use": "^17.4.0",
"react-useportal": "^1.0.18",
"react-virtual": "^2.10.4",
"react-virtualized-auto-sizer": "^1.0.7",
"recharts": "^2.5.0",
"remark-gfm": "^3.0.1",
"remark-prism": "^1.3.6",
"rrweb": "2.0.0-alpha.8",
"sass": "^1.54.8",
"serialize-query-params": "^2.0.2",
"strip-ansi": "^6.0.1",
"swr": "^1.3.0",
"timestamp-nano": "^1.0.1",
"use-query-params": "^2.1.2"
},
"devDependencies": {
"@deploysentinel/jest-rtl-debugger": "^0.2.3",
"@jedmao/location": "^3.0.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.4",
"@testing-library/user-event": "^14.4.3",
"@types/hyperdx__lucene": "npm:@types/lucene",
"@types/intercom-web": "^2.8.18",
"@types/jest": "^28.1.6",
"@types/lodash": "^4.14.186",
"@types/pluralize": "^0.0.29",
"@types/react": "^17.0.52",
"@types/react-copy-to-clipboard": "^5.0.2",
"@types/react-datepicker": "^4.10.0",
"@types/react-grid-layout": "^1.3.2",
"@types/react-slider": "^1.3.1",
"@types/react-syntax-highlighter": "^13.5.2",
"@types/react-table": "^7.7.14",
"@types/react-virtualized-auto-sizer": "^1.0.1",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"eslint": "^8.34.0",
"eslint-config-next": "^12.3.3",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^28.1.3",
"ts-jest": "^28.0.7",
"typescript": "^4.9.5"
},
"resolutions": {
"@types/react": "17.0.52"
}
}