Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add explorer #1555

Merged
merged 34 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f423957
chore: add explorer scaffolding
dominik-stumpf Nov 20, 2024
b5a8014
feat: add infinite scroll
dominik-stumpf Nov 21, 2024
f5ef465
feat: trigger fetch using observer
dominik-stumpf Nov 21, 2024
77f3e0d
feat: add search
dominik-stumpf Nov 21, 2024
8f90f27
feat: sync search using atoms
dominik-stumpf Nov 21, 2024
bc53faf
fix: prevent rerender by router
dominik-stumpf Nov 21, 2024
83f3260
fix: prevent render loop
dominik-stumpf Nov 21, 2024
42fb878
chore: separate useEffect calls
dominik-stumpf Nov 21, 2024
42785f7
feat: add ssr using tanstack query
dominik-stumpf Nov 21, 2024
23ed0ab
refactor: move out consts and fetchers
dominik-stumpf Nov 21, 2024
cb186a0
chore: align to review suggestions
dominik-stumpf Nov 21, 2024
b160182
chore: dont revalidate search
dominik-stumpf Nov 21, 2024
37563be
chore: replace guild card skeleton
dominik-stumpf Nov 21, 2024
e4a8099
refactor: move out guild card
dominik-stumpf Nov 21, 2024
0d57765
chore: move v2 search
dominik-stumpf Nov 21, 2024
d41eff8
chore: add header prereqs
dominik-stumpf Nov 21, 2024
30cfe33
chore: remove infinite scroll button
dominik-stumpf Nov 21, 2024
1693802
chore: add Toggle and ToggleGroup
dominik-stumpf Nov 21, 2024
2b19a9a
chore: hook sticky header together
dominik-stumpf Nov 21, 2024
8d5830f
feat: add sign in button to explorer
dominik-stumpf Nov 21, 2024
9bed877
fix: adjust navigation alignment
dominik-stumpf Nov 21, 2024
41e3959
fix: make dialog overlay properly
dominik-stumpf Nov 22, 2024
dc7e685
fix: make call to action responsive
dominik-stumpf Nov 22, 2024
afdeea0
chore: resolve merge conflict
dominik-stumpf Nov 22, 2024
398c40d
fix(getGuildSearch): throw on error
BrickheadJohnny Nov 22, 2024
22c187b
fix(InfiniteScrollGuilds): properly update the page param
BrickheadJohnny Nov 22, 2024
a9dea07
fix(GuildCard): don't show legacy guild logos
BrickheadJohnny Nov 22, 2024
ade648c
fix(StickyNavbar): use native scroll
BrickheadJohnny Nov 22, 2024
aec4645
fix(InfiniteScrollGuilds): revert latest change
BrickheadJohnny Nov 22, 2024
05dd1a0
fix(StickyNavbar): remove console.log
BrickheadJohnny Nov 22, 2024
b7164c2
fix: rename `_components` to `components`
BrickheadJohnny Nov 22, 2024
1f14a37
fix(Toggle): colors and variants
BrickheadJohnny Nov 22, 2024
4a9b333
fix: sign in buttom styling
BrickheadJohnny Nov 22, 2024
35dae18
final cleanup
BrickheadJohnny Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions guild.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// dumping here types util it comes down properly

export {}

declare global {
type Guild = {
name: string;
id: string;
urlName: string;
createdAt: number;
updatedAt: number;
description: string;
imageUrl: string;
backgroundImageUrl: string;
visibility: Record<string, string>;
settings: Record<string, string>;
searchTags: string[];
categoryTags: string[];
socialLinks: Record<string, string>;
owner: string;
};

type PaginatedResponse<Item extends any> = {
page: number;
pageSize: number;
sortBy: string;
reverse: boolean;
searchQuery: string;
query: string;
items: Item[];
total: number;
};
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@radix-ui/react-switch": "^1.1.1",
"@t3-oss/env-nextjs": "^0.11.1",
"@tanstack/react-query": "^5.60.2",
"@tanstack/react-query-devtools": "^5.61.0",
"autoprefixer": "^10.4.20",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
Expand Down
12 changes: 12 additions & 0 deletions public/guildLogos/0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/guildLogos/1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/guildLogos/10.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/guildLogos/100.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/guildLogos/101.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/guildLogos/102.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/guildLogos/103.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/guildLogos/104.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/guildLogos/105.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions public/guildLogos/106.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions public/guildLogos/107.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/guildLogos/108.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions public/guildLogos/109.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/guildLogos/11.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/guildLogos/110.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/guildLogos/111.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/guildLogos/112.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/guildLogos/113.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/guildLogos/114.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/guildLogos/115.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/guildLogos/116.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/guildLogos/117.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/guildLogos/118.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions public/guildLogos/119.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions public/guildLogos/12.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/guildLogos/120.svg
7 changes: 7 additions & 0 deletions public/guildLogos/121.svg
Loading
Loading