-
Notifications
You must be signed in to change notification settings - Fork 24
feat(View): Duration Panel #2627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for goofy-euclid-75956c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for flanksource-demo-stable ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new "duration" panel type to the audit report view system, allowing for the display of duration values in nanoseconds formatted as human-readable time periods.
- Adds a new "duration" panel type to the type system
- Implements a DurationPanel component that converts nanoseconds to formatted duration strings
- Integrates the DurationPanel into the existing panel rendering system
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/pages/audit-report/types/index.ts | Extends PanelResult type to include "duration" as a valid panel type |
src/pages/audit-report/components/View/panels/index.ts | Exports the new DurationPanel component |
src/pages/audit-report/components/View/panels/DurationPanel.tsx | Implements the duration panel component with nanosecond-to-duration conversion |
src/pages/audit-report/components/View/View.tsx | Adds duration panel to imports and rendering logic |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
✅ Deploy Preview for clerk-saas-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
resolves: #2626