Commit Graph
49 Commits
Author SHA1 Message Date
Edward Sun 3c6708f3f4 Try fixing display delay after billing info completed (#2356)
* Try fixing card input delay

* Move polling to useQuery hook

* Remove unused lines

* Remove useAccount import

* Refetch only on condition

* Reduce polling to 1000ms

* Update condition
2024-03-18 00:28:59 +00:00
Nacho Iacovino fe53dfa054 Update dependencies and clean unused (#2328)
* Remove kyb/kyc, update stripe

* Knip cleanup, improve stripe init

* Update dependencies

* Remove unused campaign

* eslint

* unused

* Update dependencies

* Missing a focuslock here

* Add a spinner to wait for the page to reload

* Update stripe again

* format

* Update dependencies again

* update

* Update lock

* Nightly

* Recover file

* format

* update

* Run install
2024-03-15 19:17:28 +00:00
Nacho IacovinoandJoaquim Verges fdafd0be60 OP grants (#2278)
* Get credits endpoint

* Grant credit endpoint

* Refactor Steps component

* Onboarding update

* lol

* Format

* Remove unusued

* noidea

* my ts is broken

* Add SponsoredNetworkAlert

* fix build

* Claim credits flow

* Update copy

* More stuff

* ok

* x

* Add frax

* Can skip adding payment method

* Skip title

* Light mode

* ts

* Invalidate the right query

* Update api change

* Format

* Formats button

* Ship

* Prioritize op grant until claimed

* Should be good now

* Ok

* .

* Fix

* Fix logic

* Add indicators to chainlist and chain selector

* k

* Also this ...

* Better logic

* fix API types

* Small changes

* Add to chain page

* format

* ok

* ??

* Fix

* chain page

* big number

* Main bug

* format

* format2

* Confetti

* Add payment method modal to flow

* No need

* A lot of stuff

* Form working

* pretty pretty

* :)

* Update banner

* A lotta stuff

* All can apply

* kk

* Update billing page

* Remove unused

* Fix

* Improve these

* Disable if already applied

* Format

* Only show on sponsored chains

* Stuff

* Format

* Fatter

* Changes

* Stuff

* Format

* yep

* format

* Refetch account when payment method is added

* Apply now

* Remove apply now button when already applied

* cool

* Fix

* Multiple options for chains

* Conditional logic

* Format

* Industry

* Link for contact us

* Industry categories

* No lisk

* format

* Not required

* yep

* Remove upgrade upsell for pro

* Sponsored tag on chain page

* New image

* New banner images

* Only show in dashboard on op chains

* Fix build

---------

Co-authored-by: Joaquim Verges <[email protected]>
2024-03-12 16:54:14 +00:00
Jonas DanielsandJoaquim Verges 0c0cfdad84 Jd/cleanup (#2258)
* remove unused gql queries

* remove generated file

* init knip

* run knip and remove unused

* lock

---------

Co-authored-by: Joaquim Verges <[email protected]>
2024-02-28 17:58:56 +00:00
Nacho Iacovino 617335bb31 Add new sponsorship policies (#2213)
* Frontend shenanigans

* Move bypass at the end

* Refactor form

* Add to parsed values

* Fix validation

* This was wrong

* Copy updates
2024-02-16 23:31:10 +00:00
Joaquim Verges 6b86d8ea93 Smart Wallet Sponsorship Policies (#2134)
* Smart Wallet Sponsorship Policies

* WIP policies form

* feedback

* mapped types

* working state

* update to latest api server api

* lint

* lint

* fix form

* link to configuration from api key settings

* move EW config

* lint

* link to configuration

* ui fixes

* rename to sponsorship rules

* add doc links

* remove native currency option for now

* doc link
2024-02-06 23:58:28 +00:00
Jonas Daniels cb3575faa1 chore: Update API endpoint for fetching chains (#2169)
* chore: Update API endpoint for fetching chains

* prettier fixes?

* stop fighting me prettier please :)
2024-02-01 21:00:24 +00:00
Jonas Daniels 4de8ca25f6 style: remove credentials for chains endpoint (#2168) 2024-02-01 19:17:05 +00:00
Nacho Iacovino cff0175f2c New support page (#2150)
* wip

* Add api endpoint

* Add context button

* Api endpoint working

* Improve form and api request

* More changes

* Update links

* Add discord section

* Address copy feedback

* Add searchbar

* Move logic to api-server

* Update infra card

* Address testjam feedback

* Update error messages

* ?

* Update colors
2024-02-01 16:00:40 +00:00
Tair Asim 5d99af1cdb feat: growth trial (#2143)
fixes MON-111
2024-01-29 10:42:42 +00:00
Tair Asimandikethirdweb 821ec55a82 feat: growth plan (#1936)
fixes PROD-172, PROD-389, MON-58, MON-90, MON-88, MON-109, MON-98

* fix link and unauthed

---------

Co-authored-by: ikethirdweb <[email protected]>
2024-01-24 14:10:38 +00:00
Tair Asim 44a424072b feat: account linking (#2092)
completes PROD-479
2024-01-10 11:08:08 +00:00
Tair Asim bf89576939 chore: handle payment failure attempt (#2068)
fixes PROD-452
2024-01-02 09:49:33 +00:00
Winston Yeo 9b3e8234c1 Winston/custom auth dashboard update (#2051)
* chore: sort imports

* feat: add custom auth settings to dashboard

* feat: add detail display for custom auth detail

* chore: sort imports and remove console log

* feat: add custom authentication endpoint config to the embedded wallet tabs as well

* fix: dashboard form not updating
2023-12-13 16:57:08 +00:00
04ad22c250 Migrate checkouts v0 (#1986)
* feature(payments): initialize GQL and page structure

* initialize apollo provider

* port over .graphql files and fix up generation

* fix codegen

* .ts files are fine for hooks

* feat: add credentials option to ApolloClient

* .env.example update

* Get payments seller id from api server in fetchAuthToken (#1839)

Get paymentsSellerId from api server in fetchAuthToken

* Push up example with `paymentsSellerId`

* Remove console.logs

* Move to component to compile

* Render all contracts table (filtered)

* Enable payments button

* Abstract a bit

* Add graphql query to usePayments

* Get analytics

* Add parsedOverview

* Fix prettier

* Create checkout logic

* Create checkout form shenanigans

* Some UI massaging

* A bit more

* Enable payments redirect

* Work for erc1155, disable cache

* yes

* Some progress with cache? :D

* loglog

* Fix tracking

* Abstract remove button

* We're doing it backwards

* Cast to number

* whoops

* Edit checkout logic plz

* Empty state

* plz

* Fix for real

* Default

* Filter contracts, some more empty states

* Moar empty states

* Error flow

* More empty states, less foot shooting

* Get contract name for payment-enabled contracts

* Filter default checkout, show contractId

* Fix url redirect

* whoops

* Fix logic

* feature: added checkout seller account settings to dashboard (#1931)

Signed-off-by: Juan Leal <[email protected]>

Signed-off-by: Juan Leal <[email protected]>

Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: easyrun42 <[email protected]>

Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Juan Leal <[email protected]>
Co-authored-by: easyrun42 <[email protected]>

* invalidateQueries onSuccess

* Revert prior change and add apollo refetch()

* Try network-only

* Add for contracts as well

* wip

* API Keys capabilities yay

* Remove network-only policy

* Use lazy queries

* Fix api keys

* isLoading states

* All the cache

* now

* Rename

* Big wip

* Fix date picker

* chore: added thirdweb_client_id to checkout fragment (#1957)

* stuff

* Ensure accountId

* Copy

* Fix mutation

* Fix loading states

* wip

* Kyb shenanigans

* Kyc shenanigans :D

* More kyc shenanigans

* Fix file uploader?

* Annoying response

* RPC url pls

* Remove unused imports

* Nope

* Lots of checks

* Fix kyb check

* Kyc improvements

* Moar

* hid hid

* Move around

* Nope

* Cache?

* Lowercase

* Webhooks file

* Add more supported chains

* Full

* Fix RPC url

* Update contractArgs

* Much better

* Error state

* Validation for URL

* Allow empty string

* Improve KYB experience

* Add compliance email

* Fix upload to cloudflare

* Add preview button

* Improve preview

* Okay

* Fix font weight

* Just because

* Use the Preview environment for workflows

* Pass environment var name context through

* syntax update

* Test - show public env var

* syntax

* See if public variable makes it through

* Add public api

* Use secrets instead of vars

* Remove test

---------

Signed-off-by: Jonas Daniels <[email protected]>
Signed-off-by: Edward Sun <[email protected]>
Signed-off-by: Juan Leal <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Edward Sun <[email protected]>
Co-authored-by: gerrysaporito <[email protected]>
Co-authored-by: Juan Leal <[email protected]>
Co-authored-by: easyrun42 <[email protected]>
2023-11-22 23:21:53 +00:00
iketw a856457f60 Adds app name and image url to ews (#1987)
* Adds app name and image url to ews

* fix fetch
2023-11-20 23:32:27 +00:00
Tair Asim d616bec219 fix: ews email confirmation (#1926) 2023-11-08 15:07:12 +00:00
Tair Asim 170720bcce fix: useApi error handling (#1918) 2023-11-07 16:53:42 +00:00
Tair Asim a3f3f57e39 Revert "tmp: account form error debug (#1915)" (#1917)
This reverts commit 7d5544c805.
2023-11-07 15:16:02 +00:00
Tair Asim eafaad8058 chore: simplify api keys creation & editing (#1841)
fixes FTD-2219
2023-10-31 21:42:31 +00:00
ffe85aa3df feat(dashboard): Manage embeddedWallet recovery share management preferences (#1796)
* feat(dashboard): Add stub to manage embeddedWallet recoveryShareManagement preferences

* docs: add explanation for where the magic values came from

* ew: custom auth added to form

* adding auth fields

* custom auth: form checkbox + state handling

* add create api key to embedded tab

* fix validation error when unchecked

* Add custom JWT into selector and update names

* Update default

* Update zod type for url

* Disable being able to edit recovery share management

* chore: fix lint issues

* fix: typings for recoveryShareManagement type

* chore: fix up custom jwt

* chore: revert dev confirmation email

* chore: remove console log

* only show in edit mode

---------

Signed-off-by: Joaquim Verges <[email protected]>
Co-authored-by: Isaac Dubuque <[email protected]>
Co-authored-by: Edward Sun <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
2023-10-26 22:57:44 +00:00
Jonas Daniels 2af15ef5ea refactor(chains): use the api to fetch chains instead of relying on chains package (#1826)
* feat: Add fetchChainsFromApi and fetchChain functions

* feat: add fetchChain and fetchAllChains functions

* make homepage work again with middleware changes

* fix(utils): fix fetchChain parameter type
2023-10-24 19:36:44 +00:00
Tair Asim e6827d15f0 feat: confirm paper wallet email on auth success (#1813)
feat: confirm paper wallet email

fixes PROD-314
2023-10-23 18:51:06 +00:00
Tair Asim ad2bc992a4 feat: resend email confirmation (#1805)
fixes FTD-2211
2023-10-19 17:47:38 +00:00
Tair Asim 84128a91f5 chore: email is now required (#1803)
fixes PROD-344
2023-10-19 07:54:53 +00:00
Tair Asim 48e9c9a119 feat: support ach + payment verification (#1801)
fixes FTD-2200
2023-10-19 07:47:08 +00:00
Joaquim Verges b12e36fc15 Wallet analytics tab (#1800)
* WIP wallet stats

* UI polish

* empty states

* fix merge
2023-10-18 21:57:56 +00:00
Jonas Daniels 4837c95a09 feat: add YourFilesSection to DashboardStorage page (#1788)
* feat: add YourFilesSection to DashboardStorage page

* refactor: remove file preview column

* style: add monospace font to file size text

* fix(components): fix YourFilesSection pagination and data fetching

* fix(dropzone): Invalidate pinned files query on file upload

* feat(storage): add file list refetch on upload

* chore(useApi): keep the promise around to avoid multiple fetches

* feat: Add AccountPermissionsV1 to guides and templates
2023-10-18 06:15:24 +00:00
Tair AsimandJonas Daniels 12f92a9508 fix: useApi caching (#1778)
* fix: useApi caching

- misc change to yarn as bun failing

* chore(ci): setup bun for testing

---------

Co-authored-by: Jonas Daniels <[email protected]>
2023-10-13 19:59:45 +00:00
Jonas DanielsandElasticBottle 33e7a9e729 feat(api): add redirectUrls field to ApiKey (#1755)
* fix(api): add redirectUrls field to ApiKey

* test: add redirectUrls validation test

* feat: display redirecrURIs on dashboard

* chore: update helper text for redirectURIs

---------

Co-authored-by: ElasticBottle <[email protected]>
2023-10-11 20:18:53 +00:00
Tair Asim d500b40959 fix: useAddress for caching api keys & account (#1652)
fixes FTD-2137
2023-10-02 19:38:59 +00:00
Tair Asim b29f24a74e feat: onboarding with email + billing (#1714)
completes FTD-2170, PROD-238
2023-10-02 12:47:10 +00:00
Tair Asim 32774e47c4 feat: show rate limit alerts (#1651)
feat: show rate limit and invalid payment alerts

fixes FTD-2074, PROD-121

show invalid payment alert
2023-09-13 10:11:04 +00:00
Tair Asim 51085ef5db feat: notification preferences (#1628)
feat: notification preferences + onboarding opt-in to email updates

fixes FTD-2101
2023-09-08 10:53:32 +00:00
Tair Asim f2324b1b3e chore: polish billing + usage (#1622)
fixes FTD-2112
2023-09-06 10:32:58 +00:00
Tair Asim da03e2bba1 feat: update usage cards for all services (#1620)
feat: update usage cards + limits for all services

fixes FTD-2079, FTD-2105
2023-09-05 19:47:28 +00:00
Tair Asim 358ffb2074 feat: add storage usage and limits (#1611)
fixes FTD-2043
2023-09-04 18:07:54 +00:00
Tair Asim 95729886e8 chore: better usage format, total amount and fix disabled btn (#1609)
* chore: better usage format, total amount and fix disabled btn

fixes FTD-2087

* remove api keys announcement

fixes FTD-2086
2023-08-31 18:54:55 +00:00
Tair Asim 1c36903421 feat: billing (#1559)
fixes FTD-2082, FTD-2078, FTD-2035, FTD-2081, FTD-2088
2023-08-30 22:23:23 +00:00
Mariano Fuentes b4775ac380 Allow login flow for CLI (#1491)
* Auth CLI using dashboard signature, and generate authToken

* add auth package

* update packages to include generate function

* update packages to latest

* add dashboard secret key

* pass in client id and secret to rpc respectively

* add logic to create authWallet record in db

* use staging url for testing

* update staging url

* use staging url for jwt/authorize

* update UI/UX

* add success text

* fix typo

* update copy

* fix typo

* Better errors and kill CLI process if there's an error

* Add settings account page and support for revoking authorized wallets

* No contact msg, add rejected copy

* remove unused imports

* remove unwanted code

* remove unused imports

* fix prettier

* update nightly versions

* bring back previous sdk, react and chains versions.

* Add some more trackers
2023-08-28 22:17:20 +00:00
Tair Asim 63a0a7089b chore: api keys polish (#1477)
* chore: api keys polish

- validate key name uniqueness
- fix enter on submit refreshing page
- polish copy

* fixes

* fix unused

* copy

* fix test

* add unrestricted access checkbox

* update copy

* add doc link

* remove key name validation

* trim trailing slash
2023-08-03 21:27:24 +00:00
Nacho Iacovino 175de3237a Require client id for embeds (#1474)
* Require client id for embeds

* Update embeds
2023-08-02 22:44:40 +00:00
Tair AsimandJonas Daniels 48f823a05f add global auth token (#1473)
* add global auth token

* update packages

---------

Co-authored-by: Jonas Daniels <[email protected]>
2023-08-02 21:56:50 +00:00
859320b6ed feat: add bundle ids to keys (#1404)
* feat: add bundle ids to keys

completes FTD-1886

* typo

* fix ui bug

* Update sdks

* Merge branch 'ta/keys-add-bundle-ids' of https://github.com/thirdweb-dev/dashboard into ta/keys-add-bundle-ids

* Fix build

* Update sdks

* hide services

* fix count

* update nightly

* update to [email protected]

* fixes

* dont hide rpc

* copy - remove thirdwebs

* missing form values

* dont be smart about none

* feat: validate api keys (#1406)

completes FTD-1826

* Add descriptions

---------

Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2023-07-17 22:10:55 +00:00
Jonas Daniels 975a8170a6 new apikeys update (#1398) 2023-07-13 05:40:05 +00:00
Tair Asim 47a1c7076a feat: api keys v2 (#1356)
* feat: api keys v2

- new api keys with pk/sk
- domains, wallets and service restriction
- secret regeneration

completes FTD-1879, FTD-1880, FTD-1835

* minor pr feedback

* test jam feedback

completes FTD-1902

* show none when no service targets

* change copy

* enable all services

* add service actions

fixes FTD-1874

* f

* sort saved services

* add copy pk on create
2023-07-11 01:24:36 +00:00
Tair AsimandJonas Daniels a9fd20d6f7 polish: api keys + tables (#1267)
* polish: api keys + tables

- style tables and extract into table container
- refactor api keys to sub components
- show api key name and created at
- remove two step approach to creating keys
- define menu list/item styles on theme level

completes FTD-1752

* add missing ChainId import

* fix types

* add edit edit modal

* add update key func

* make work with local api server

---------

Co-authored-by: Jonas Daniels <[email protected]>
2023-06-05 17:26:21 +00:00
Danny Friday f0d25891a1 Use new paths for API keys (#1183)
* Use new paths for API keys

* Lint
2023-05-08 20:09:22 +00:00
cb8eca2a0c Add support for API Keys (#1164)
* Add support for API Keys

* Update

* Fix import

* Fix invalidation

* Add a getting started flow

* Fix

* Fix everything

* Remove console.log

* Update

* Logout if there's an address mismatch

* Logout if there's an address mismatch

* Add error messages

* Add wallets

* Escape apostrophe

* Add link to documentation

* Update copy

* rename and added CW button demo

* reorder wallets

---------

Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
2023-05-04 16:31:17 +00:00