Skip to content

Commit ea1a683

Browse files
Add v2 flag to search result showing the beta badge (#7022)
1 parent f64594a commit ea1a683

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

packages/app/src/app/components/CreateSandbox/SearchResults/SearchResultList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const Results = (props: ResultsProps) => {
5252
insertedAt: new Date(hit.inserted_at).toString(),
5353
updatedAt: new Date(hit.updated_at).toString(),
5454
author: hit.author,
55-
isV2: false,
55+
isV2: hit.custom_template.v2,
5656
source: {
5757
template: hit.template,
5858
},

packages/common/src/types/algolia.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ interface CustomTemplate {
3939
id: string;
4040
icon_url: string | null;
4141
color: string;
42+
v2: boolean | null;
4243
}
4344

4445
interface Author {

packages/common/src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export type CustomTemplate = {
152152
published?: boolean;
153153
title: string;
154154
url: string | null;
155+
v2: boolean | null;
155156
};
156157

157158
export type GitInfo = {

0 commit comments

Comments
 (0)