Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors and optimize #276

Merged
merged 11 commits into from
Jul 6, 2023
Merged

Conversation

reyamir
Copy link
Collaborator

@reyamir reyamir commented Jul 6, 2023

Changes

  • Update metadata field in UserStore, store parsed user's profile (kind 0)
  • Update login process, prefetch profile and contacts then store in MST
  • Before, UI will fetch current user's profile every time needed. After, UI only fetch one time then store in MST, if user update their profile, modify in MST first then publish to relay, user will see profile updated immediately
  • Move updateProfile function from NotificationSettingsScreen to app/utils/profile.tsx
  • Add getProfile function which use to get user's profile and contacts
  • Update contacts screen, preferred use saved metadata for user's profile, skip unnecessary relay request. Add button for refresh contacts
  • Experiment: use react-query for handle external async (outside MST), such as: fetch channel user's profile

Other fixes

@reyamir reyamir changed the title Fix errors and optimize userstore Fix errors and optimize Jul 6, 2023
@reyamir reyamir marked this pull request as ready for review July 6, 2023 07:39
@AtlantisPleb AtlantisPleb merged commit e2cc23d into OpenAgentsInc:main Jul 6, 2023
1 check passed
AtlantisPleb pushed a commit that referenced this pull request Jul 6, 2023
AtlantisPleb added a commit that referenced this pull request Jul 10, 2023
* Add demo AI channel (#240)

* New Chat / AI channel button

* Add RN fast image

* Add images

* Add dummy AI channel and components

* feat: blurred popup menu handler (#250)

* feat: setup blurred popup menu logic

* refactor: style and layout

* docs: provider and touchable

* feat: add light haptic feedback

* fix: blurred effect (android)

* fix: soft blur value

* arclib

* Build version to 0.3.0

* Add app/API handshake via tanstack-query (#253)

* initial api doc

* api

* endpoints

* pull in reactquery/haptics/uuid

* pull in faerie hooks

* sending message to api

* console cleanup

* Add basic AI chat (#274)

* api-readme

* use npubs and send good

* ya

* useNpub and cleanup

* initial load conversations from api

* AI channels sort by last message time

* cleanup

* AIChannelDetails decent

* AIChannelDetail navs to actual channel

* use actual channel id as conv id

* initial useConversationMessages

* using convo messages nice

* AIChannel cleanup

* clear input after send

* bump ios build

* use randomuuid on new conv and bump build

* use better screen

* sender and disable animated type for now

* plist

* Bump versions for v0.2.0 release (#251)

* bump info plist

* bump build gradle

* axe AAB buildscript as we will use android studio

* axe empty release:ios

* Fix bugs (#254)

* fix errors

* validate pubkey when add contact by pubkey

* update create account screen

* validate username

* Readme

* Fix errors (#273)

* fix errors

* add channel members

* update package.json

* Bump versions for v0.2.1 release (#275)

* v0.2.1 plist

* buildgradle

* pkgjson

* Fix errors and optimize (#276)

* Add UI for AI model select (#318)

* Set up blank AI Training screen

* try this

* models

* axe react-query from pkg json

* arclib

* ignore yellowbox of promise unhandled

* use tanstack query

* start adding pricing

* fix timestamp formatting

* better timestamps on those chats

* yarn and arclib

* arclib

* Remove TouchablePopupHandler demo from profile settings

* Use correct uuid and dont query without it

* plist build 5

* show loader while messages load

* disable ai settings screen for now

* cleanup

* console shh

* info plist

* simplify animation, imperfect but ok

* headerright larger hitbox

* build 7

* fix: blurred popup handler optimizations (#321)

* fix: update to reanimated v3.3.0

* fix: replace skia value -> reanimated value

* refactor: keep default easing

* fix: linting (#322)

* build 8

* build gradle version

* lint

---------

Co-authored-by: Enzo Manuel Mangano <37193302+enzomanuelmangano@users.noreply.github.com>
Co-authored-by: Ren Amamiya <123083837+reyamir@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment