Skip to content

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Feature/article search #134

wants to merge 5 commits into from

Conversation

tomaszpacior
Copy link
Collaborator

What does this PR do?

New block ArticleSearch added

  • added new UI component - Command,
  • added new articles mock,
  • added mock for ArticleSearchBlock,
  • added strapi integration for ArticleSearchBlock,
  • added new component Autocomplete,

@@ -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
Copy link
Collaborator

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;
Copy link
Collaborator

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 && (
Copy link
Collaborator

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

Comment on lines +20 to +26
@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] })
Copy link
Collaborator

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants