forked from gitcoinco/grants-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gitcoinco:main' into main
- Loading branch information
Showing
398 changed files
with
27,397 additions
and
7,429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,19 @@ | ||
<!-- | ||
Thank you for your pull request! Please review the requirements below | ||
and ensure your pull request has fulfilled all requirements outlined in the target package. | ||
Before submitting a PR for review, please make sure that all the CI checks are passing. | ||
--> | ||
<!-- Thank you for your pull request! Before marking it as "Ready for review", | ||
please ensure that all items of checklist are satisfied and that CI checks are | ||
passing. --> | ||
|
||
## PR checklist | ||
Fixes: #issue | ||
|
||
For every PR, make sure that these statements are true: | ||
- [ ] Includes only changes relevant to the original ticket. Significant refactoring needs to be separated. | ||
- [ ] Doesn't contain type casts and non-null assertions. | ||
- [ ] Doesn't add `@ts-ignore`. | ||
- [ ] Doesn't disable lints. | ||
- [ ] Doesn't use `useState` just for computation - use plain variables instead. | ||
- [ ] Splits components into pure components that don't depend on external state or hooks. | ||
- [ ] Avoid embedding components within other components | ||
- [ ] Doesn't propagate optional values without good reason, doesn't mark property values as optional if that doesn't represent reality. | ||
- [ ] Doesn't duplicate existing code. | ||
- [ ] Parses out-of-domain data - this includes user input, API respones, on-chain data etc. | ||
- [ ] Doesn't contain commented out code. | ||
- [ ] Doesn't contain skipped or empty tests. | ||
- [ ] If this PR adds/updates any feature, it adds/updates its test script | ||
|
||
Subjective - at the discretion of the reviewers | ||
- Does things as simply as possible, but not simpler. | ||
- Doesn't reinvent the wheel or create premature abstractions. | ||
|
||
##### Description | ||
## Description | ||
|
||
<!-- Describe your changes here. --> | ||
|
||
##### Refers/Fixes | ||
## Checklist | ||
|
||
fixes #issuenumber | ||
This PR: | ||
|
||
- [ ] Includes only changes relevant to the original ticket. Significant refactoring needs to be separated. | ||
- [ ] Doesn't disable eslint rules. | ||
- [ ] Doesn't work around the type checker (including but not limited to: type casts, non-null assertions, `@ts-ignore`, unjustified optional values). | ||
- [ ] Doesn't contain commented out code. | ||
- [ ] If adding/updating a feature, it adds/updates its test script on Notion. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Data Layer - Lint & Test & Typecheck | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- release | ||
pull_request: | ||
branches: | ||
- "**" | ||
jobs: | ||
lint-test-typecheck: | ||
concurrency: ci-data-layer-${{ github.head_ref || github.run_id }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
cache: 'pnpm' | ||
|
||
- name: Install Dependencies | ||
run: | | ||
pnpm install | ||
# TODO | ||
# - name: Lint Data Layer | ||
# run: | | ||
# pnpm lint:data-layer | ||
|
||
- name: Test Data Layer | ||
run: | | ||
pnpm test:data-layer | ||
# TODO | ||
# - name: Typecheck Data Layer | ||
# run: | | ||
# pnpm typecheck:data-layer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ jobs: | |
- name: Test Verify-Env | ||
run: | | ||
pnpm ve-test | ||
pnpm test:verify-env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,8 @@ node_modules | |
.turbo | ||
.husky/ | ||
.vercel | ||
/packages/verify-env/dist/ | ||
dist/ | ||
coverage/ | ||
.eslintcache | ||
|
||
bun.lockb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Recommended libraries for use within Grants Stack | ||
|
||
- data validation: https://github.com/colinhacks/zod | ||
- unit testing: https://vitest.dev/ | ||
- client-side data fetching: https://swr.vercel.app/ | ||
- server-side fetch: https://github.com/npm/make-fetch-happen | ||
- server-side sqlite3: https://github.com/WiseLibs/better-sqlite3 | ||
- sql querying: https://kysely.dev/ | ||
- server-side logging: https://github.com/pinojs/pino | ||
- git hook management: https://github.com/evilmartians/lefthook/ | ||
- nodejs execution in dev: https://github.com/esbuild-kit/tsx | ||
- nextjs - https://github.com/vercel/next.js | ||
- tailwind-variants - https://github.com/nextui-org/tailwind-variants | ||
- made a utility function Component utility for polymorphic components nextui-org/tailwind-variants#112 | ||
- merge classNames and easy to apply conditional classes | ||
- msw - https://github.com/mswjs/msw | ||
- react-use - https://github.com/streamich/react-use | ||
- Lot's of great utility hooks | ||
- My favorite starter: | ||
- create t3 app https://github.com/t3-oss/create-t3-app includes next, tailwind, trpc, zod | ||
- Linting and formatting: BiomeJS (formerly Rome.tools) | ||
- UI library for stuff like loading skeletons, dropdowns etc.: Chakra UI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.