Skip to content
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

[Frontend] [Feat]: Display post list with result from searching keyword #567

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

badukwei
Copy link
Collaborator

Summary

新增搜尋貼文功能

Linked Issue

close #545

Details

目前的使用方式,是利用 router 添加 query,如下。
image
用戶如果要進行搜尋,只需要 enter 或是點左方的 search icon 就可以了。

Possible Impacts

目前 api 串接的部分還未完成,因為目前的 api 好像還沒支持搜尋功能,所以等候端完成後再進行更改。

const client = this.getClient()
const response = await client.get<FetchPostsResponse>(
`/post?page=${page}`,
)
//TODO: After relay update change to
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ryanycw 目前前端的更新大概完成了,這邊我看目前 fetchPost api 後端還沒有關鍵字搜尋的功能,如果更新好,只需要改成這段應該就可以用了。

@badukwei
Copy link
Collaborator Author

另外我想提一下,因為搜尋的 routing 結構通常會跟原本主頁的分開,因為可能會使用不同的排版或是元件,但目前因為都是使用同樣的 ui 所以我沒有再新增不同的路徑。

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

Successfully merging this pull request may close these issues.

[UST-274] [Frontend] [Feat]: Display post list with result from searching keyword
1 participant