Update beehive section frame cell type ratios on update
Status | groomed |
---|---|
Estimate | 3 |
Impact (%) | 60 |
Priority | 20 |
Tags | |
type | bug |
🛴 Features | 🐝Honeycomb cell detection |
The problem is that in this view, we do not seem to update automatically ratios when frame cells are getting processed. This is a problem if I uploaded a picture and then went onto a next frame.
We should in components/shared/hiveBoxes/index.tsx
do something like
// subscribe to
useSubscription(gql`subscription onHiveFrameSideCellsUpdated($hiveId: String){
onHiveFrameSideCellsUpdated(hiveId:$hiveId){ delta }
}`, { hiveId }, (_, response) => {
if (response) {
console.log('onHiveFrameSideCellsUpdated', response)
}
and update indexdb in the browser to get stats updated
This also needs a subscription in https://github.com/Gratheon/event-stream-filter.