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

Migrate offchain auth to useSession from useUser #30

Closed
Gizmotronn opened this issue Feb 3, 2023 · 0 comments
Closed

Migrate offchain auth to useSession from useUser #30

Gizmotronn opened this issue Feb 3, 2023 · 0 comments
Assignees
Labels
truffle-ganache Truffle & ganache (npm) related issues

Comments

@Gizmotronn
Copy link
Member

Problems

  1. We've got a load of CSS due to issues with tailwind. Still works fine and looks the same, except for:
    a. Having issues with state management (for different styling) based on page links
    b. User profile components are not tabbed (navlinks on profile section don't work)
  2. We've got a conflict between useUser & useSession from Supabase

The potential solution here would be to separate the off chain account into a separate Next app and then add the coffeescripts for the Lens interaction straight after, and then edit the OffchainAccount component to use useSession.

Signal-K/client#17

https://www.notion.so/skinetics/February-Week-1-7340518bcac64edd8422864eff3c6884#287aabf1378843cca876f51bd03564af

  1. Cut the social graph out from the main client repo for now
  2. Fix it → from useUser to useSession
  3. Add generator package
  4. Add proposals metadata with new UI based on the <Card /> component
  5. Create a public db (i.e. no RLS) that references my user (to demo FK relationship) that links planets, graph & proposals. In the absence of the graph data, just add a UUID for ONE output parameter from Jupyter
  6. Feed output into generator
  7. Create a request that sends the generator data & post data into the DB, in the same format as a lens post. Add additional metadata to IPFS (like the images on the current Lens client).
  8. Add voting mechanism for off-chain (based on Supabase Primer supaship). Take data from off-chain proposal & deploy it to the on-chain Proposal (which will then be a custom Lens module/mirror). A GNOSIS safe will be required to set this up to prevent the hardware wallet requirement for testnet interaction on our Thirdweb account.
  9. Add a Lens feed again and the post metadata

Linear info:
https://linear.app/star-sailors/issue/WB3-11/migrate-offchain-auth-to-usesession-from-useuser
Id: WB3-11

@Gizmotronn Gizmotronn added the truffle-ganache Truffle & ganache (npm) related issues label Feb 3, 2023
@Gizmotronn Gizmotronn self-assigned this Feb 3, 2023
Gizmotronn added a commit to Signal-K/client that referenced this issue Feb 20, 2023
Users can now navigate to `/planets/{$planetID}` to see information relating to their planet, including datasets, articles, a sandbox, basic stats/info, a gallery, and a generator.

Generator:
Signal-K/sytizen#18
Right now it's just the same generator script, but eventually it will take in the fields like radius from the table the page itself is generated from. We'll update the frontend fields to use a UI based on the <Card /> component we've designed for the Profile pages. users will be able to edit these fields and create a fork of the anomaly in its dataset sandbox for use in their own projects, and this can be part of the "XP" demo for "citizen science points" to mimic the behaviour of the reputation erc20 token:

Now that staking has been re-added, time to close #18

Signal-K/sytizen#16 Profile pages
Signal-K/sytizen#13
Signal-K/sytizen#6 -> Generator & staking
Signal-K/sytizen#1 -> sandbox & generator
Signal-K/Unity-Demo#28
Signal-K/Unity-Demo#5
Signal-K/starsailors#4 -> user input on anomalies
Signal-K/Silfur#26
Signal-K/Silfur#25 -> Some small changes with the Thirdweb module behaviour, still yet to commence full re-integration now though
Signal-K/Silfur#24
Signal-K/Silfur#22 -> Replacing "mint" FOR NOW with just a "claim" button that sends the planet to your supabase table inventory (array/foreign key in 'profiles' table

Signal-K/Silfur#21
Signal-K/Silfur#12 -> Keep an eye on this, but for now this is deprecated
Signal-K/Silfur#3 -> Again keep an eye on the original card game contract, but until we commence the full re-integration of the smart contracts, this is not needed

Signal-K/Silfur#30 -> This is working a treat
Signal-K/Silfur#29 -> Now need to add true threaded comments & integrate it with sandbox items

Full notes available here: https://www.notion.so/skinetics/February-Flow-Planets-8c864b66147c447f82136772336e9bc6?pvs=4#09b8260b2360412683ef5935309fd011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
truffle-ganache Truffle & ganache (npm) related issues
Projects
None yet
Development

No branches or pull requests

1 participant