-
-
- Show all venues in {venues[0].cityName}
-
-
-
+
+
+ Show all venues in {venues[0].cityName}
+
+
Not in {venues[0].cityName}? Search for your city in the search
bar above!
-
+
)}
diff --git a/apps/frontend/src/components/SearchBox.tsx b/apps/frontend/src/components/SearchBox.tsx
index e2f0f25..4ef3aa1 100644
--- a/apps/frontend/src/components/SearchBox.tsx
+++ b/apps/frontend/src/components/SearchBox.tsx
@@ -1,6 +1,7 @@
import { keepPreviousData, useQuery } from '@tanstack/react-query'
import { useNavigate } from '@tanstack/react-router'
import { useEffect, useId, useMemo, useState } from 'react'
+import { HarpIcon } from '#/components/HarpIcon'
import type { FormEvent, KeyboardEvent } from 'react'
import { graphqlFetch } from '../graphql/client'
@@ -332,9 +333,7 @@ export function SearchBox({ coordinates = null, filters }: SearchBoxProps) {
}`}
className="inline-flex shrink-0 items-center gap-1 rounded-full bg-(--chip-bg) px-1.5 py-0.5 text-xs font-bold"
>
-
- ★
-
+
{result.averageRating.toFixed(1)}
({result.reviewCount ?? 0})
diff --git a/apps/frontend/src/components/SearchFilters.tsx b/apps/frontend/src/components/SearchFilters.tsx
index 8a75369..7d11acd 100644
--- a/apps/frontend/src/components/SearchFilters.tsx
+++ b/apps/frontend/src/components/SearchFilters.tsx
@@ -159,7 +159,7 @@ export default function SearchFilters({
{RATING_OPTIONS.map((rating) => (
))}
diff --git a/apps/frontend/src/components/ViewVenue.tsx b/apps/frontend/src/components/ViewVenue.tsx
index efa6128..e90b923 100644
--- a/apps/frontend/src/components/ViewVenue.tsx
+++ b/apps/frontend/src/components/ViewVenue.tsx
@@ -1,3 +1,4 @@
+import { HarpIcon } from '#/components/HarpIcon'
import {
formatOpeningDays,
formatOpeningTime,
@@ -23,9 +24,7 @@ export function ViewVenue({ venue }: { venue: SearchResult }) {
className="mt-0.5 inline-flex shrink-0 items-center gap-1 rounded-full px-2.5 py-1 text-sm font-bold text-(--sea-ink)"
>
Average rating:
-
- ★
-
+
{venue.averageRating.toFixed(1)}
out of 5 from {venue.reviewCount ?? 0}{' '}
diff --git a/apps/frontend/src/routes/$cityId/venues/$venueId.tsx b/apps/frontend/src/routes/$cityId/venues/$venueId.tsx
index 0f5b23c..7462721 100644
--- a/apps/frontend/src/routes/$cityId/venues/$venueId.tsx
+++ b/apps/frontend/src/routes/$cityId/venues/$venueId.tsx
@@ -2,6 +2,7 @@ import type { ReactNode } from 'react'
import { useQuery } from '@tanstack/react-query'
import { Link, createFileRoute } from '@tanstack/react-router'
import Breadcrumbs from '#/components/Breadcrumbs'
+import { HarpIcon } from '#/components/HarpIcon'
import { ReportPriceDialog } from '#/components/prices/ReportPriceDialog'
import AddReviewDialog from '#/components/reviews/AddReviewDialog'
import { venueToSearchResult } from '#/components/VenueCard'
@@ -146,6 +147,17 @@ function BackLink() {
)
}
+// The five harps keep the exact width and height of the old five-star row.
+function Harps({ className = '' }: { className?: string }) {
+ return (
+
+ {Array.from({ length: 5 }, (_, index) => (
+
+ ))}
+
+ )
+}
+
function Rating({ rating }: { rating: number }) {
const percent = Math.max(0, Math.min(100, (rating / 5) * 100))
@@ -153,18 +165,16 @@ function Rating({ rating }: { rating: number }) {
-
- ★★★★★
-
+
- ★★★★★
+