daisycrego / jbg-admin

Admin app for Jill Biggs Group follow-up boss event management
1 stars 0 forks source link

Lead status comparison feature #17

Closed daisycrego closed 3 years ago

daisycrego commented 3 years ago

Allow admin to manually enter Zillow lead status, pull lead status from FUB, display these side by side in the UI so the admin can visually know whether or not they are in sync, and bring them to sync if needed.

daisycrego commented 3 years ago

Requires a table of all the leads and a new fetch method for the /person/:id endpoint.

daisycrego commented 3 years ago

Could re-purpose the old sync-events button and feature to instead sync-people. We can use this to sync the people in the last x period of time, to get all of that recent zillow data we need, including the statuses. This will also be used every time the admin uses to page to make sure all the data is in sync. We could alternatively add another webhook for whenever a person is created, so we only keep track of new leads and we also capture updates to lead status without the admin having to manually sync with the FUB api every time they use our site.

daisycrego commented 3 years ago

personCreated/personUpdated webhooks vs. manual Sync Person or Sync People button

Might be useful to discuss with Dan how they want to use the feature, what the admin's workflow is most likely to benefit from. I'm thinking that the ability to sync an individual row and the webhook for personCreated/personUpdated is enough, and maybe the update-all-people (Sync People button) is really overkill.

tentative

daisycrego commented 3 years ago

Plan - Technical

daisycrego commented 3 years ago

Made a commit with most of the initial code for the leads feature. Need to make some fixes to the Events table which I will also have to carry over to the newly created LeadsTable, which I why I haven't refined the LeadsTable, as it may be changed when I make the fixes to the EventsTable: rowsPerPage can't be changed from 10, and the larger change, state of the EventsTable needs to be passed higher up in the component hierarchy so when the user goes to the More link, they can go back and see the state of their previous search.

daisycrego commented 3 years ago

Planning

Resuming this Leads stage comparison feature to compare the FUB vs. Zillow stages, now that the Events page and EventsTable have been implemented.

daisycrego commented 3 years ago

Issue - Don't overwrite zillowStage during syncs

When the webhook events are being processed - if we make an update to the stage of a person, make sure not to update the zillowStage, this will surely just overwrite it to null! Make sure to only update some of the fields, not all of them.

Update

daisycrego commented 3 years ago

Issue - QueryExceededMemoryLimitNoDiskUseAllowed - MongoError

Update