feat: AI-assisted delivery bootstrap with New Product Badge feature#696
Open
vitttoria15-study wants to merge 12 commits into
Open
feat: AI-assisted delivery bootstrap with New Product Badge feature#696vitttoria15-study wants to merge 12 commits into
vitttoria15-study wants to merge 12 commits into
Conversation
Adds ShowNewBadge bool property to ProductDetailsModel and a TDD test in Grand.Web.Common.Tests. Updates the test project to reference Grand.Web and resolves the resulting Store namespace conflict in AdminStoreServiceTests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
[Feature] Add New badge to product details page
…tttoria15-study/grandnode2 into feature/ai-delivery-bootstrap
Member
|
@vitttoria15-study “Mark as new” already exists on the product. I think this is a duplicate feature. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces an AI-assisted delivery workflow bootstrap and implements the New Product Badge feature for the product details page.
AI-Powered Delivery Bootstrap
docs/ai-delivery/documentation covering project overview, development guide, feature workflow, and architecture notesNew Product Badge Feature
Displays a green "New" badge on the product details page for products created within the last 30 days.
Implementation:
ProductDetailsModel— added computedbool ShowNewBadge { get; set; }GetProductDetailsPageHandler— populatesShowNewBadgefromproduct.CreatedOnUtc >= DateTime.UtcNow.AddDays(-30), alongside the existingFlagassignment; no service, domain, or cache changesGrand.Web/Views/Product/ProductLayout.Simple.cshtml— renders badge block after the existing Flag blockTheme.Modern/Views/Modern/Product/ProductLayout.Simple.cshtml— adds both Flag and ShowNewBadge blocks (theme previously had neither)Tests & Validation
ProductNewBadgeTests.cs: property existence, created-today, within-30-days, and 31-days-ago boundary casesAI Workflow Notes
docs/superpowers/plans/2026-05-22-new-product-badge.md)ShowNewBadge = trueoverride to validate template rendering before restoring date logic