Skip to content
Open
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 @@ -45,6 +45,7 @@ test("EnvironmentActivityLog page", () => {
path: "test",
method: "test",
buyerName: "test",
companyId: "test",
queryParameters: {},
headers: {},
request: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const mockActivity: IActivityLog = {
path: "/test-path",
method: "GET",
buyerName: "company",
companyId: "company-id",
queryParameters: { param1: "value1" },
headers: { header1: "value1" },
request: { param1: "value1", param2: "value2" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,14 @@ const EnvironmentActivityTable = (props: EnvironmentActivityTablePropsType) => {
},
{
key: "buyerName",
title: "Buyer name",
title: "Buyer information",
width: 200,
render: (log: IActivityLog) => log.buyerName,
render: (_value, log: IActivityLog) => (
<Flex className={styles.productSpec}>
<p>{log.buyerName}</p>
<p>{log.companyId}</p>
</Flex>
),
},
{
key: "status",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,15 @@
background-color: #f5f5f5;
}
}

.productSpec {
display: flex;
flex-direction: column;
align-items: flex-start;

p {
text-align: left !important;
line-height: 1.2;
margin: 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const EnvironmentActivityLog = () => {
fetchBuyerList
}
onChange={handleChange}
placeholder="Please select buyer"
placeholder="Please search by buyer id"
notFoundContent={
'No results found'
}
Expand Down
1 change: 1 addition & 0 deletions kraken-app/kraken-app-portal/src/utils/types/env.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface IActivityLog {
path: string;
method: string;
buyerName: string;
companyId: string;
queryParameters: Record<string, any>;
headers: Record<string, any>;
request: Record<string, any>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class ApiActivityLog extends AbstractHttpModel {
private String clientId;
private String buyer;
private String buyerId;
private String companyId;
private String buyerName;
private String productType;
private String workflowStatus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public Paging<ApiActivityLog> search(LogSearchRequest logSearchRequest, Pageable
UnifiedAsset.getFacets(buyerAssetDto, BuyerOnboardFacets.class);
apiActivityLog.setBuyerName(
facets.getBuyerInfo() == null ? "" : facets.getBuyerInfo().getCompanyName());
apiActivityLog.setCompanyId(
facets.getBuyerInfo() == null ? "" : facets.getBuyerInfo().getBuyerId());
}
return apiActivityLog;
});
Expand Down
Loading