-
Notifications
You must be signed in to change notification settings - Fork 9
Feature/article search #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -18,7 +18,7 @@ FRONT_BASE_URL=http://localhost:3000 | |||
|
|||
MOCKED_INTEGRATION_DELAYS_ENABLED=true | |||
|
|||
CMS_STRAPI_BASE_URL= | |||
CMS_STRAPI_BASE_URL=https://strapi-oss.dev.hycom.pl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this
|
||
class Article { | ||
label!: string; | ||
value!: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's rename this to url
as value
does not hint what it's used for
|
||
return ( | ||
<> | ||
{label && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input should always have a label, so rather there should be a prop called labelHidden
that hides it visually
@Auth.Decorators.Roles({ roles: [Auth.Constants.Roles.USER, Auth.Constants.Roles.ADMIN] }) | ||
getArticleSearchBlock(@Headers() headers: AppHeaders, @Query() query: GetArticleSearchBlockQuery) { | ||
return this.service.getArticleSearchBlock(query, headers); | ||
} | ||
|
||
@Get('articles') | ||
@Auth.Decorators.Roles({ roles: [Auth.Constants.Roles.USER, Auth.Constants.Roles.ADMIN] }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this component should NOT require any roles (currently it prevents it from being rendered before signing-in)
What does this PR do?
New block ArticleSearch added