Skip to content

Commit 954ff05

Browse files
committed
feat: enhance database constraints and indexes pages with highlighted search results
1 parent 7cb4257 commit 954ff05

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • apps/desktop/src/routes/_protected/database/$id/definitions

apps/desktop/src/routes/_protected/database/$id/definitions/constraints/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ function DatabaseConstraintsPage() {
154154
>
155155
<Badge variant="outline" className="text-xs font-normal">
156156
<RiTable2 className="mr-1 size-3" />
157-
{item.table}
157+
<HighlightText text={item.table} match={search} />
158158
</Badge>
159159
{item.column && (
160160
<>
161161
<span>on</span>
162162
<Badge variant="outline" className="font-mono text-xs">
163163
<RiLayoutColumnLine className="mr-1 size-3" />
164-
{item.column}
164+
<HighlightText text={item.column} match={search} />
165165
</Badge>
166166
</>
167167
)}

apps/desktop/src/routes/_protected/database/$id/definitions/indexes/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function DatabaseIndexesPage() {
181181
>
182182
<Badge variant="outline" className="text-xs font-normal">
183183
<RiTable2 className="mr-1 size-3" />
184-
{item.table}
184+
<HighlightText text={item.table} match={search} />
185185
</Badge>
186186
<span>on</span>
187187
{item.columns.map((col: string) => (
@@ -191,7 +191,7 @@ function DatabaseIndexesPage() {
191191
className="font-mono text-xs"
192192
>
193193
<RiLayoutColumnLine className="mr-1 size-3" />
194-
{col}
194+
<HighlightText text={col} match={search} />
195195
</Badge>
196196
))}
197197
</div>

0 commit comments

Comments
 (0)