Skip to content

Commit

Permalink
styling: footer zlayer on ecomm search page.html component
Browse files Browse the repository at this point in the history
  • Loading branch information
skeptrunedev authored and fedhacks committed Dec 19, 2024
1 parent 8ba1270 commit a07437b
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 7 deletions.
2 changes: 1 addition & 1 deletion clients/search-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"import": "./dist/vanilla/index.js"
}
},
"version": "0.2.38",
"version": "0.2.39",
"license": "MIT",
"homepage": "https://github.com/devflowinc/trieve/tree/main/clients/search-component",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion clients/search-component/src/TrieveModal/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ body {
}

.no-results {
@apply text-sm text-center my-8 flex flex-col gap-2;
@apply text-sm text-center my-8 flex flex-col gap-2 col-span-full;

> p.no-results-text {
@apply font-medium;
Expand Down
2 changes: 0 additions & 2 deletions clients/search-component/src/TrieveModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ const Modal = () => {
}

if (chatOuterWrapper) {
console.log("here1");
(chatOuterWrapper as HTMLElement).style.maxHeight =
`calc(${viewportHeight}px - ${
props.type == "ecommerce" ? "220px" : "175px"
})`;
}
} else {
console.log("here");
if (chatOuterWrapper) {
(chatOuterWrapper as HTMLElement).style.maxHeight = `calc(60vh - ${
props.type == "ecommerce" ? "220px" : "200px"
Expand Down
56 changes: 55 additions & 1 deletion clients/ts-sdk/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3928,6 +3928,50 @@
]
}
},
"/api/dataset/pagefind": {
"put": {
"tags": [
"Dataset"
],
"summary": "Create Pagefind Index for Dataset",
"description": "Uses pagefind to index the dataset and store the result into a CDN for retrieval. The auth'ed\nuser must be an admin of the organization to create a pagefind index for a dataset.",
"operationId": "create_pagefind_index_for_dataset",
"parameters": [
{
"name": "TR-Dataset",
"in": "header",
"description": "The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"responses": {
"204": {
"description": "Dataset indexed successfully"
},
"400": {
"description": "Service error relating to creating the index",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponseBody"
}
}
}
}
},
"security": [
{
"ApiKey": [
"admin"
]
}
]
}
},
"/api/dataset/tracking_id/{tracking_id}": {
"get": {
"tags": [
Expand Down Expand Up @@ -10053,7 +10097,9 @@
"csv_jsonl_processing_failed",
"csv_jsonl_processing_checkpoint",
"csv_jsonl_processing_completed",
"video_uploaded"
"video_uploaded",
"pagefind_indexing_started",
"pagefind_indexing_finished"
]
},
"EventTypes": {
Expand Down Expand Up @@ -12669,6 +12715,14 @@
"type": "string",
"format": "uuid"
},
"group_ids": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
},
"nullable": true
},
"image_urls": {
"type": "array",
"items": {
Expand Down
2 changes: 1 addition & 1 deletion clients/ts-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"files": [
"dist"
],
"version": "0.0.48",
"version": "0.0.49",
"license": "MIT",
"scripts": {
"lint": "eslint 'src/**/*.ts'",
Expand Down
27 changes: 26 additions & 1 deletion clients/ts-sdk/src/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ export type EventReturn = {
page_count: number;
};

export type EventTypeRequest = 'file_uploaded' | 'file_upload_failed' | 'chunks_uploaded' | 'chunk_action_failed' | 'chunk_updated' | 'bulk_chunks_deleted' | 'dataset_delete_failed' | 'qdrant_upload_failed' | 'bulk_chunk_upload_failed' | 'group_chunks_updated' | 'group_chunks_action_failed' | 'crawl_completed' | 'crawl_failed' | 'crawl_started' | 'csv_jsonl_processing_failed' | 'csv_jsonl_processing_checkpoint' | 'csv_jsonl_processing_completed' | 'video_uploaded';
export type EventTypeRequest = 'file_uploaded' | 'file_upload_failed' | 'chunks_uploaded' | 'chunk_action_failed' | 'chunk_updated' | 'bulk_chunks_deleted' | 'dataset_delete_failed' | 'qdrant_upload_failed' | 'bulk_chunk_upload_failed' | 'group_chunks_updated' | 'group_chunks_action_failed' | 'crawl_completed' | 'crawl_failed' | 'crawl_started' | 'csv_jsonl_processing_failed' | 'csv_jsonl_processing_checkpoint' | 'csv_jsonl_processing_completed' | 'video_uploaded' | 'pagefind_indexing_started' | 'pagefind_indexing_finished';

export type EventTypes = {
/**
Expand Down Expand Up @@ -2158,6 +2158,7 @@ export type PublicPageTheme = 'light' | 'dark';
export type QdrantChunkMetadata = {
chunk_html?: (string) | null;
dataset_id: string;
group_ids?: Array<(string)> | null;
image_urls?: Array<(string)> | null;
link?: (string) | null;
location?: ((GeoInfo) | null);
Expand Down Expand Up @@ -4266,6 +4267,15 @@ export type GetDatasetsFromOrganizationData = {

export type GetDatasetsFromOrganizationResponse = (Array<DatasetAndUsage>);

export type CreatePagefindIndexForDatasetData = {
/**
* The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
*/
trDataset: string;
};

export type CreatePagefindIndexForDatasetResponse = (void);

export type GetDatasetByTrackingIdData = {
/**
* The tracking id of the dataset you want to retrieve.
Expand Down Expand Up @@ -5726,6 +5736,21 @@ export type $OpenApiTs = {
};
};
};
'/api/dataset/pagefind': {
put: {
req: CreatePagefindIndexForDatasetData;
res: {
/**
* Dataset indexed successfully
*/
204: void;
/**
* Service error relating to creating the index
*/
400: ErrorResponseBody;
};
};
};
'/api/dataset/tracking_id/{tracking_id}': {
get: {
req: GetDatasetByTrackingIdData;
Expand Down
4 changes: 4 additions & 0 deletions server/src/public/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@
z-index: 20;
}

.trieve-footer {
z-index: 20;
}

.floating-action-button {
z-index: 20;
}
Expand Down

0 comments on commit a07437b

Please sign in to comment.