Gitlab project's codeowners not displayed

Hello,

I’m implementing codeowners feature to my project but I’m facing with a problem
I followed this doc link bbut it still not works completely so I have two questions related to that.

  • Normally, we should see a toggle on Settings > Repository > Protected branches (expeected png) but we don’t have it in our settings screen. Why we don’t have it? Should we turn on an option somewhere?

  • Second point, I configured CODEOWNERS file in my repository, but code owners’ approval keeps in Optional status. Why?

my CODEOWNERS
src/components/ @groupname

Result

Thanks for your help.