hyperdx/packages/app
Brandon Pereira de0b4fc755
Search Relative Time Queries (#1305)
Adds "Relative Time" switch to TimePicker component (if relative time is supported by parent). When enabled, searches will work similar to Live Tail but be relative to the option selected.

<img width="555" height="418" alt="Screenshot 2025-10-27 at 2 05 25 PM" src="https://github.com/user-attachments/assets/20d38011-d5d0-479f-a8ea-6b0be441ca87" />

Some notes:

1. When relative is enabled, I disabled very large time ranges to prioritize performance.
2. If you select "Last 15 mins" then reload, the Input will save "Live Tail" because these are the same option, this should be an edge case.
3. In the future, we might want to make "Relative Time" the default, but I didn't want to immediately do that. We could probably improve the UX further (cc @elizabetdev).
4. Moves a lot of the "Live Tail" logic out of various spots and centralizes it in a unified spot to support other values 

Fixes HDX-2653
2025-10-29 15:49:10 +00:00
..
.storybook add dashboard import/export functionality (#1204) 2025-09-25 13:26:32 +00:00
pages add dashboard import/export functionality (#1204) 2025-09-25 13:26:32 +00:00
public feat: Add basic browser/wasm-based event patterns table (#750) 2025-04-18 16:57:11 +00:00
src Search Relative Time Queries (#1305) 2025-10-29 15:49:10 +00:00
styles Add copy-to-clipboard buttons in RawLogTable for log line data and URLs (#1227) 2025-10-10 15:50:34 +01:00
tests/e2e Search Relative Time Queries (#1305) 2025-10-29 15:49:10 +00:00
types fix: Pollyfill crypto.randomUUID (#904) 2025-06-03 12:35:56 -04:00
.Dockerignore first commit 2023-09-12 20:08:05 -07:00
.env.development feat: add subpath config (#1236) 2025-10-17 14:43:58 -07:00
.eslintrc.js chore: Add playwright tests for app in local-only mode (#1181) 2025-09-20 01:43:08 +00:00
.gitignore Use next-runtime-env for dynamic envs (#515) 2024-12-02 06:08:07 +00:00
.stylelintignore Search Relative Time Queries (#1305) 2025-10-29 15:49:10 +00:00
.stylelintrc chore: Set up Stylelint, set up path aliases (#458) 2024-07-08 10:06:45 -07:00
CHANGELOG.md Release HyperDX (#1224) 2025-10-22 16:13:54 +02:00
Dockerfile fix: Update tsconfigs to resolve IDE type errors (#1150) 2025-09-11 08:55:14 -04:00
global-setup.js Add new useTimeQuery hook (#75) 2023-10-29 04:44:07 +00:00
jest.config.js feat: Add ClickHouse JSON Type Support (#969) 2025-07-03 17:11:03 +00:00
knip.json feat: move v2 codes 2024-11-12 05:53:15 -07:00
mdx.d.ts first commit 2023-09-12 20:08:05 -07:00
next-env.d.ts chore: Upgrade to NextJS 14.x.x (#919) 2025-06-10 15:44:52 +00:00
next.config.js feat: add subpath config (#1236) 2025-10-17 14:43:58 -07:00
package.json Search Relative Time Queries (#1305) 2025-10-29 15:49:10 +00:00
playwright.config.ts Search Relative Time Queries (#1305) 2025-10-29 15:49:10 +00:00
postcss.config.cjs chore: Upgrade to Mantine@7 (#306) 2024-02-25 10:37:55 +00:00
tsconfig.build.json fix: Update tsconfigs to resolve IDE type errors (#1150) 2025-09-11 08:55:14 -04:00
tsconfig.json fix: Update tsconfigs to resolve IDE type errors (#1150) 2025-09-11 08:55:14 -04:00