(UI Logs) - add pagination + filtering by key name/team name (#7860)

* fix remove emoji on logs page

* fix title of page

* ui - get countryIP

* ui lookup

* ui - get country from ip address

* show team and key alias on root

* working team / key filter

* working filters

* ui filtering by key / team alias

* simple search

* fix add pagination on view logs page

* add start / end time filters

* add custom time filter
This commit is contained in:
Ishaan Jaff 2025-01-18 12:47:01 -08:00 committed by GitHub
parent f60756c815
commit f6a0bc8bdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 453 additions and 42 deletions

View file

@ -1513,6 +1513,7 @@ export const userSpendLogsCall = async (
throw error;
}
};
export const uiSpendLogsCall = async (
accessToken: String,
api_key?: string,
@ -1520,6 +1521,8 @@ export const uiSpendLogsCall = async (
request_id?: string,
start_date?: string,
end_date?: string,
page?: number,
page_size?: number,
) => {
try {
// Construct base URL
@ -1532,6 +1535,9 @@ export const uiSpendLogsCall = async (
if (request_id) queryParams.append('request_id', request_id);
if (start_date) queryParams.append('start_date', start_date);
if (end_date) queryParams.append('end_date', end_date);
if (page) queryParams.append('page', page.toString());
if (page_size) queryParams.append('page_size', page_size.toString());
// Append query parameters to URL if any exist
const queryString = queryParams.toString();
if (queryString) {