Commit Graph

77 Commits

Author SHA1 Message Date
Matthew Bunday
ce51c6e33d Multiname management (#1216)
* Scaffold page

* Add NamesList component

* API endppint for getUsernames

* Add NamesList component

* Move route

* Ugly list demo working

* Style it up a bit

* Manage names list styling and expiry display

* Style the header

* Add triple dot icon

* Triple dot dropdown menu

* Set as primary working

* Work on transfers, checkpoint

* Work on transfers

* Lint unused dep

* UI polish

* Add empty state

* Resolve type errors?

* Reolve types

* Slightly better empty state

* Remove console.log

* Only show My Basenames if the user has a wallet connected

* Improve dropdown mechanics

* Spacing feedback

* Error handling ala Leo

* Handle success / failure correctly

* Lint

* Add some mobile margin

* Fix mobile padding
2024-11-07 15:26:45 -05:00
Léo Galley
8364e534e6 BAPP-670: Bump OCK version w dropdown fix (#1182)
* bump ock version w dropdown fix

* reset

* BaseName -> Basename

* rename imports

* reset

* fix
2024-10-31 14:07:18 -04:00
dependabot[bot]
59785fb74a chore(deps): bump next from 12.2.3 to 14.2.10 (#1180)
Bumps [next](https://github.com/vercel/next.js) from 12.2.3 to 14.2.10.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v12.2.3...v14.2.10)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-31 14:05:34 -04:00
Matthew Bunday
d91cf721ba Upgrade next (#1179) 2024-10-30 12:48:30 -04:00
Léo Galley
9a520033db Feat: Cloudinary integration (#1071)
* cloudinary integration wip

* cloudinary integration wip

* fetch & proxy

* fix lock

* remove lib due to wasm nonsense

* clean up

* Update apps/web/src/components/ImageCloudinary/index.tsx

Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com>

* Update apps/web/src/components/ImageCloudinary/index.tsx

Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com>

* add logger to the routes

* env example

* fix loading

---------

Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com>
2024-10-15 12:43:20 -04:00
Matthew Bunday
d41b9e5938 Feat/homepage revamp (#962)
* Add dependencies

* Add assets

* Working with their mesh

* Not really working shimmer cards

* implement shimmer card without motion/framer

* Fix TagChip

* add button component

* Add Title and move Card

* add Title headline

* try new component

* Add large button and text component

* fix ecosystem page

* wasm free loading?

* Checkpoint, cleaning up lint errors

* New model attempt

* home and jobs page with new section/components

* New mesh export

* Add Base Grantee badge

* script to pull blog posts to display

* blog section

* new top navigation

* mobile blog

* navigation margin

* about page

* Adapt ecosystem page

* adapt builder-anniversary-nft

* adapt jobs page

* remove unused views

* remove unused views / frame / motion

* adapt get started

* i love wagmi

* mobile optimization

* tidy up get started page

* fix alignment

* add connect wallet button & transaction animation

* blog effect tidy up & new job page

* try catch

* fix display

* Load all the objects in a unit sphere

* Add wasm-unsafe-eval to CSP

* gradient circle animation

* Dynamic ThreeHero

* Add gltf and glb to file-loader

* Try combined GLB file

* button fix

* lineheight and text selection styles

* blog section optimizations

* intersection observer

* fix console errors

* blog post optimization, css over state

* one card provider = one event tracking

* we like mobile too

* ecosystem tweaks + mobile friendly

* margin & padding

* overflow fix

* Remove transparency

* use correct buttons & prefer canvas over svg animation

* mobile navigation

* latest optimize 3D pass

* tweak balloon effect

* fixed 3D hero header

* Progress on physics sim

* Link to retrofunding

* Remove brand kit link for now

* First pass at gravity scene

* Added physics pause when a user scrolls.

* fix fog and colors

* Update next to allow draco loading and added noggles to scene

* new light mouse trail

* new light

* mobile sizing

* fix mobile scaling alignment

* remove three card

* remove noggles

* Remove second OP logo

* new logo and lightning

* light intensity

* Lighting

* change switch network button text

* optimize effects

* less harsh light

* latest models and video sections

* sugar cube

* animated menus

* optimize instances in scene and make video hoverable

* Add stats

* add scroll test

* Fix weird flash at the loading + updated menus

* Add cursor

* Remove shimmer

* Mint button

* adjust the bloom a little

* new logo

* fix mint button

* remove orbit controls

* remove stats

* device vh

* mess with device height

* add analytics

* generic events

* eslint pass

* load draco file locally

* remove wasm exceptions

* scene mobile pass: performance fixes

* scene lint pass

* scene lint pass

* fix wasm

* fix card effect

* eslint pass

* cleanup

* linter

* local import

* local import

* Team feedback round 1

* Team feedback round 2

* toggle menu on click

* fixes

* Team feedback round 2

* Team feedback round 3

* og image

* 3D Header

* Team feedback round 4

* Team feedback round 4

* Replace cube video

* og image

* RIght click to mint

* use link component for tracking

* fix active/inactive state

* remove maath

* Team feedback round 5

* Team feedback round 6

* background tweaks

---------

Co-authored-by: Léo Galley <contact@kirkas.ch>
Co-authored-by: Mike Bodge <mbodge@gmail.com>
2024-10-11 15:05:50 -04:00
Jordan Frankfurt
860c8c8fc5 update frames.js/render (#1050) 2024-10-08 18:06:52 +00:00
Jordan Frankfurt
d5b40500f3 check for frame ip safety (#1036)
* check for ip safety

* add jest

* add gh workflow

* middleware->frame calls with dns lookup
2024-10-04 12:46:32 -07:00
Jordan Frankfurt
241adbc28c Revert "Revert "feat: add a heatmap (#1022)" (#1032)" (#1035)
This reverts commit e765138660.
2024-10-03 12:13:28 -05:00
Jordan Frankfurt
e765138660 Revert "feat: add a heatmap (#1022)" (#1032)
This reverts commit 182fd19312.
2024-10-02 16:07:41 -07:00
Jordan Frankfurt
182fd19312 feat: add a heatmap (#1022)
* add a heatmap

* styling and public env vars

* heatmap polish

* add support for sepolia deployments, add styling input

* update icon

* responsive heatmap

* improve url security

* heatmap-color-update (#1030)
2024-10-02 15:16:00 -05:00
Jordan Frankfurt
5a6fa85af2 Revert "Revert "fix: bump @frames.js/render version (#1020)" (#1021)" (#1025)
This reverts commit ee95b29cb0.
2024-10-02 11:32:28 -05:00
Jordan Frankfurt
ee95b29cb0 Revert "fix: bump @frames.js/render version (#1020)" (#1021)
This reverts commit 94a61a80c0.
2024-09-26 21:05:30 +00:00
David Furlong
94a61a80c0 fix: bump @frames.js/render version (#1020) 2024-09-26 16:31:22 +00:00
Jordan Frankfurt
6d6f34cb4a feat: embedded farcaster frames (#762)
* initial draft of frame render

* render frames from text records

* fix build, https instead of * csp

* undo changes to base-docs

* no-verify repeat

* add xmtp signer

* fix build issue and add frame prompt element

* Extract TryNowHero component

* add second add-frame button

* Frame previews in modal

* Frame previews in modal

* Rough out copy and text hierachy

* More blocking

* fix property access on profile context

* add responsive layout

* Setup suggestion cards

* clean up pr

* clean up pr

* Update card icons

* Make AddFrameModal components modular

* fully functional farcaster frames

* get previews working

* polish

* Target arm64 architecture for web (#967)

* theme update

* try openframes first

* wip towards frame management page

* Revert "wip towards frame management page"

This reverts commit de4b6ebec833fd05d92adeae8179dab7b09a3725.

* Revert "Revert "wip towards frame management page""

This reverts commit 52a4555bb4464c145abb6cfa02ac4ac989b17a61.

* make page render

* get desktop frame builder ui working

* frame manager page w/ loading and some styles

* add back button

* better theme and add multi-add

* fix loading experience

* add mobile ux

* incorporate d furlong's suggestion re: frameImage fix

* dogfooding input from Rhea

* improved validation and copy

* improved loading state

* improve button and input styling

* add farcaster logout ux

* clean up sign-in ux

* clean up qr modal

* add swap frame

* clean up frame image sizing

* add a nice smooth transition in/out of loading states

* BAPP-579

* BAPP-585, BAPP-586

* BAPP-583

* BAPP-583

* move error handling up a level

* analytics

* improve mobile builder ux

* fix farcaster signer modal close issue--poll for text record changes on owned profiles

* center sign in with warpcast text

* yarn

* pr review from Leo

* lint

* add back nomination frame

* stick buttons to the bottom and center the loader

* revert csp changes

* add more logging and remove dead code

* be less spooky about the missing env vars

* add more info to error/analytics calls

* optimistic addition/removal of frames; improved warpcast sign-in

* remove columns experimentation

* fix masonry layout

* update icons for shelley

* rm unnecessary classnames call

* frame border radius nit

* style nits

* add dropped icon

* bunday review

---------

Co-authored-by: Matthew Bunday <matthew.bunday@coinbase.com>
Co-authored-by: David Roth <david.roth@coinbase.com>
2024-09-20 17:01:23 +00:00
Léo Galley
3fc8f8f0eb FEAT: Add IPFS / Pinata avatar upload (#971)
* Add IPFS / Pinata avatar upload

* fix build: deprecated config
2024-08-29 15:05:37 -04:00
Léo Galley
a9c672e9fb use useWriteContractWithReceipt with automatic chain switching logic (#969) 2024-08-29 10:25:28 -04:00
Léo Galley
c233f1529c try dot lottie react library (#961) 2024-08-28 13:44:49 -04:00
David Roth
f9e6492469 Add dd-trace package (#959) 2024-08-28 09:14:49 -07:00
Léo Galley
e83738914d Lottie animations for registration background (1/3) and Basename default avatar (#951)
* Relace vortex.web with vortex.json, add Lottie integration

* cleanup

* fix import shenanigans
2024-08-27 18:08:48 -04:00
moggr
6bc59c2d2d Add datadog browser logs (#906) 2024-08-21 10:22:02 -07:00
Léo Galley
3272d3e43d Feat: Edit and update your favorite "Pinned Casts" (#850)
* load frames from a cast and display

* add more example

* fetcn and display cast from neymar APi

* tidy up

* tidy up

* advanced embed casts

* design cleanup

* image sanitazation

* cleanup
2024-08-16 13:54:51 -04:00
Léo Galley
b8265d97d7 Add logic & UI to support Basename ownership transfer (#825)
* Add logic & UI to support basename ownership transfer

* Resolve ENS mainnet name and update ownership transfer UI

* Add batch calls for smart wallet

* prefer useWriteContracts for ease of use

* rename

* better loading state

* one hook

* Jordan feedbacks

* update success state

* success state with transaction link

* change button copy

* smaller modal

* bunday feedback

* bunday feedback
2024-08-14 13:51:19 -04:00
Jordan Frankfurt
78338fbc19 Add auction UI (#814)
* add basic premium ui

progress towards functional contracts just a bookmark commit idk

wip

wip

* finalize hooks, polish ui

* cleanup

* make useactiveethpremiumamount easier to read
2024-08-12 13:59:29 -05:00
Léo Galley
833a4c7ff5 BAAP-135: Basename IPFS avatar support (#800)
* add support for IPFS avatars

* QA & Full support for IPFS, Vercel Blob & Default image validation

* Jordan feedback
2024-08-08 14:14:03 -04:00
Léo Galley
1ed97c3919 Basename: Fix mobile badge and navigation layout (#792) 2024-08-07 11:24:24 -04:00
Léo Galley
a0529f8ff6 ECO-194: Add typed-js and update the design/animation (#782)
* add typed-js and update the design/animation

* remove console
2024-08-02 12:34:47 -04:00
Léo Galley
bd819d7a9f use node LTS and update nextjs (#768) 2024-07-31 18:17:53 -04:00
Léo Galley
a0a4ac6a71 [FIX] Fix production and development errors (#767)
* Remove OCK default styles, extend their TW config

* better datadog env-specific integration

* tidy up

* lint

* disable for development

* fix outdated uuid usage

* disable query reloading, avatar loads immediately

* fix connect wallet button flashing on load
2024-07-31 17:03:53 -04:00
Léo Galley
9b5c6daf2a [fix] build with node/nextjs version (#761)
* fix build with node/nextjs version

* fix lock file
2024-07-31 13:11:58 -04:00
Léo Galley
4ebcf324a2 try latest nextjs version (#756) 2024-07-30 20:05:59 -04:00
Léo Galley
c937ffdde2 update oct version and cleanup build errors (#755) 2024-07-30 19:27:18 -04:00
omkar
c3c6f51870 Chore/datadog instrumentation (#744)
* Add datadog rum instrumentation

* use node_env

* Remove non-null assertion

* Fixes

* Fix envs
2024-07-30 18:04:41 -04:00
Léo Galley
f7a5e81993 bump OCK version, should fix wallet switching issue (#714) 2024-07-29 15:46:05 -04:00
Jordan Frankfurt
47316d5d0c remove unused dep (#683) 2024-07-26 13:28:31 -04:00
Léo Galley
0141dcb9c9 fix asset resolution and metadata domains (#686)
* fix asset resolution and metadata domains

* update onchainkit
2024-07-25 18:55:21 -04:00
Léo Galley
9c3e3ce90b Feat/usernames launch tweak and fixes (#681)
* bump onchainkit version

* Setup badge context and modal

* fix profile redirect

* Badges minus CTA links

* Add badge cta links

* Consolidate badge info

* dont retry endlessly

* ECO-86: change to explore section

* Fix type error

* fix image lint error

* fix basename types

* Lint SearchInput

* Lint UsernameProfileSectionExplore

* Lint UsernameProfileSectionExplore

* update paths (#682)

* Address review

* update base mainnet contrats

* don't call to discount endpoints during early access

---------

Co-authored-by: Matthew Bunday <matthew.bunday@coinbase.com>
Co-authored-by: Jordan Frankfurt <jordanwfrankfurt@gmail.com>
Co-authored-by: Jordan Frankfurt <jordan.frankfurt@coinbase.com>
2024-07-25 17:19:49 -04:00
Jordan Frankfurt
ae6c2122b0 feat: usernames (#657)
* describe new endpoint

* add spinner icon and dropdown loading state

* loading avatar state

* use ricardo's endpoints

* better error handling for linked-addresses check

* create jwt with jose

* add loading state to registration UI

* dedupe some registrar controller references

* fix dropdown max height

* rename constant

* name -> names page

* refactor to use AddressMap

* undo docs change

* rm console.log

* set docs data to state on master

* remove classname conditional logic in favor of headless ui transition

* fix early return hook count error

* Extract Learn More Modal

* add dynamic og images for usernames

* clean up og image and url setup

* individually call each endpoint for attestation data--use linked accounts to check for existing registrations

* useAttestations

* fix linkedAddresses undefined error

* clean up api result

* tie in discount state to copy in registration form

* Add ShareUsernameModal for post-claim flow

* ShareUsernameModal: font weight and padding tweaks

* resolve conflicts

* useActiveDiscountValidators()

* ShareUsernameModal: design update

* update proof endpoints

* use response types, fix wrong network breaking name search

* ensure uniform utilization of the network check for contract args construction

* usernames: Update learn more modal

* Shelley feedback 1/6

* Shelley feedback 2/6

* Shelley feedback 3/6

* Brian doyle/zora tutorial (#588)

* Partial: Build with zora

* Stash progress

* Progress stash

* Add zora premint tutorial

* Apply feedback

* Fix typo

* Update title

* Shopify Storefront with Coinbase Commerce checkout (#562)

* Shopify Storefront with Coinbase Commerce checkout

* Implement @briandoyle81CB feedback

* Update Commerce section

* fix formatting

* use backticks for buttons

* add admonitions

* add a tip for checking out with crypto

* swap should with will

* update conclusion

* maintenance(node): Notate new requirement, NVME (#596)

* Swap typescript Code Blocks to tsx (#597)

* Start

* Switch typescript code blocks to tsx

* Feat/add events to docs (#587)

* Created logEvent utility

* Added event tracking to OCS Banner

* Created CustomNavbarLink with event tracking

* created custom navbar dropdown link with event tracking

* added event tracking to P0 navbar elements

* Added eventDetail parameter to event tracking

* Updated Bootcamp link

* enforced cursor pointer on custom navbar links

* updated navbar elements to include event tracking

* event tracking for navbar social links

* added target property to custom navbar elements

* made links to off-domain locations open in new tab

* updated tutorials data

* implemented tracking on connect wallet buttons

* removed duplicate connect button from StudentProgress component

* Links now send events with high importance

* Cleaned up StudentProgress component

* Social clicks use useCallback

* bugfix for logEvent

* created callbacks for social click handlers

* improved social click callbacks

* updated event names

* updated connect wallet event names on base.org

* added full typing to logEvent utility

* refactored logEvent typing

* added userId to event data options

* updated base-docs logEvent immplementations

* updated Connect Wallet event for base.org

* changed component_type to the expected

* Updated event logging for onchain summer banner

* fixed key errors on tutorials page (#598)

* chore: updated node versioning to be latest of 18 (hydrogen) (#560)

* updated node versioning to be latest of 18 (hydrogen) lts

* check if build version update works w/ gh action

* chore: add a pre-commit hook for linting (#601)

* add a precommit hook for linting

* test

* Revert "test"

This reverts commit f5329bd73c927424777cbac81606d19103a1b616.

* add eslintcache to gitignore

* Shelley feedback 4/6

* fix lint

* Shelley feedback 5/6

* Shelley feedback 6/6

* use chain query param

* talk to the individual discount validators

* fix parse cdp key issues

* add error messages

* fix register name callback types

* remove some linkedAddresses stuff from the frontend

* Mobile pass and update contract addresses

* useBaseEnsName hook

* fake hasUsedADiscount

* return error

* return error

* return error

* add back hasRegisteredWithDiscount from backend

* restrict name to 20 chars

* UsernameProfileForm, TextArea, Fieldset, Label, Hint and more

* UsernameProfileForm: use useEnsText and rename bio to description

* utilize proofs apis for checking validity of discounts

* add (discounted)pricing hooks

* useWriteMultipleBaseEnsTextRecords: hooks to multicall

* update register name callback to include non-discounted registrations

* render eth price correctly

* minor cleanup

* fiddling with register call & viem

* clean up discount/non price passthrough

* Move hooks into /src/hooks, clean up useFocusWithin

* fix import path

* Add USD price display

* Fix multiple imports

* Better placeholder

* cleanup

* .json->.ts abi

* fix import

* Update abis to consistent format

* clean + add validateEnsDomainName

* show error message

* reset values when user skip

* format search to avoid space

* button loading state & emoji lenght fix

* add support for discounted registration

* move to profile after registration

* update address type

* add keywords

* check for previously registered addresses on cb.id endpoint

* add states and state switcher

* determine if the name registration is free

* small refactor of RegistrationProvider

* move selectedName to provider

* move hash to provider

* fix broken imports

* rm console.log

* clean up and design fixes for success stage

* connect discounts to explainer modal state

* rm console.log

* Profile page light

* fix pill animation

* update default expire

* redirect to user profile after registration

* fix expiration time

* fix ellipsis

* fix colors

* rename registration-specific profile form

* move brand logic to component

* move components from file to folder

* remove button in the username search input

* fix redirect if no field was edited, rename variables

* update card links and order

* fix some styles

* addAddr and fix the resolvers

* test full flow, reload data

* add correct styling to discounted price

* User can edit profile

* add social links on Profile page

* css cleanup

* fix styles from merge

* fix tooltip opacity

* re-arrange layout to avoid overflow

* wip: fetch coinbase verifications badges

* add usernames early access endpoint

* add name is free pricing subtext

* Fix text on kv errors

* layout fixes and animation

* Add EAS badges

* fix key rendering issue

* Don't display verifications if we have none

* return error on hasPreviouslyClaimed proofs

* rename area of expertise to skill

* add analytics

* use a provider for sanity

* context chaining

* update analytics

* move discount logic to registration context

* add analytics to user profile page

* allow for 2 discounts to create a signature on sybil resistance

* set chain based on env

* switch chain

* fix frogmonkee

* add error states and dropdown components

* fix spacing

* design and usability improvements

* fix navigation and registration profile form

* rm dev controls

* default to env chain

* unify logic for chain check

* fix getAttestations chain logic

* add real name suggestions with cb-gpt

* use cb1 discounts first, if available

* address some TODOs and fix copy-to-clipboard UX in dropdown

* fix domain url, enable metadata and svg card support

* get chain client correctly

* add twemoji support

* Fix css-loader build error

* add endpoints for contract-uri

* add redirect when json is missing

* ECO-75: Fix input focused state with blue background

* ECO-81: Discount modal: external link open in a new tab

* switch key to static value on ens pills

* ECO-93: add <ImageWithLoading> component for nice image load

* ECO-80: add nice animation to the Modal component

* ECO-73: align blue dot

* ECO-72: use Basenames for the pages titles

* ECO-84: transition between registration profile form steps

* ECO-76: Fix jumping layout when changing years

* automatic redirect when missing domain

* fix focus error causing blue reset

* upgrade tanstack

* Add Guild badges

* minimal yarn.lock changes

* Coerce schema type

* Feat/local paymaster (#645)

* paymaster working with url

* Wallet type verification complete

* Packages updated

* configure smart wallet

* Cleanup

* Update yarn.lock

* vercel error fixed

* Build fixed

* Resolved Comments

* Resolved chains

---------

Co-authored-by: Jordan Frankfurt <jordan.frankfurt@coinbase.com>

* remove nav menu item for EA

* fix avatar overflow on pills

* tentative onchainkit implementation

* fix package

* fix padding and ECO-100

* ECO-60: fix validation

* ECO-12: remove perk value

* ECO-12-2: rename

* ECO-16: change tooltip copy

* update to latest onchainkit

* Fix non member found from Base Guild

* fix lock file

* Stub talentprotocol, fix verified country badge

* fix path

* avatar support with Vercel Blob

* lock

* Add TalentProtocol API endpoint

* Remove CSP for talentprotocol

* add radix tooltip pkg w/ refactor and add ai tooltip text

* use universal resolver address, check the avatar upload path

* reset address resolver for now

* error state & 404 page

* Display talent protocol score in badge

* add new discounts to discount modal

* add missing images and EA discount

* remove error stringifying from transactionError component

* ECO-85: skill badge design fix

* fix avatar resolution

* log avatar errors

* add EA contracts and validators

* update contract

* rename key

* debug early access checks

* add message if user is not eligible for early access

* don't discounts modal during early access

* connect wallet fixes

* dual chain support

* Unearned badges

* improve testnet/mainnet banner messaging

* proper chain resolution

* Move badge images

* Fix redirect after customizing profile

* better handling of EA roadblock

* fix cdp get vulnerability

* encode talentprotol URI

* fix cdp get vulnerability

* revert encodeUriComponent

* Fix a bunch of a11y errors

* alt image

* fix label

* Fix yarn lint issues

* lint error on getLinkedAddresses

* refactor paymaster code to fix ts errors (#680)

* add example env vars for paymaster links

* Remove .env

* gitignore .env

---------

Co-authored-by: Léo Galley <contact@kirkas.ch>
Co-authored-by: Ricardo Moguel <ricardo.moguel@coinbase.com>
Co-authored-by: Matthew Bunday <matthew.bunday@coinbase.com>
Co-authored-by: Brian Doyle <brian.doyle@coinbase.com>
Co-authored-by: Pat <patrick.hughes@coinbase.com>
Co-authored-by: wbnns <hello@wbnns.com>
Co-authored-by: Brendan from DeFi <brendan.forster@coinbase.com>
Co-authored-by: Keshav Singhal <107991050+Keshavrajsinghal@users.noreply.github.com>
2024-07-25 12:43:30 -05:00
Brendan from DeFi
b6df0ab1cb Feat: Implement Amplitude Experiment infra (#639)
* Added Amplitude Experiments Initialization to initCCA

* create useVariant hook to pull experimental variants

* refactored useVariant to create simpler interface

* linted

* automated defaultDeploymentKey logic

* added defaultDeploymentKey for prod env

* Created ExperimentsContext for web app

* added more specificity to amplitude domains for CSP

* additional properties on eventData

* added amplitude deployment keys to constants

* deleted unused useVariant hook

* refactored experiment initialization in initCCA

* refactored Experiments context

* refactored usage of Experiments provider

* refactored ampDeploymentKey logic

* removed experiment initialization from initCCA

* restored index page to prior state

* refactored initCCA to pull constants into dedicated file

* created Experiments context in base-docs

* implemented experiments context in base-docs Root

* moved Experiments context to libs

* updated Experiments context integration in base-web

* fixed import statement

* deleted unused context in favor of shared version in libs

* implemented shared experiments context

* moved Experiments context to be innermost context provider in base-web

* removed unused imports from initCCA

* refactored Amplitude Experiments package into libs

* fixed yarn issue

* added type declaration for

* refactored window type declaration
2024-07-23 09:18:38 -07:00
Jordan Frankfurt
437698645b chore: runs yarn dedupe and enforces a consistent version resolution for coinbase cookie manager (#644) 2024-07-22 17:49:58 -04:00
Brendan from DeFi
7180c0b40b Updated rainbowkit version on base-docs and base-web. (#636)
* Updated rainbowkit version and coinbase wallet preferences

* Updated rainbowkit version in base-docs

* Ran yarn
2024-07-13 13:35:16 -04:00
Jordan Frankfurt
d1162f8101 adds an analyze command to help with bundle sizing (#627) 2024-07-11 11:07:15 -04:00
Matthew Bunday
8d45401261 Feat: OCS registry api (#539)
* Attempt DB query

* Super basic demo

* Clean up

* Remove content nesting

* Fix lint

* Update for API compatibility

* Add pagination to entries api

* Add featured API and entries pagination

* Add category filtering

* Pass through formatted data, no need to transform

* Make category filtering case insensitive

* add curation filter

* Move ocsRegistry -> /api/registry

---------

Co-authored-by: Ricardo Moguel <ricardo.moguel@coinbase.com>
2024-06-27 17:50:36 -04:00
Jordan Frankfurt
434eaff268 update rainbowkit to support smart wallet (#607) 2024-06-27 17:46:26 -04:00
Jordan Frankfurt
7e28d750a3 chore: add a pre-commit hook for linting (#601)
* add a precommit hook for linting

* test

* Revert "test"

This reverts commit f5329bd73c927424777cbac81606d19103a1b616.

* add eslintcache to gitignore
2024-06-26 13:27:57 -04:00
Brendan from DeFi
5f87d88740 Feat: OcsBanner added to docs.base.org (#579)
* started work on OcsBanner for docs.base.org

* matched banner style to implementation on base.org

* Added domain to href, fixed anchor style on hover

* updated designs and removed unnecessary isOnPage logic
2024-06-20 13:34:14 -04:00
Jordan Frankfurt
991256062c added sharp for nextjs img processing (#577) 2024-06-20 12:33:34 -04:00
Jordan Frankfurt
6dab237601 run yarn dlx update-browserslist-db@latest (#578) 2024-06-20 12:33:10 -04:00
Jordan Frankfurt
699c7984d3 update yarn release and rc file to match package.json spec (#558)
run updated yarn version to patch checksums
2024-06-18 14:51:21 -04:00
Brendan from DeFi
58babadf41 Feat/update sprig (#572)
* moved Sprig integration from apps/web to libs

* deleted unused Sprig integration code from apps/web

* refactored useSprig hook to take configurable environmentId parameter

* Integrated Sprig into base-docs

* refactored sprig domains CSP to be hardcoded in apps

* Refactored base-docs Sprig integration to address import statement issues and supported sprig domains in CSP

* updated yarn dependencies

* refactored the base-docs Sprig integration to be on the layout Root instead of the index page

* Deleted eslintrc file
2024-06-18 14:50:24 -04:00