FTCHD / frametrain

Infinitely growing Frames builder with integrated Farcaster Hub APIs and Revenue Sharing.
https://frametra.in
25 stars 20 forks source link

Simulate User (FID Impersonation) #35

Open FTCHD opened 3 weeks ago

FTCHD commented 3 weeks ago

TLDR: Currently we give users the option to simulate Following, Follower, Recasted, Shared. We should have a field at the bottom of the menu to input a custom FID to simulate.

This involves changes in the FramePreview and /p route.

simulate
waptik commented 2 days ago

Where should the fid be saved(localstorage, db cookies etc)?

FTCHD commented 2 days ago

It should work the same as the other options in the Popover, using an atom, not saving data anywhere.

Ideally, it would already be pre-populated with the FID of the currently logged user.

FTCHD commented 2 days ago

Every time you open a new frame it would pre populate it with your FID, and you can change it by typing in the Input below the 4 toggles. If you go to another frame the same happens, we can add persistence to the atoms a bit later (& it's mostly just a flag).