diff --git a/.cursor/rules/lint-before-done.mdc b/.cursor/rules/lint-before-done.mdc new file mode 100644 index 0000000..f142097 --- /dev/null +++ b/.cursor/rules/lint-before-done.mdc @@ -0,0 +1,14 @@ +--- +description: Run lint/format CI before finishing code changes in this repo +alwaysApply: true +--- + +# Lint before done + +When you change code in this repository, **before reporting the task complete**: + +1. Run `npm run lf:ci` from `feelyourprotocol/website/`. +2. If it fails, fix issues (or run `npm run lf` to auto-fix where possible) and re-run until it passes. +3. Do not skip this for "small" edits — including `community-token/`, `src/`, and config files. + +`lf:ci` = ESLint (whole repo) + Prettier check (`src/`, `cypress/e2e/`, `community-token/`). diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index bf7280e..0932685 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -34,7 +34,7 @@ - [ ] Linting and type checking pass (`npm run lf && npm run type-check`) - [ ] Unit tests pass (`npx vitest run`) - [ ] E2E tests pass (`npm run test:e2e`) -- [ ] Production build succeeds (`npm run build`) +- [ ] Production build succeeds (`npm run build` — website + community-token + docs) - [ ] New exploration is registered in `REGISTRY.ts` - [ ] Library needs were discussed in a separate issue (if applicable — see [Third-Party Libraries](https://docs.feelyourprotocol.org/contributing/third-party-libraries)) diff --git a/README.md b/README.md index 7f894e0..075bcc3 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ npm install npm run dev ``` +## Deployment + +Production builds (`dist/website`, `dist/docs`, `dist/community-token`) are **not** in the repo — the server runs `npm run build:deploy` after `git pull`. See `server-config/deployment/fyp_deploy.sh`. + ## Documentation Full documentation is available at **[docs.feelyourprotocol.org](https://docs.feelyourprotocol.org)**. diff --git a/community-token/README.md b/community-token/README.md index ddb09f1..6a62ee5 100644 --- a/community-token/README.md +++ b/community-token/README.md @@ -22,7 +22,7 @@ npm run community-token:preview Production output: `dist/community-token/` -Full deploy build (main site + community token + docs): +Full deploy build (main site + community token + docs, rebuilt on server — `dist/` is not in git): ```bash npm run build:deploy @@ -30,11 +30,11 @@ npm run build:deploy ## Content (fill in later) -| File | Purpose | -| --- | --- | -| `src/content/fund.ts` | Developer Fund (fee uses + short notes) | +| File | Purpose | +| ----------------------- | ----------------------------------------------------------------------- | +| `src/content/fund.ts` | Developer Fund (fee uses + short notes) | | `src/content/topics.ts` | Intro prose, `HOW_IT_WORKS` box meta, tabbed content (`GUIDELINE_TABS`) | -| `src/content/token.ts` | Which-token reference (name, symbol, links) | +| `src/content/token.ts` | Which-token reference (name, symbol, links) | Layout: two columns on large screens — left: intro + token; right: **How fees are used** box (top) + tabbed **How this works** (bottom). Tabs: `Scope`, `Token Relationship`, `Terms`, `Community`. diff --git a/community-token/index.html b/community-token/index.html index 5266342..217d90b 100644 --- a/community-token/index.html +++ b/community-token/index.html @@ -1,4 +1,4 @@ - + diff --git a/community-token/src/components/FundCommitment.vue b/community-token/src/components/FundCommitment.vue index f3c0215..7b04e95 100644 --- a/community-token/src/components/FundCommitment.vue +++ b/community-token/src/components/FundCommitment.vue @@ -8,7 +8,9 @@ import { FUND_COMMITMENT } from '@ct/content/fund' id="fund" class="ct-section-anchor ct-card overflow-hidden border-purple-200/80 ring-1 ring-purple-100" > -
+

{{ FUND_COMMITMENT.subtitle }}

@@ -32,7 +34,9 @@ import { FUND_COMMITMENT } from '@ct/content/fund' -