— Diary, Programming — 2 min read
Okay, I have to make some changes to the anonymous messaging system. The people who haven't got any reply to them have to be given a reply by the Admin. So that needs some brain storming. First I need to review the code I wrote at that time and see where the changes have to be made.
I reviewed the code and fixed some things before I think about getting started on the feature. I added Redux selector in the Anonymous portal so that it loads faster depending on whether the user is admin or not. I also made the admin checking more concise on other parts of the app with the ?.
selector. Nice!
Finally, I'll just be getting all the messages as soon as they are being typed and then as soon as a message gets a reply, I'll gray it out / move to the bottom I guess / remove from the list? Let's see.
Okay, I'm done So I changed the implementation on the replies page.
Though I cleaned up the code a lot, there is still some scope of improvement on the user side. The subscriptions can be done at one place so if the user is far behind in the process, the session gets disconnected, otherwise I think it can create problems like one person extra in the queue which is not desirable.
Break
Okay, cross browser integration for multiple admins. That might be cool. How would I go about accomplishing that??
So I decided to get started with the UI for talking to MHP. I have no idea where to get started, since there is just one MHP on server.
Okay, there was an issue with the new component where the prop was not being read :/
I wanna bang my head on the wall for that, but I forgot to destructure the props, uff my thinking capacity is gone :facepalm