+
+
+
.side-panel-header {
display: flex;
+ padding: 20px 10px 10px 10px;
gap: var(--spacing-s);
justify-content: space-between;
align-items: center;
}
+ .pagination {
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-end;
+ margin-top: var(--spacing-xl);
+ }
+
+ .side-panel-body {
+ padding: 10px;
+ height: 95%;
+ }
#side-panel {
position: absolute;
right: 0;
top: 0;
- padding: 24px;
+ padding-bottom: 24px;
background: var(--background);
border-left: var(--border-light);
width: 320px;
@@ -330,7 +361,7 @@
overflow-x: hidden;
transform: translateX(100%);
transition: transform 130ms ease-in-out;
- height: calc(100% - 48px);
+ height: calc(100% - 25px);
z-index: 2;
}
#side-panel.visible {
diff --git a/packages/builder/src/stores/portal/auditLogs.js b/packages/builder/src/stores/portal/auditLogs.js
index 3454aab95c..165e4b5ec5 100644
--- a/packages/builder/src/stores/portal/auditLogs.js
+++ b/packages/builder/src/stores/portal/auditLogs.js
@@ -26,8 +26,6 @@ export function createAuditLogsStore() {
update(state => {
return { ...state, ...events }
})
-
- console.log(events)
}
async function downloadLogs(opts = {}) {
diff --git a/packages/frontend-core/src/api/auditLogs.js b/packages/frontend-core/src/api/auditLogs.js
index 745bfbc742..867644c23c 100644
--- a/packages/frontend-core/src/api/auditLogs.js
+++ b/packages/frontend-core/src/api/auditLogs.js
@@ -1,32 +1,39 @@
const buildOpts = ({
+ bookmark,
userIds,
appIds,
startDate,
endDate,
- metadataSearch,
+ fullSearch,
events,
}) => {
const opts = {}
+ if (bookmark) {
+ opts.bookmark = bookmark
+ }
+
if (startDate && endDate) {
opts.startDate = startDate
opts.endDate = endDate
+ } else if (startDate && !endDate) {
+ opts.startDate = startDate
}
- if (metadataSearch) {
- opts.metadataSearch = metadataSearch
+ if (fullSearch) {
+ opts.fullSearch = fullSearch
}
- if (events) {
- opts.event = events
+ if (events.length) {
+ opts.events = events
}
- if (userIds) {
- opts.userId = userIds
+ if (userIds.length) {
+ opts.userIds = userIds
}
- if (appIds) {
- opts.appId = appIds
+ if (appIds.length) {
+ opts.appIds = appIds
}
return opts