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

[公司職稱頁面] 讓搜尋框不受分頁影響 #1423

Merged
merged 14 commits into from
Aug 28, 2024

Conversation

peteranny
Copy link
Contributor

@peteranny peteranny commented Aug 27, 2024

Close #1416

這個 PR 是?

原本公司職稱頁面的資料是用 StatusRenderer 處理,其中包含 Searchbar
這個 PR 將 Searchbar 拉出 StatusRenderer 以獨立於分頁資料

另外在薪資頁面將統計資料獨立於薪時資料,使得統計資料不因搜尋影響

另外 Searchbar 也做簡單的化簡,並且修改 debounce time 成 1.5 秒

Screenshots

Before

2024-08-28.8.21.20.mov

After

2024-08-28.1.01.26.mov

我應該如何手動測試?

@peteranny peteranny requested a review from a team August 27, 2024 17:03
@peteranny peteranny changed the title [公司職稱頁面] 讓搜尋框不因分頁影響 [公司職稱頁面] 讓搜尋框不受分頁影響 Aug 27, 2024
@mark86092
Copy link
Contributor

Overview 也用到 salary_work_time_statistics 相關的資料,有考慮替換掉 Overview 來自 redux 的資料嗎?

@peteranny
Copy link
Contributor Author

Overview 也用到 salary_work_time_statistics 相關的資料,有考慮替換掉 Overview 來自 redux 的資料嗎?

剛看 Overview 的資料和 TimeAndSalaryStatistics 的資料互斥,所以他們不會共用
但的確可以移除多 query 的部分,現已移除!

@@ -30,7 +30,20 @@ const OvertimeSection = ({ statistics }) => {
};

OvertimeSection.propTypes = {
statistics: PropTypes.object.isRequired,
statistics: PropTypes.shape({
average_estimated_hourly_wage: PropTypes.number.isRequired,
Copy link
Contributor

@mark86092 mark86092 Aug 28, 2024

Choose a reason for hiding this comment

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

[optional] 這個參數目前有用到嗎?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

沒用到,會移除

Copy link
Contributor

Choose a reason for hiding this comment

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

[optional] 應該也有一些欄位是可以移除的 (ref: src/graphql/company.js

Copy link
Contributor

@mark86092 mark86092 left a comment

Choose a reason for hiding this comment

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

PR 大致上沒問題,有些多餘的 api 欄位,我覺得 optional

@peteranny peteranny merged commit e73cf14 into master Aug 28, 2024
8 checks passed
@peteranny peteranny deleted the feat/improve-pagination-ui branch August 28, 2024 05:47
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