From 376b0bfab9dd5244d695f3fc3108d9e577a7b807 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Fri, 27 Nov 2026 21:12:04 +0000 Subject: [PATCH] fix: preserve released pricing and public help affordances --- Docs/Content.md | 8 +++++--- .../Content/pricing-provenance.json | 6 ++++++ PlotDirector.Website/Content/pricing.json | 10 +++++----- .../Controllers/HelpController.cs | 2 +- .../TagHelpers/HelpIconTagHelper.cs | 18 ++++++++++++++++++ Tests/verify.py | 4 ++++ Tools/Deployment/production/nginx-website.conf | 2 +- 7 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 PlotDirector.Website/Content/pricing-provenance.json create mode 100644 PlotDirector.Website/TagHelpers/HelpIconTagHelper.cs diff --git a/Docs/Content.md b/Docs/Content.md index d5cd349..77b1e76 100644 --- a/Docs/Content.md +++ b/Docs/Content.md @@ -72,12 +72,14 @@ Editorial/result/payoff JSON and the deterministic engine are retained as extrac version 1. The public website now owns future public solver development; application workspace actions remain application functionality. Validate the whole graph before publishing. Do not maintain parallel edits to the old application's public catalogue. -Before Production approval, compare this approved graph against the currently public -solver; it was intentionally excluded from the Production sitemap and remains so. +The migration compared all 78 solver/browse/feature pages with live Production; their +public text matches. Solver indexing was intentionally disabled in Production and remains so. `Content/pricing.json` is a public plan snapshot, not an entitlement or checkout engine. Payment actions always go to the application, which remains authoritative for billing. -A pricing publication must be checked against released plan facts. No provider price +The baseline snapshot was checked against live Production and preserves its limits, +including differences from Development. A later pricing publication must be checked +against released plan facts. No provider price IDs or account data are required. Prices must never be inferred from marketing text. The initial shared brand is version `public-brand-v1`, with source provenance and diff --git a/PlotDirector.Website/Content/pricing-provenance.json b/PlotDirector.Website/Content/pricing-provenance.json new file mode 100644 index 0000000..8f009a1 --- /dev/null +++ b/PlotDirector.Website/Content/pricing-provenance.json @@ -0,0 +1,6 @@ +{ + "source": "https://plotdirector.com/pricing", + "sourceCommit": "9dcd29d423b20e373e49fb28180d993c40aa165d", + "observedUtc": "2026-11-27", + "review": "Public released plan facts take precedence over differing Development limits. No billing logic or database changes." +} diff --git a/PlotDirector.Website/Content/pricing.json b/PlotDirector.Website/Content/pricing.json index 529c9b4..e54f0b6 100644 --- a/PlotDirector.Website/Content/pricing.json +++ b/PlotDirector.Website/Content/pricing.json @@ -5,9 +5,9 @@ "DisplayName": "Draft Desk", "Description": "Trial and evaluation.", "MaxBooks": 2, - "MaxChaptersPerBook": 75, - "MaxScenesPerBook": 300, - "MaxCharactersPerProject": 75, + "MaxChaptersPerBook": 40, + "MaxScenesPerBook": 99, + "MaxCharactersPerProject": 50, "MaxStorageMB": 100, "MaxCollaborators": 0, "IsActive": true, @@ -27,7 +27,7 @@ "MaxBooks": 10, "MaxChaptersPerBook": 150, "MaxScenesPerBook": 1000, - "MaxCharactersPerProject": 250, + "MaxCharactersPerProject": 200, "MaxStorageMB": 1024, "MaxCollaborators": 1, "IsActive": true, @@ -79,4 +79,4 @@ "AnnualPricePence": 12999, "CurrencyCode": "GBP" } -] \ No newline at end of file +] diff --git a/PlotDirector.Website/Controllers/HelpController.cs b/PlotDirector.Website/Controllers/HelpController.cs index f48c043..71868b1 100644 --- a/PlotDirector.Website/Controllers/HelpController.cs +++ b/PlotDirector.Website/Controllers/HelpController.cs @@ -124,7 +124,7 @@ public sealed class HelpController(IHelpService help, IHelpMarkdownRenderer mark var description = PublicSeo.HelpArticleDescription(article, help.GetAllArticles()); PublicSeo.Apply(ViewData, configuration, new SeoMetadata { - Title = article.Title, + Title = $"{article.Title}{(help.GetAllArticles().Count(a => a.Category == article.Category && a.Title == article.Title) > 1 ? " — " + System.Globalization.CultureInfo.InvariantCulture.TextInfo.ToTitleCase(article.ContextKey.Split('.').Last()) : "")} | {article.Category} Help", Description = description, Keywords = PublicSeo.Keywords([article.Category, article.Title, "PlotDirector help"], article.Tags), CanonicalPath = article.Url, diff --git a/PlotDirector.Website/TagHelpers/HelpIconTagHelper.cs b/PlotDirector.Website/TagHelpers/HelpIconTagHelper.cs new file mode 100644 index 0000000..7955a2c --- /dev/null +++ b/PlotDirector.Website/TagHelpers/HelpIconTagHelper.cs @@ -0,0 +1,18 @@ +using Microsoft.AspNetCore.Razor.TagHelpers; +using PlotDirector.Website.Services; +namespace PlotDirector.Website.TagHelpers; +[HtmlTargetElement("help-icon",Attributes="key")] +public sealed class HelpIconTagHelper(IHelpService help):TagHelper +{ + public string Key {get;set;}=""; + public override void Process(TagHelperContext context,TagHelperOutput output) + { + var article=help.GetByContextKey(Key); + if(article is null){output.SuppressOutput();return;} + output.TagName="a";output.TagMode=TagMode.StartTagAndEndTag; + output.Attributes.RemoveAll("key");output.Attributes.SetAttribute("href",article.Url); + output.Attributes.SetAttribute("class","plotline-help-icon"); + output.Attributes.SetAttribute("aria-label","Help: "+article.QuickTitle); + output.Attributes.SetAttribute("title",article.Micro);output.Content.SetContent("?"); + } +} diff --git a/Tests/verify.py b/Tests/verify.py index f433281..89b8381 100644 --- a/Tests/verify.py +++ b/Tests/verify.py @@ -54,6 +54,10 @@ def run(origin,production=False): parsed=urllib.parse.urlsplit(link);links.add(parsed.path) assets.update(urllib.parse.urlsplit(a).path for a in p.assets if a.startswith('/')) if 'service-worker' in ' '.join(p.assets) or any('site.webmanifest' in a for a in p.assets):errors.append(path+': application PWA asset') + titles={} + for path,p in pages.items(): + if p.title in titles:errors.append(path+': duplicate title with '+titles[p.title]) + titles[p.title]=path for path in sorted((assets|links)-set(pages)): try:fetch(path) except Exception as e:errors.append(path+': broken internal link/asset '+str(e)) diff --git a/Tools/Deployment/production/nginx-website.conf b/Tools/Deployment/production/nginx-website.conf index ef0b500..b73d2f1 100644 --- a/Tools/Deployment/production/nginx-website.conf +++ b/Tools/Deployment/production/nginx-website.conf @@ -38,7 +38,7 @@ server { proxy_read_timeout 120s; add_header X-Robots-Tag "noindex, nofollow" always; } - location ~* ^/(Acceptance|Account|Admin|Ai|AiAdministration|Analytics|Appearance|Archives|BookRecovery|Books|Chapters|CharacterAttributes|CharacterWorkspace|Characters|ContextNames|ContextNavigation|ContextRelationshipLenses|ContextTools|ContinuityExplorer|DeploymentHealth|Dynamics|Exports|FeatureRequests|FloorPlans|Geography|HelpDiagnostics|HelpDrawer|Imports|IntelligenceReview|IntentAssessment|InvestigationCompanion|LocationWorkspace|Locations|ManageAccount|ManuscriptReader|Maps|NameVerification|Names|NarrativeFocus|NativeChapterSync|NativeCompanion|NativeCompanionAuth|NativeCompanionWorkflow|NativeInstallation|NativeManuscriptCapture|NativePresence|NativeWorkspace|Onboarding|ParagraphManuscript|PlotLineWorkspace|PlotLines|PlotThreads|ProjectCollaborators|ProjectMetrics|ProjectRestorePoints|Projects|RelationshipMap|Scenarios|SceneMetrics|Scenes|SharedFocus|SpatialContext|StoryAssets|StoryBible|StoryCalendar|StoryPoint|StripeWebhook|Timeline|Toolbar|Warnings|WordCompanion|WordCompanionHost|Writer|WriterActivities|WriterAuthoring|WriterInvestigations|WriterPlanning|WriterReview|WriterWord|WriterWork|Writing|WritingActivity|WritingSolverAdmin|WritingSolverReview|WritingSolverWorkspace|Home|Pricing/(?:StartTrial|Checkout))(?:/|$) { + location ~* ^/(Acceptance|Account|Admin|Ai|AiAdministration|Analytics|Appearance|Archives|BookRecovery|Books|Chapters|CharacterAttributes|CharacterWorkspace|Characters|ContextNames|ContextNavigation|ContextRelationshipLenses|ContextTools|ContinuityExplorer|DeploymentHealth|Dynamics|Exports|FeatureRequests|FloorPlans|Geography|HelpDiagnostics|HelpDrawer|Imports|IntelligenceReview|IntentAssessment|InvestigationCompanion|LocationWorkspace|Locations|ManageAccount|ManuscriptReader|Maps|NameVerification|Names|NarrativeFocus|NativeChapterSync|NativeCompanion|NativeCompanionAuth|NativeCompanionWorkflow|NativeInstallation|NativeManuscriptCapture|NativePresence|NativeWorkspace|Onboarding|ParagraphManuscript|PlotLineWorkspace|PlotLines|PlotThreads|ProjectCollaborators|ProjectMetrics|ProjectRestorePoints|Projects|RelationshipMap|Scenarios|SceneMetrics|Scenes|SharedFocus|SpatialContext|StoryAssets|StoryBible|StoryCalendar|StoryPoint|StripeWebhook|Timeline|Toolbar|Warnings|WordCompanion|WordCompanionHost|Writer|WriterActivities|WriterAuthoring|WriterInvestigations|WriterPlanning|WriterReview|WriterWord|WriterWork|Writing|WritingActivity|WritingSolverAdmin|WritingSolverReview|WritingSolverWorkspace|admin|intelligence-review|manuscript|onboarding|InvestigationCompanion|problem-solver/workspace|writing-problems/workspace|Home|Pricing/(?:StartTrial|Checkout))(?:/|$) { return 308 https://app.plotdirector.com$request_uri; } # Retain original public Help and solver URLs, including legacy help redirects.