-
Notifications
You must be signed in to change notification settings - Fork 929
chore: Add Audit Log components and service to load from the API #3782
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b8fa378
Add basic auditXService code
BrunoQuaresma 38955a8
Add base audit log component
BrunoQuaresma 785f67b
Add basic diff
BrunoQuaresma 7479538
Check emtpy diffs
BrunoQuaresma b30165a
Improve human readable message
BrunoQuaresma f9a7ed7
Move types
BrunoQuaresma 9db3385
Extract components and add storybook
BrunoQuaresma 294dceb
Fix status pill
BrunoQuaresma 1b0ed59
Add tests to check if the audit logs are showing
BrunoQuaresma 6cf89a4
Address PR review
BrunoQuaresma a5da88b
Add i18n
BrunoQuaresma 0267d4e
Merge branch 'main' of github.com:coder/coder into bq/feat-3251
BrunoQuaresma a0ce84e
Fix audit log row to match the new API types
BrunoQuaresma b7ccb0f
Fix types and minor issues on mobile
BrunoQuaresma 03eadb6
Handle errors
BrunoQuaresma 77fa647
Add pagination
BrunoQuaresma dc1543c
Fix table alignment
BrunoQuaresma 901c5f2
Add handler for /count
BrunoQuaresma ebe2792
Update site/src/xServices/audit/auditXService.ts
BrunoQuaresma 75f19b5
Merge branch 'main' of github.com:coder/coder into bq/feat-3251
BrunoQuaresma cfe9d7d
Fix types
BrunoQuaresma f1ba4ac
Fix empty state
BrunoQuaresma 8f1bce7
Display user agent info
BrunoQuaresma b2fd91b
Merge branch 'bq/feat-3251' of github.com:coder/coder into bq/feat-3251
BrunoQuaresma b72c3a9
Fix audit log pagination
BrunoQuaresma 0e052ae
Remove console log
BrunoQuaresma acaa45a
Fix handlers and format
BrunoQuaresma 168cb16
Remove one test
BrunoQuaresma c48a72e
Update user agent on mocks
BrunoQuaresma c398be2
Fix switch color on workspace schedule form
BrunoQuaresma 6d09dfa
Fix button
BrunoQuaresma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add pagination
- Loading branch information
commit 77fa647a1a70e55659d46a5151a53d8c9867ed87
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
import { ComponentMeta, Story } from "@storybook/react" | ||
import { MockAuditLog, MockAuditLog2 } from "testHelpers/entities" | ||
import { AuditPageView } from "./AuditPageView" | ||
import { AuditPageView, AuditPageViewProps } from "./AuditPageView" | ||
|
||
export default { | ||
title: "pages/AuditPageView", | ||
component: AuditPageView, | ||
} as ComponentMeta<typeof AuditPageView> | ||
|
||
const Template: Story = (args) => <AuditPageView {...args} /> | ||
const Template: Story<AuditPageViewProps> = (args) => <AuditPageView {...args} /> | ||
|
||
export const AuditPage = Template.bind({}) | ||
AuditPage.args = { | ||
auditLogs: [MockAuditLog, MockAuditLog2], | ||
count: 1000, | ||
page: 1, | ||
limit: 25, | ||
} | ||
|
||
export const AuditPageSmallViewport = Template.bind({}) | ||
AuditPageSmallViewport.args = { | ||
auditLogs: [MockAuditLog, MockAuditLog2], | ||
count: 1000, | ||
page: 1, | ||
limit: 25, | ||
} | ||
AuditPageSmallViewport.parameters = { | ||
chromatic: { viewports: [600] }, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.