Commit Graph

510 Commits

Author SHA1 Message Date
arthur
7887f50b1a ci(deploy): install contracts submodule via yarn before SPA build (#15)
The p2pix-smart-contracts submodule ships a yarn v4 lockfile that bun
cannot consume (UnsupportedYarnLockfileVersion). Install yarn in the
build container, check out the submodule, and run yarn install via a
new install:contracts package.json script. Then run wagmi:gen so
src/blockchain/abi.ts exists before vite build.

Co-authored-by: Arthur Abeilice <afa7789@gmail.com>
Reviewed-on: https://git.p2pix.co/doiim/p2pix-front-end/pulls/15
Co-authored-by: arthur <abeilice@kosmos.org>
Co-committed-by: arthur <abeilice@kosmos.org>
2026-06-02 01:41:01 +00:00
hueso
e182347f5e run CI/CD on dev branch and tags 2026-06-02 01:41:01 +00:00
9f04c09704 fix(ui): remove unnecessary line breaks in component templates for consistency 2026-06-02 01:41:01 +00:00
36cd57b59e fix(ui): os devs do bb usaram classe com numero errado, ao atualizar p/ nova versão quebrou devido a cor padrão, remover classe p/ adaptar p/ tailwind4 2026-06-02 01:41:01 +00:00
0bc4e4ccf3 chore(knip): remove unnecessary ignore pattern from knip.json 2026-06-02 01:41:01 +00:00
00390ab0c3 chore(knip): add config and remove dead code/deps
- knip.json: scope to src, ignore submodule/worktrees, mark
  generated abi.ts as unresolved-allowed, honor @public JSDoc tag
- drop 14 orphaned files (12 ui components, model/Bank, model/Pix)
- drop 18 unused deps (urql, tanstack, wagmi/{core,vue}, graphql,
  permissionless, graphql-codegen suite, axe-core, lighthouse,
  vue/test-utils)
- drop 4 unused exports and de-export 9 internal-only types
- mark NetworksTestnet as @public (in-flight testnet support)
2026-06-02 01:41:01 +00:00
5dc630acdf chore: remove zkPix submodule 2026-06-02 01:41:01 +00:00
arthur
9828a44cf8 break actions in multiple (#12)
feat: add linting workflow for code quality checks
feat: add testing workflow for unit tests and coverage reporting
chore: update .gitignore to include additional files
Co-authored-by: Arthur Abeilice <afa7789@gmail.com>
Reviewed-on: https://git.p2pix.co/doiim/p2pix-front-end/pulls/12
Co-authored-by: arthur <abeilice@kosmos.org>
Co-committed-by: arthur <abeilice@kosmos.org>
2026-06-02 01:41:01 +00:00
hueso
616302ffbe clean AI slop 2026-06-02 01:41:01 +00:00
cee0cc1296 refactor(eslint): use defineConfigWithVueTs and extends instead of map 2026-06-02 01:41:01 +00:00
72b9b64da8 chore(scripts): update lint commands to remove directory scope 2026-06-02 01:41:01 +00:00
e2a03786e1 chore(eslint): scope rules via files instead of negated ignores 2026-06-02 01:41:01 +00:00
918e6fecde chore(eslint): move src/tests scoping into config via negated ignores 2026-06-02 01:41:01 +00:00
0cdc69d4da chore(scripts): scope lint to src and tests instead of repo-wide 2026-06-02 01:41:01 +00:00
ee783ea727 docs(README): drop stale liftlearning sonarcloud badges 2026-06-02 01:41:01 +00:00
0761f74e1a docs(README): drop self-clone link, list current per-network env vars 2026-06-02 01:41:01 +00:00
289910df95 chore(scripts,docs): make submodule bootstrap explicit, drop auto-install on start 2026-06-02 01:41:01 +00:00
c7a285c4a1 chore(scripts): simplify wagmi:gen script by removing redundant .env check 2026-06-02 01:41:01 +00:00
c9ca178b24 chore(scripts): drop redundant lifecycle wrappers, inline submodule setup into wagmi:gen 2026-06-02 01:41:01 +00:00
555eac9e7c fix(scripts): contracts:setup preserves existing .env, handles macOS cp 2026-06-02 01:41:01 +00:00
10569db3b1 chore(scripts): use wagmi binary and stop clobbering submodule .env 2026-06-02 01:41:01 +00:00
2e2d2ff6d7 chore(submodules): remove branch specification for p2pix-smart-contracts and zkPix 2026-06-02 01:41:01 +00:00
e7bf32b6c3 chore(codegen): restore minimal wagmi.config.ts (hardhat plugin)
Reverts wagmi.config.ts to the pre-existing simpler shape (hardhat
plugin auto-discovers artifacts) and drops our hand-rolled readFileSync
bootstrap. The plugin emits ABIs for every compiled contract; unused
ones are tree-shaken out of the production bundle, and the file itself
is gitignored so the extra bytes never hit the repo.

The plugin runs `npx hardhat compile` internally, which loads
hardhat.config.ts at import time and throws when ALCHEMY_API_KEY is
missing — env vars from our wrapper script don't propagate into the
plugin's subprocess. Fix: prewagmi:gen now bootstraps a placeholder
.env inside the submodule (gitignored there via *.env), instead of
running our own `hardhat compile` with inline env vars.

- wagmi.config.ts: hardhat({ project: 'p2pix-smart-contracts' }), no
  explicit contracts/loadAbi
- package.json: contracts:compile -> contracts:setup
  (bun install + create .env if absent); the wagmi hardhat plugin
  handles the actual compile
2026-06-02 01:41:01 +00:00
4a09a323bd chore(codegen): drop @wagmi/cli actions plugin (no callers in src/, generated file shrinks ~63%) 2026-06-02 01:41:01 +00:00
6c5c487874 chore(codegen): keep src/blockchain/abi.ts as wagmi output + infra polish
Path revert (reduces churn / preserves existing imports):
- wagmi.config.ts: out -> src/blockchain/abi.ts (was src/generated.ts)
- Restore the 4 import sites (sellerMethods, events, provider,
  BuyerSearchComponent) to import from './abi' / '@/blockchain/abi'
- .gitignore: ignore src/blockchain/abi.ts (was src/generated.ts)

The file keeps its original location and is no longer committed — it is
regenerated from the smart-contracts submodule artifacts on every
prestart via `bun run wagmi:gen`.

Infra polish:
- package.json: contracts:compile uses pushd/popd (instead of cd) so the
  shell returns to the project root after the submodule build, even when
  the script is the leaf of a longer chain
- .gitmodules: zkPix submodule pinned to `dev`
2026-06-02 01:41:01 +00:00
4e65ab7ff0 chore(codegen): drop committed src/blockchain/abi.ts in favor of generated src/generated.ts
The 58KB src/blockchain/abi.ts was the output of the legacy hardhat-based
wagmi config and was being committed verbatim. Since wagmi.config.ts now
emits src/generated.ts (gitignored, regenerated on every prestart via
`bun run wagmi:gen`), keeping the old artifact in the tree was just dead
weight.

- Remove src/blockchain/abi.ts from tracking
- Repoint 4 imports (sellerMethods, events, provider, BuyerSearchComponent)
  from `@/blockchain/abi` / `./abi` to `@/generated`
- contracts:compile now injects ALCHEMY_API_KEY=placeholder + a default
  test MNEMONIC so hardhat.config.ts can load without a manual .env in
  the submodule (matches the placeholder values used in p2pix-front-end's
  submodule .env)
2026-06-02 01:41:01 +00:00
7c17e940da chore(codegen): wire wagmi ABI codegen against smart-contracts submodule
- wagmi.config.ts: read ABIs from p2pix-smart-contracts/artifacts/contracts
  (P2Pix, Reputation, MockToken) and emit src/generated.ts with the
  @wagmi/cli actions plugin
- package.json: add scripts
  * contracts:compile — installs submodule deps + runs `hardhat compile`
  * wagmi:gen — runs @wagmi/cli to (re)generate src/generated.ts
  * prewagmi:gen — chains contracts:compile before wagmi:gen
  * prestart — runs wagmi:gen, so `bun start` always has fresh ABIs
- .gitignore: ignore src/generated.ts (regenerated on every prestart)

Note: GraphQL/subgraph codegen is intentionally out of scope here — it
will land in its own branch.
2026-06-02 01:41:01 +00:00
bdaffbd889 chore: add p2pix-smart-contracts (dev) and zkPix (feat/fake-bb-sandbox) submodules 2026-06-02 01:41:01 +00:00
9c948d7da4 refactor: standardize quote styles to single quotes across all files 2026-06-02 01:41:01 +00:00
af897e7dd4 feat: add Tailwind CSS reference to multiple components for styling consistency 2026-06-02 01:41:01 +00:00
663a0bce46 add @web3-onboard back as stop-gap until reown migration 2026-06-02 01:41:01 +00:00
4469ccb30a refactor: update configuration files to use ES module syntax and integrate Tailwind CSS 2026-06-02 01:41:01 +00:00
98c6e04a16 feat: render app version in bottom-left footer 2026-06-02 01:41:01 +00:00
d63cb8c6d3 refactor: clean up code formatting and improve readability across multiple components
- Standardized the use of quotes and spacing in various files.
- Removed unnecessary line breaks and trailing spaces in components.
- Improved the structure of computed properties and methods for better clarity.
- Enhanced the consistency of prop definitions and emit events in Vue components.
- Updated the GraphQL composable to streamline error handling and data processing.
- Refactored network configuration files for better organization and readability.
- Cleaned up model files by removing redundant lines and ensuring consistent formatting.
- Adjusted router configuration for improved readability.
- Enhanced utility functions for better maintainability and clarity.
2026-06-02 01:41:01 +00:00
c481d9d0a5 migrate eslint to flat config (eslint 10) 2026-06-02 01:41:01 +00:00
63f5ee017b refactor: update TypeScript configuration to extend correct Vue tsconfig files 2026-06-02 01:41:01 +00:00
dacbeac019 update Dockerfile to use latest bun image 2026-06-02 01:41:01 +00:00
18efb7543e use oven-sh/setup-bun action in CI 2026-06-02 01:41:01 +00:00
6caf34b579 switch to bun + adopt e2e dependency stack 2026-06-02 01:41:01 +00:00
hueso
ec1053c660 simplify networks config 2026-06-02 01:41:01 +00:00
hueso
46be71046a Merge branch 'develop' 2026-03-13 01:11:07 -03:00
hueso
ebe03eb439 deploy to branch 2026-03-13 01:08:54 -03:00
hueso
abeef0bd85 deploy to node 2026-03-05 22:30:50 -03:00
hueso
ea5773c7d0 CI: build-only (no type-check) 2026-03-05 22:19:37 -03:00
hueso
95c3692bcb piñata soft fail 2026-03-05 22:19:27 -03:00
hueso
7cda8d5573 import contracts from submodule 2026-03-05 21:59:10 -03:00
hueso
6cfe478177 manually trigger IPFS action 2026-03-05 21:58:59 -03:00
hueso
f31fa15887 add basic error handling on subgraph queries 2026-02-06 15:02:18 -03:00
hueso
ad5b0a3a93 fix: chainID as hex on web3onboard call 2026-02-06 15:02:18 -03:00
hueso
6979ba0402 fix: sellerId as string 2026-02-06 15:02:18 -03:00