I cant critique what i cant see, so without a reprex all can do is point to resources.
Heres the shiny debugging guide.
(Shiny debugging and reprex guide)
And another resource is "mastering shiny" online textbook, which teaches shiny methodically and has plenty of examples, i recommend it to learn from.