posthog-flutter icon indicating copy to clipboard operation
posthog-flutter copied to clipboard

feat(wip): add initial structure of session replay

Open thisames opened this issue 1 year ago • 1 comments

:bulb: Motivation and Context

#69

:green_heart: How did you test it?

:pencil: Checklist

  • [ ] I reviewed the submitted code.
  • [ ] I added tests to verify the changes.
  • [ ] I updated the docs if needed.
  • [ ] No breaking change or entry added to the changelog.

thisames avatar Sep 22 '24 18:09 thisames

Amazing @thisames will take a look.

marandaneto avatar Sep 23 '24 08:09 marandaneto

Everything is going well. In theory, the replay already works. However, I still need to thoroughly analyze the code and adjust other details. I also need to organize the folder structure and check if there is any code smell.

Additionally, here are the main tasks that are currently a priority: [x] masks navigation context [ ] Regular and improve the debounce (It currently works ok, but not enough) [ ] Improve performance (It currently works ok, but not enough) [ ] Add a solution to perfectly synchronize the mask with the current screenshot (maybe a manual schedule or queue?) [ ] still missing, implement the bridge on the native side correctly. currently there are only test bridges

https://github.com/user-attachments/assets/4777577b-722c-4e94-8021-72783c046a2c

thisames avatar Oct 01 '24 06:10 thisames

@thisames look at this PR since I need to get this merged in first and will conflict with a few things for you

marandaneto avatar Oct 02 '24 13:10 marandaneto

@thisames look at this PR since I need to get this merged in first and will conflict with a few things for you

I think you can merge this https://github.com/PostHog/posthog-flutter/pull/117. Then I'll pull it and resolve the conflicts. But there's nothing that will impact my PR that much. I just need to adapt the initialization settings that I added to the style that you implemented.

https://github.com/PostHog/posthog-flutter/blob/197002162df1ddc9fbd5acf524a933a1ddbd1ae7/lib/src/posthog.dart#L25-L38

from what I understand, my init is equivalent to your setup.

Future<void> setup(PostHogConfig config) => _posthog.setup(config);

thisames avatar Oct 02 '24 13:10 thisames

hello @thisames Hope you are doing well

I see you guys are working on the session recording is this feature will be available for Flutter web as well?

xkxeeshankhan avatar Oct 07 '24 22:10 xkxeeshankhan

hello @thisames Hope you are doing well

I see you guys are working on the session recording is this feature will be available for Flutter web as well?

I think that @marandaneto may say better about that

thisames avatar Oct 09 '24 07:10 thisames

hello @thisames Hope you are doing well

I see you guys are working on the session recording is this feature will be available for Flutter web as well?

Flutter web target is already supported.

marandaneto avatar Oct 09 '24 08:10 marandaneto