Skip to content

Commit

Permalink
Search page (#73) (#81)
Browse files Browse the repository at this point in the history
* feat: base search

* feat: link pills, speakers and topic cards to search

* feat: mobile responsiveness

* fix: cleanups and loader

* fix: sort fields and query

* refactor: switch useSearch to context from hook

* fix: prevent deopt to CSR with suspense

* feat: clickable pills either as link or function

* feat: loaders

* fix: use tagsDetailed from rebase

* fix: search behaviour logic and search results ui

* refactor: break search box into mobile component, standalone mobile filter menu

* fix(hydration-error): Pills as buttons on featured transcripts

* fix(review-fixes): source naming, result card UI, pagination, readme, use summary

* fix(review-fixes): searchbox clear on page navigation and get topic title for topics facet

* feat(optimizations): too many unnecessary prefetch requests, remove bloated data from landing page

* fix(search): prevent overflow on search results, add mapped topic name in applied filters

* fix(mobile): quality of life improvements
  • Loading branch information
Emmanuel-Develops authored Jan 15, 2025
1 parent 9c382d9 commit 0ce36cb
Show file tree
Hide file tree
Showing 46 changed files with 2,414 additions and 108 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
API_KEY="ELASTIC_API_KEY"
CLOUD_ID="ELASTIC_CLOUD_ID"
INDEX="ELASTIC_INDEX"
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next

## Getting Started

First, run the development server:
Get keys for ElasticSearch and add them to `.env.` file.
namely: `API_KEY`, `CLOUD_ID`, and `INDEX`.

Then, run the development server:

```bash
npm run dev
Expand Down
4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** @type {import('next').NextConfig} */
import exp from "constants";
import { withContentlayer } from "next-contentlayer2";
const nextConfig = {
rewrites: async () => {
Expand Down Expand Up @@ -49,6 +50,9 @@ const nextConfig = {
},
],
},
experimental: {
missingSuspenseWithCSRBailout: false,
},
};

export default withContentlayer(nextConfig);
Loading

0 comments on commit 0ce36cb

Please sign in to comment.