Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
3b97df09
Commit
3b97df09
authored
Jan 05, 2026
by
Will Binns-Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feedback
parent
2b4b6100
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
page.tsx
apps/gh-discussion-router/app/search/page.tsx
+12
-3
No files found.
apps/gh-discussion-router/app/search/page.tsx
View file @
3b97df09
...
...
@@ -73,6 +73,15 @@ async function SearchResults({
redirect
(
createUrl
)
}
let
formattedNumberOfDiscussions
try
{
formattedNumberOfDiscussions
=
new
Intl
.
NumberFormat
().
format
(
similarDiscussions
.
length
)
}
catch
{
formattedNumberOfDiscussions
=
similarDiscussions
.
length
.
toString
()
}
return
(
<
main
className=
"min-h-screen p-8 bg-background"
>
<
div
className=
"max-w-4xl mx-auto space-y-8"
>
...
...
@@ -85,9 +94,9 @@ async function SearchResults({
<
div
className=
"space-y-6"
>
<
div
className=
"space-y-4"
>
<
p
className=
"text-muted-foreground"
>
We found
{
similarDiscussions
.
length
}
discussion(s) that might be
related to the problem you're facing. If relevant, please chime in
there rather than creating a new discussion:
We found
{
formattedNumberOfDiscussions
}
discussion(s) that might
be related to the problem you're facing. If relevant, please chime
in
there rather than creating a new discussion:
</
p
>
<
DiscussionList
discussions=
{
similarDiscussions
}
/>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment