Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

webui: new item filter #1143

Merged
merged 9 commits into from
Jul 16, 2023
Merged

webui: new item filter #1143

merged 9 commits into from
Jul 16, 2023

Conversation

or2e
Copy link
Collaborator

@or2e or2e commented Jul 12, 2023

  1. Added "Show only new items" filter
    The item is considered new if it was added not earlier than 30 days
    Value is changed in item-service, I did not move it in constants.json

    Screenshot

    image

  2. Changed the dropdown behavior of additional filters.
    Now it closes after selecting
    Also made the open button more visible

    Demo
    additional-filters-dropdown.mp4
  3. Fixed auto-tests related to search service and indexer

@or2e or2e linked an issue Jul 12, 2023 that may be closed by this pull request
@or2e or2e marked this pull request as ready for review July 14, 2023 00:29
@or2e or2e requested a review from verdie-g July 14, 2023 00:29
@@ -1101,6 +1101,10 @@ item:
title: 'Rank'
description: ''

new:
title: 'New items only'
description: 'Show items added within {days} days'
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
description: 'Show items added within {days} days'
description: 'Show items added or reworked within the last {days} days'

Same for CN/RU

@@ -195,12 +197,13 @@ const itemToFlat = (item: Item): ItemFlat => {
];

// Banning the use of large shields on horseback
if (isLargeShield(item)) {
if (item.type === ItemType.Shield && isLargeShield(item)) {
Copy link
Owner

Choose a reason for hiding this comment

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

That check is already done in isLargeShield

@or2e or2e requested a review from verdie-g July 16, 2023 13:07
@verdie-g verdie-g merged commit 82ecf1b into master Jul 16, 2023
@verdie-g verdie-g deleted the 1102-new-item-filter-on-website branch July 16, 2023 14:34
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.

New item filter on website
2 participants