Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Ref/categories to tags#140

Open
kshna wants to merge 42 commits intoonur-ozkan:masterfrom
kshna:ref/categories-to-tags
Open

Ref/categories to tags#140
kshna wants to merge 42 commits intoonur-ozkan:masterfrom
kshna:ref/categories-to-tags

Conversation

@kshna
Copy link

@kshna kshna commented Oct 4, 2022

No description provided.

export * from './CategorySelect'
export * from './ImageUpload'
export * from './PageHelmet'
export * from './SignModal' No newline at end of file
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export * from './TagSearchingBlock' is missing here

@@ -1,10 +1,9 @@
// Local files
import { TitleResponseData, CategoryResponseData } from '@/@types/api'
import { TitleResponseData } from '@/@types/api'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corresponding "TagResponseData" should be added in place of CategoryResponseData

export interface FeedPageInitials {
titleData: TitleResponseData,
categoryData: CategoryResponseData,
featuredEntry: string,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TagResponseData should be added

@@ -1,5 +1,5 @@
// Local files
import { CategoryResponseData, TitleResponseData, EntryResponseData} from '@/@types/api'
import { TitleResponseData, EntryResponseData} from '@/@types/api'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TagResponseData should be added here

export interface FeedHeaderProps {
accessToken: string,
categoryData: CategoryResponseData,
titleData: TitleResponseData,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TagResponseData should be added here as well

const handleDeSelect = (tag: string) => {
const updatedList = tagValue.filter(value => value !== tag)
setTagValue(updatedList)
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import TagSearchingBlock to use all the tag handles here


if (titleNotFound) return <NotFoundPage />
if (!entryList || !title || !category || (!averageTitleRate && averageTitleRate !== 0)) return <PageLoading />
if (!entryList || !title || (!averageTitleRate && averageTitleRate !== 0)) return <PageLoading />
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add tags here

)
})
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls use the component FeedHeader for handleTagsView

}

async searchTag(searchValue: string): Promise<{ tags: TagsEntity[] }> {
const [tags] = await this.findAndCount({
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls use find instead of findAndCount here

@ApiProperty({
required: false,
example: '507f1f77bcf86cd799439011',
example: '"electronics", "phone", "samsung"'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be in square brackets [ ]

@onur-ozkan
Copy link
Owner

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants