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

Promotions index improvements #79

Merged
merged 15 commits into from
Nov 9, 2023
Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Nov 8, 2023

Allows searching by lane, customer label and active date ("Which promotions will be active Wednesday next week?").

Also speeds up display of the index page for promotions with a very high usage count and no usage limit.

Copy link
Collaborator

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Some questions. Also, at least some filtering integration spec would be nice, no?

@mamhoff mamhoff force-pushed the promotions-index-improvements branch from 49cf853 to 6fd6acc Compare November 8, 2023 12:36
@mamhoff mamhoff force-pushed the promotions-index-improvements branch from 6fd6acc to 05c292b Compare November 8, 2023 12:44
We want to see at a glance what the lanes of our promotions are.
It's quite slow to calculate usage counts. Let's instead display an
infinity symbol for promotions that don't have a usage limit.
When a promotion has no usage limit, we can still tell admins whether a
promotion has been used at all. Counting one is not so hard.
This does not set a default filter, so we can still see all promotions,
but it's real easy to set the filter to today.
This way the column makes more sense in the admin.
@mamhoff mamhoff force-pushed the promotions-index-improvements branch 2 times, most recently from edea845 to 3a2664f Compare November 8, 2023 16:46
@mamhoff mamhoff force-pushed the promotions-index-improvements branch from 3a2664f to beeab14 Compare November 8, 2023 18:18
@mamhoff mamhoff merged commit 2532f26 into main Nov 9, 2023
4 checks passed
@mamhoff mamhoff deleted the promotions-index-improvements branch November 9, 2023 10:34
mamhoff added a commit that referenced this pull request Jul 1, 2024
mamhoff added a commit that referenced this pull request Oct 25, 2024
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