Without a reproducible example, I can only guess what your problem is based on your syntax errors, my best guess is that you are actually trying to do this
new_project %>%
filter(Id == "1503960366") %>%
group_by(ActivityHour) %>%
summarise(StepTotal = sum(StepTotal))
If this doesn't solve your problem and you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.