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

v3 #1547

Draft
wants to merge 80 commits into
base: main
Choose a base branch
from
Draft

v3 #1547

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
6aea6f0
cleanup: remove old code and create a new base template
BrickheadJohnny Nov 18, 2024
9dc61e5
fix: don't run gh actions for now
BrickheadJohnny Nov 18, 2024
ce229b9
feat: simple storybook setup with a Button component
BrickheadJohnny Nov 19, 2024
e397e95
feat: simple Card component
BrickheadJohnny Nov 19, 2024
077ce8b
feat: simple Badge component
BrickheadJohnny Nov 19, 2024
c42fea7
feat: simple GuildCard component without props
BrickheadJohnny Nov 19, 2024
f242b41
adjust and test project setup (#1548)
dominik-stumpf Nov 19, 2024
e1f0eb9
feat: `blackAlpha` & `whiteAlpha` CSS variables
BrickheadJohnny Nov 19, 2024
02174ea
feat: Dialog, Drawer and ResponsiveDialog components (#1549)
BrickheadJohnny Nov 19, 2024
499e1ca
feat: simple sign in flow (#1551)
BrickheadJohnny Nov 20, 2024
b1a6f85
build: use turbopack only
dominik-stumpf Nov 20, 2024
7ae3876
chore: merge main branch
dominik-stumpf Nov 20, 2024
bf7f10d
feat: form related components (#1553)
BrickheadJohnny Nov 20, 2024
1f089e2
chore: remove package-lock.json
dominik-stumpf Nov 20, 2024
198f502
chore: make cookie expiration same as jwt (#1554)
dominik-stumpf Nov 20, 2024
107df80
add explorer (#1555)
dominik-stumpf Nov 22, 2024
9ea202c
refactor: move status text out of markup
dominik-stumpf Nov 22, 2024
22fada3
fix: use urlName as key
dominik-stumpf Nov 22, 2024
4e4d409
fix: add unable to load guilds response
dominik-stumpf Nov 22, 2024
08168c2
feat: Toast component with Sonner (#1559)
BrickheadJohnny Nov 25, 2024
d430064
chore: replace google font provider, adjust storybook config (#1560)
dominik-stumpf Nov 25, 2024
b05474d
add static pages (#1557)
dominik-stumpf Nov 25, 2024
b3cfc89
feat: create guild page (#1556)
BrickheadJohnny Nov 25, 2024
07ada4c
chore: remove fetchpriority
dominik-stumpf Nov 25, 2024
cd0a8c2
fix: update environment variables (#1563)
BrickheadJohnny Nov 25, 2024
1a17e85
chore: add favicon
BrickheadJohnny Nov 25, 2024
9f0f9bd
feat: redirect to `/explorer`
BrickheadJohnny Nov 25, 2024
99d59ea
fix(Header): adjust border-radius
BrickheadJohnny Nov 25, 2024
fe568d4
fix: SIWE domain issue (#1564)
BrickheadJohnny Nov 25, 2024
27136f8
create dashboard group (#1562)
dominik-stumpf Nov 25, 2024
15a967e
test: add storybook for missing ui components
dominik-stumpf Nov 25, 2024
9755dea
chore: add dimmed color
dominik-stumpf Nov 25, 2024
8630233
fix(InfiniteScrollGuilds): add unique keys
BrickheadJohnny Nov 26, 2024
9fb4eac
feat(SignInDialog): generate SIWE URL on the fly (#1566)
BrickheadJohnny Nov 26, 2024
ffc4913
feat: Popover component
BrickheadJohnny Nov 26, 2024
68c49d6
fix(Popover): z-index value
BrickheadJohnny Nov 26, 2024
3504868
feat: add NavMenu
BrickheadJohnny Nov 26, 2024
aed3507
fix: fine-tune secondary text color
BrickheadJohnny Nov 26, 2024
d5efb98
chore: align toast to start (#1565)
dominik-stumpf Nov 26, 2024
95c6ae9
cleanup: remove unused `NEXT_PUBLIC_SIWE_URL` env var
BrickheadJohnny Nov 26, 2024
c4333d6
chore(SignInDialog): add `biome-ignore` comments
BrickheadJohnny Nov 26, 2024
d6bab0a
feat: Guild, Role, RoleGroup schemas (#1567)
BrickheadJohnny Nov 26, 2024
b5ffe17
cleanup: remove unnecessary TODO comment
BrickheadJohnny Nov 26, 2024
8b3c7e7
feat(GuildCard): display member count and role count
BrickheadJohnny Nov 26, 2024
b185823
fix: ImageUrlSchema
BrickheadJohnny Nov 26, 2024
ee2f727
feat: use Bun in the `code-check` GitHub Action (#1568)
BrickheadJohnny Nov 26, 2024
963138e
feat(SignInDialog): add links
BrickheadJohnny Nov 26, 2024
201e0a1
fix(GuildCard): properly pluralize text on the role badge
BrickheadJohnny Nov 26, 2024
f68cbb4
feat: enable the `storybook-deploy` GitHub Action
BrickheadJohnny Nov 26, 2024
baf794d
Revert "feat: enable the `storybook-deploy` GitHub Action"
BrickheadJohnny Nov 26, 2024
02d001d
feat: `storybook-deploy` GitHub Action with Bun
BrickheadJohnny Nov 26, 2024
c4d223e
fix(storybook-deploy): set up Bun
BrickheadJohnny Nov 26, 2024
5cb7db2
cleanup: remove the Playwright GitHub Action for now
BrickheadJohnny Nov 26, 2024
f264981
fix: don't increase img/video contrast in dark mode
BrickheadJohnny Nov 27, 2024
d57e161
chore: extract changes from `add-guild-page` branch
dominik-stumpf Nov 27, 2024
0850a44
fix: use only Link for NavMenu
dominik-stumpf Nov 27, 2024
cbd03d1
refactor: refurbish old hooks
dominik-stumpf Nov 27, 2024
1fce6dc
remove slugify and adjust guild creation to backend (#1569)
dominik-stumpf Nov 27, 2024
6204953
fix: align page to center
dominik-stumpf Nov 27, 2024
413f253
chore: pull changes from add-guild-page
dominik-stumpf Nov 27, 2024
71296ab
Merge branch 'v3-main' of github.com:guildxyz/guild.xyz into v3-main
dominik-stumpf Nov 27, 2024
7ac01cb
feat: add your guild
dominik-stumpf Nov 27, 2024
7e25c56
feat: Tooltip component
BrickheadJohnny Nov 28, 2024
5494dee
feat: requirement building blocks (#1571)
BrickheadJohnny Nov 28, 2024
9ac44d2
feat(explorer): background image
BrickheadJohnny Nov 29, 2024
85f7ceb
fix(CreateGuildLink): accept className prop
BrickheadJohnny Nov 29, 2024
bf4e8ff
chore: add ts-reset and default react-query error, refactor fetchers
dominik-stumpf Dec 2, 2024
06d6c96
chore: extract changes from `add-guild-page` branch (#1578)
dominik-stumpf Dec 4, 2024
99a85ec
fix: invalidate cache on logout
dominik-stumpf Dec 4, 2024
422899a
refactor: use try catch in auth boundary
dominik-stumpf Dec 4, 2024
e9aa357
chore: rename id back to your-guilds
dominik-stumpf Dec 4, 2024
58d6143
fix: inline server side cookie acquisition
dominik-stumpf Dec 4, 2024
13ff883
chore: remove tsc from precommit hook
dominik-stumpf Dec 6, 2024
a503bce
feat: add global error page
dominik-stumpf Dec 6, 2024
1db32bf
feat(SignInDialog): add WalletConnect & Coinbase Wallet options
BrickheadJohnny Dec 9, 2024
23e189b
fix(Dialog & Drawer): footer padding
BrickheadJohnny Dec 11, 2024
0e10cf3
feat: IconButton component
BrickheadJohnny Jan 2, 2025
514e477
fix(Skeleton): import HTMLAttributes type from react
BrickheadJohnny Jan 2, 2025
6982b04
fix(Toaster): import ComponentProps type from react
BrickheadJohnny Jan 2, 2025
68867a3
feat(SignInDialog): add disconnect wallet button
BrickheadJohnny Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 0 additions & 14 deletions .env

This file was deleted.

23 changes: 0 additions & 23 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,23 +0,0 @@
ALCHEMY_KEY=""
ARBITRUM_ALCHEMY_KEY=""
BALANCY_TOKEN=""
BASE_ALCHEMY_KEY=""
EDGE_CONFIG=""
GOERLI_ALCHEMY_KEY=""
GUILD_API_KEY=""
IPFS_GATEWAY=""
MAINNET_ALCHEMY_KEY=""
NACL_PUBLIC=""
NETWORK_NAME=""
NOOX_KEY=""
OPENSEA_API_KEY=""
OPTIMISM_ALCHEMY_KEY=""
PINATA_ADMIN_JWT=""
PINATA_ADMIN_KEY=""
PINATA_ADMIN_SECRET=""
POLYGON_ALCHEMY_KEY=""
POLYGON_MUMBAI_ALCHEMY_KEY=""
SECRET_WORDS=""
SEPOLIA_ALCHEMY_KEY=""
SOUND_API_KEY=""
ZEROX_API_KEY=""
10 changes: 4 additions & 6 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: npm install
run: bun install
- name: Run TypeScript compiler
run: npm run type-check
run: bun run type-check
37 changes: 0 additions & 37 deletions .github/workflows/playwright.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/purge-cloudflare-cache.yml

This file was deleted.

9 changes: 6 additions & 3 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Build and Publish storybook to GitHub Pages

on:
push:
branches:
- "main"
branches: ["main", "v3-main"]

permissions:
contents: read
Expand All @@ -14,7 +13,11 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- id: build-publish
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: build-publish
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
path: storybook-static
install_command: bun install
build_command: bun build-storybook
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

6 changes: 1 addition & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npm run type-check -- --incremental true
bunx lint-staged
12 changes: 0 additions & 12 deletions .snyk

This file was deleted.

7 changes: 1 addition & 6 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@ const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-onboarding",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
"@storybook/addon-styling-webpack",
"@storybook/addon-themes",
],
framework: {
name: "@storybook/nextjs",
options: {},
},
staticDirs: ["../public", { from: "../public/fonts", to: "/public/fonts" }],
refs: {
"@chakra-ui/react": {
disable: true,
},
},
};
export default config;
31 changes: 0 additions & 31 deletions .storybook/preview.ts

This file was deleted.

36 changes: 36 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import type { Preview } from "@storybook/react";
import "../src/styles/globals.css";

import { dystopian } from "@/lib/fonts";
import { withThemeByClassName } from "@storybook/addon-themes";
import { useEffect } from "react";

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
decorators: [
withThemeByClassName({
themes: {
light: "",
dark: "dark",
},
defaultTheme: "dark",
}),
(storyFn) => {
useEffect(() => {
if (typeof document === "undefined") return;
document?.querySelector("body")?.classList.add(dystopian.variable);
}, []);

return storyFn();
},
],
};

export default preview;
30 changes: 6 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Open source interface for Guild.xyz -- a tool for platformless membership manage
## Key dependencies overview

- Framework
- React with Next.js
- Next.js
- Styling:
- Chakra UI (migration to Tailwind CSS and Radix UI in progress)
- Tailwind CSS
- Radix UI
- Phosphor icons
- Framer motion
- State management:
- SWR for fetching and caching
- React Hook Form for form state
- jotai for custom, simple global state
- Testing:
Expand All @@ -27,43 +27,25 @@ Open source interface for Guild.xyz -- a tool for platformless membership manage
- Web3 related:
- viem
- wagmi for connection management
- Data visualization, graphics:
- visx
- threejs
- Deployment:
- Vercel
- Product analytics:
- PostHog
- Error monitoring:
- BugSnag

## Development

### Running the interface locally

1. `npm i`
2. `npm run dev`
1. `bun i`
2. `bun run dev`
3. If you don't have the secret environment variables, copy the `.env.example` as `.env.local`.

Open [http://localhost:3000](http://localhost:3000) in your browser to see the result.

> [!WARNING]
> We've recently turned on `strict` and `strictNullChecks` tsconfig options, and decided to gradually fix the related TypeScript issues. The pre-commit hook will ignore these, but it is expected that you'll see different issues during local development. Feel free to open a PR if you fix some of them. :wink:

#### For Windows users

If you encounter the error `ERR_OSSL_EVP_UNSUPPORTED` you can do :

```bash
export NODE_OPTIONS=--openssl-legacy-provider
npm i --force
npm run dev
```

### Getting secret environment variables (for core team members):

1. Get added to the team on Vercel
1. `npm i vercel@latest -g`
1. `bun i vercel@latest -g`
1. `vercel link`
1. `vercel env pull .env.local`

Expand Down
Loading
Loading