Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,9 @@ Now tally view checks if it's an automatic ceremony based on only the keys cerem
Documentation sidebar order has been restructured

- Issue: [#8672](https://github.com/sequentech/meta/issues/8672)

## 🐞 Admin Portal > Electoral Logs > Timestamp filter does not work

Fix the filter by timestamp in the Admin Portal's UI.

- Issue: [#9995](https://github.com/sequentech/meta/issues/9995)
12 changes: 12 additions & 0 deletions packages/admin-portal/src/components/ElectoralLogList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,23 @@ export const ElectoralLogList: React.FC<ElectoralLogListProps> = ({
key={"created"}
source={"created"}
label={String(t("logsScreen.column.created"))}
slotProps={{
htmlInput: {
step: 1, // Adds seconds field to the datetime input
},
}}
parse={(value) => (value ? new Date(`${value}Z`).toISOString() : value)}
/>,
<DateTimeInput
key={"statement_timestamp"}
source={"statement_timestamp"}
label={String(t("logsScreen.column.statement_timestamp"))}
slotProps={{
htmlInput: {
step: 1, // Adds seconds field to the datetime input
},
}}
parse={(value) => (value ? new Date(`${value}Z`).toISOString() : value)}
/>,
<TextInput
key={"statement_kind"}
Expand Down
Loading