chore: use-ndk #283

Open
s wants to merge 17 commits from use-ndk into staging
Owner
  • Implemented NDKContext that will be used for relays-related operation.
  • replaced AuthController with custom useAuth hook.
  • replaced dvm utils files with useDVM custom hook.
  • removed RelayController and MetadataController in favour of NDKContext
  • deprecated ProfileMetadata in favor of NDKUserProfile
* Implemented NDKContext that will be used for relays-related operation. * replaced `AuthController` with custom `useAuth` hook. * replaced dvm utils files with `useDVM` custom hook. * removed `RelayController` and `MetadataController` in favour of `NDKContext` * deprecated `ProfileMetadata` in favor of `NDKUserProfile`
s added 8 commits 2024-12-22 18:40:22 +00:00
s added 2 commits 2024-12-27 12:21:34 +00:00
chore: remove import of deleted file
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 40s
4f9fdd19b0
s added 2 commits 2024-12-27 19:44:33 +00:00
chore: fix issue in publishing sigit
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 45s
01bb68d87b
s added 1 commit 2024-12-28 09:57:32 +00:00
chore: replace the usage of ProfileMetadata with NDKUserProfile
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 46s
95f5398736
s changed title from WIP: use-ndk to use-ndk 2024-12-30 10:17:23 +00:00
s changed title from use-ndk to chore: use-ndk 2024-12-30 10:17:44 +00:00
enes reviewed 2024-12-30 12:04:51 +00:00
@ -26,3 +27,3 @@
<div className={styles.counterpartSelectValue}>
<AvatarIconButton
src={signerMetadata.picture}
src={profile.image}
Member

Had this error during test on Create page: Uncaught TypeError: Cannot read properties of undefined (reading 'image') after selecting DrawnField rect.

Steps:

  1. Create a new sigit, add files, and after navigating to Create Page
  2. Add field with any tool
  3. Click the box - error
Had this error during test on Create page: `Uncaught TypeError: Cannot read properties of undefined (reading 'image')` after selecting `DrawnField` rect. Steps: 1. Create a new sigit, add files, and after navigating to `Create Page` 2. Add field with any tool 3. Click the box - error
Author
Owner

I tested multiple times and it worked every time

I tested multiple times and it worked every time
@ -0,0 +67,4 @@
}, [])
const ndk = useMemo(() => {
localStorage.setItem('debug', '*')
Member

We should probably have debug off or control it with ENV for production.

We should probably have debug off or control it with ENV for production.
s marked this conversation as resolved
@ -0,0 +457,4 @@
const ndkRelayList = await getNDKRelayList(receiver)
const readRelayUrls = [...ndkRelayList.readRelayUrls]
Member

Had this error after completing a sigit (error types here don't indicate undefined to be a possibility) and after timestamp upgrades triggered.

TypeError: Cannot read properties of undefined (reading 'readRelayUrls')
    at useNDK.ts:460:46
    at async Promise.all (:5173/index 0)
    at async upgradeT (index.tsx:383:11)```
Had this error after completing a sigit (error types here don't indicate `undefined` to be a possibility) and after timestamp upgrades triggered. ``` TypeError: Cannot read properties of undefined (reading 'readRelayUrls') at useNDK.ts:460:46 at async Promise.all (:5173/index 0) at async upgradeT (index.tsx:383:11)```
Author
Owner

I tried multiple sigit rounds, but couldn't reproduce this issue.

I tried multiple sigit rounds, but couldn't reproduce this issue.
@ -0,0 +23,4 @@
profile: action.payload
}
// case ActionTypes.RESTORE_STATE:
Member

Are we intentionally skipping restoration of the user state?

Are we intentionally skipping restoration of the user state?
Author
Owner

It wasn't intentional, fixed

It wasn't intentional, fixed
s marked this conversation as resolved
s added 2 commits 2025-01-04 06:26:36 +00:00
s added 1 commit 2025-01-04 06:34:01 +00:00
chore: enable debug logs only in dev mode
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 41s
0d93e16f3a
s added 1 commit 2025-01-04 07:21:55 +00:00
chore: merge staging into use-ndk
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 44s
14c103dd40
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 44s
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin use-ndk:use-ndk
git checkout use-ndk
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sigit/sigit.io#283
No description provided.