Refactored manifest to include s3 bucket and HasherService configs and secrets
continuous-integration/drone/pr Build is failing
continuous-integration/drone/pr Build is failing
Upgraded nuget packages to bring in new Payment and Product service functionality
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using LiteCharms.Features.MidrandBooks;
|
||||
using LiteCharms.Features;
|
||||
using LiteCharms.Features.MidrandBooks.AuthorBooks;
|
||||
using LiteCharms.Features.MidrandBooks.Authors;
|
||||
using LiteCharms.Features.MidrandBooks.Categories;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using LiteCharms.Features.MidrandBooks;
|
||||
using LiteCharms.Features;
|
||||
using LiteCharms.Features.MidrandBooks.Authors;
|
||||
using LiteCharms.Features.MidrandBooks.Authors.Models;
|
||||
using LiteCharms.Features.MidrandBooks.Products;
|
||||
@@ -35,7 +35,6 @@ public partial class ProductView : ComponentBase
|
||||
CurrentAuthor = null;
|
||||
Thumbnails.Clear();
|
||||
|
||||
// 1. Resolve product listing details
|
||||
var productResult = await ProductService.GetProductAsync(BookId);
|
||||
|
||||
if (productResult.IsSuccess && productResult.Value != null)
|
||||
@@ -43,31 +42,24 @@ public partial class ProductView : ComponentBase
|
||||
CurrentProduct = productResult.Value;
|
||||
AuthorName = CurrentProduct.Metadata?.Manufacturer ?? "Unknown Author";
|
||||
|
||||
// 2. Load pricing data
|
||||
var priceResult = await ProductService.GetProductPriceAsync(BookId);
|
||||
LivePrice = priceResult.IsSuccess ? priceResult.Value.Amount : 0m;
|
||||
|
||||
// 3. Extract active catalog categories
|
||||
var categoryResult = await ProductService.GetProductCategoriesAsync(BookId);
|
||||
if (categoryResult.IsSuccess && categoryResult.Value.Length > 0)
|
||||
{
|
||||
PrimaryCategory = categoryResult.Value[0].Name ?? "General";
|
||||
}
|
||||
|
||||
// 4. Retrieve complete contextual model through the newly instantiated AuthorService lookup
|
||||
var authorResult = await AuthorService.GetAuthorByProductIdAsync(BookId);
|
||||
if (authorResult.IsSuccess && authorResult.Value != null)
|
||||
{
|
||||
CurrentAuthor = authorResult.Value;
|
||||
|
||||
// Format fully qualified author text cleanly depending on their publisher model details
|
||||
if (CurrentAuthor.PublisherType == PublisherTypes.Company && !string.IsNullOrWhiteSpace(CurrentAuthor.Company))
|
||||
AuthorName = CurrentAuthor.Company;
|
||||
else
|
||||
AuthorName = $"{CurrentAuthor.Name} {CurrentAuthor.LastName}".Trim();
|
||||
}
|
||||
|
||||
// 5. Build presentation image viewer variables
|
||||
if (!string.IsNullOrWhiteSpace(CurrentProduct.ImageUrl))
|
||||
Thumbnails.Add(CurrentProduct.ImageUrl);
|
||||
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="LiteCharms.Features" Version="1.57.0" />
|
||||
<PackageReference Include="LiteCharms.Features" Version="1.59.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- UI -->
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" />
|
||||
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.57.0" />
|
||||
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.59.0" />
|
||||
|
||||
<!-- Global Usings -->
|
||||
<Using Include="Blazored.Toast.Services" />
|
||||
|
||||
@@ -23,6 +23,7 @@ builder.Services.AddEmailServices(builder.Configuration);
|
||||
builder.Services.AddEmailServiceBus();
|
||||
|
||||
builder.Services.AddShopServices();
|
||||
builder.Services.AddHashServices(builder.Configuration);
|
||||
builder.Services.AddMidrandShopDatabase(builder.Configuration);
|
||||
|
||||
builder.Services.AddMidrandShopPostgresHealthCheck();
|
||||
|
||||
Reference in New Issue
Block a user