-
[OPIK-2524] Refactor Pretty Formatting system (#3593)
发布于
2025-10-13 11:34:27 +00:00 -
Refactor Pretty Formatting system
-
Fix formatting issues
-
fix tests
-
Address review comments; added general JSON viewer
-
Adjust the tests for new format
-
Address review comments
-
Update apps/opik-frontend/src/lib/traces.ts
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
- Update apps/opik-frontend/src/components/shared/JsonKeyValueTable/JsonKeyValueTable.tsx
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
- Update apps/opik-frontend/src/lib/traces.ts
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
- Update apps/opik-frontend/src/lib/traces.ts
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
-
Removed duplicated function; linting fixes
-
Address review comments
-
Update apps/opik-frontend/src/lib/traces.ts
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
- Update apps/opik-frontend/src/components/shared/JsonKeyValueTable/JsonKeyValueTable.tsx
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
- Update apps/opik-frontend/src/lib/arrayParser.ts
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
-
Address review comments
-
Update apps/opik-frontend/src/components/shared/MessageRenderer/MessageRenderer.tsx
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
- Update apps/opik-frontend/src/components/shared/JsonKeyValueTable/JsonKeyValueTable.tsx
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
- Update apps/opik-frontend/src/lib/traces.ts
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
-
Linting
-
Address config issues; linting
-
Tweak for message format; bold key values in JSON table
-
Handle array of objects with JsonKeyValueTable
-
Make getting JSON more robust
-
Remove search when tree; copy JSON when tree
-
Revision 6: Add refactored trace utilities and fix maxDepth configuration
-
Add new modular files from traces.ts refactoring:
- types.ts: Centralized type definitions
- traceUtils.ts: General trace and span utilities
- textExtraction.ts: Text extraction from complex objects
- jsonTableUtils.ts: JSON table rendering utilities
- arrayExtraction.ts: Array processing and text extraction
- prettifyMessage.ts: Message prettification orchestration
-
Update maxDepth from hardcoded 3 to configurable variable with value 5
-
Fix TypeScript errors from duplicate type exports
-
Fix React hooks conditional calling issues
-
Fix linting and formatting issues
-
Improve code organization and maintainability
-
Manually handled some review comments
-
Update apps/opik-frontend/src/lib/traceUtils.ts
Co-authored-by: sasha aadereiko@gmail.com
- Update apps/opik-frontend/src/lib/traceUtils.ts
Co-authored-by: sasha aadereiko@gmail.com
- Address review comments
Co-authored-by: Douglas Blank doug@comet.com
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com
Co-authored-by: sasha aadereiko@gmail.com下载附件
-