fix: preserve released pricing and public help affordances
This commit is contained in:
parent
72a384af88
commit
376b0bfab9
@ -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
|
version 1. The public website now owns future public solver development; application
|
||||||
workspace actions remain application functionality. Validate the whole graph before
|
workspace actions remain application functionality. Validate the whole graph before
|
||||||
publishing. Do not maintain parallel edits to the old application's public catalogue.
|
publishing. Do not maintain parallel edits to the old application's public catalogue.
|
||||||
Before Production approval, compare this approved graph against the currently public
|
The migration compared all 78 solver/browse/feature pages with live Production; their
|
||||||
solver; it was intentionally excluded from the Production sitemap and remains so.
|
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.
|
`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.
|
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.
|
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
|
The initial shared brand is version `public-brand-v1`, with source provenance and
|
||||||
|
|||||||
6
PlotDirector.Website/Content/pricing-provenance.json
Normal file
6
PlotDirector.Website/Content/pricing-provenance.json
Normal file
@ -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."
|
||||||
|
}
|
||||||
@ -5,9 +5,9 @@
|
|||||||
"DisplayName": "Draft Desk",
|
"DisplayName": "Draft Desk",
|
||||||
"Description": "Trial and evaluation.",
|
"Description": "Trial and evaluation.",
|
||||||
"MaxBooks": 2,
|
"MaxBooks": 2,
|
||||||
"MaxChaptersPerBook": 75,
|
"MaxChaptersPerBook": 40,
|
||||||
"MaxScenesPerBook": 300,
|
"MaxScenesPerBook": 99,
|
||||||
"MaxCharactersPerProject": 75,
|
"MaxCharactersPerProject": 50,
|
||||||
"MaxStorageMB": 100,
|
"MaxStorageMB": 100,
|
||||||
"MaxCollaborators": 0,
|
"MaxCollaborators": 0,
|
||||||
"IsActive": true,
|
"IsActive": true,
|
||||||
@ -27,7 +27,7 @@
|
|||||||
"MaxBooks": 10,
|
"MaxBooks": 10,
|
||||||
"MaxChaptersPerBook": 150,
|
"MaxChaptersPerBook": 150,
|
||||||
"MaxScenesPerBook": 1000,
|
"MaxScenesPerBook": 1000,
|
||||||
"MaxCharactersPerProject": 250,
|
"MaxCharactersPerProject": 200,
|
||||||
"MaxStorageMB": 1024,
|
"MaxStorageMB": 1024,
|
||||||
"MaxCollaborators": 1,
|
"MaxCollaborators": 1,
|
||||||
"IsActive": true,
|
"IsActive": true,
|
||||||
@ -79,4 +79,4 @@
|
|||||||
"AnnualPricePence": 12999,
|
"AnnualPricePence": 12999,
|
||||||
"CurrencyCode": "GBP"
|
"CurrencyCode": "GBP"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -124,7 +124,7 @@ public sealed class HelpController(IHelpService help, IHelpMarkdownRenderer mark
|
|||||||
var description = PublicSeo.HelpArticleDescription(article, help.GetAllArticles());
|
var description = PublicSeo.HelpArticleDescription(article, help.GetAllArticles());
|
||||||
PublicSeo.Apply(ViewData, configuration, new SeoMetadata
|
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,
|
Description = description,
|
||||||
Keywords = PublicSeo.Keywords([article.Category, article.Title, "PlotDirector help"], article.Tags),
|
Keywords = PublicSeo.Keywords([article.Category, article.Title, "PlotDirector help"], article.Tags),
|
||||||
CanonicalPath = article.Url,
|
CanonicalPath = article.Url,
|
||||||
|
|||||||
18
PlotDirector.Website/TagHelpers/HelpIconTagHelper.cs
Normal file
18
PlotDirector.Website/TagHelpers/HelpIconTagHelper.cs
Normal file
@ -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("?");
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -54,6 +54,10 @@ def run(origin,production=False):
|
|||||||
parsed=urllib.parse.urlsplit(link);links.add(parsed.path)
|
parsed=urllib.parse.urlsplit(link);links.add(parsed.path)
|
||||||
assets.update(urllib.parse.urlsplit(a).path for a in p.assets if a.startswith('/'))
|
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')
|
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)):
|
for path in sorted((assets|links)-set(pages)):
|
||||||
try:fetch(path)
|
try:fetch(path)
|
||||||
except Exception as e:errors.append(path+': broken internal link/asset '+str(e))
|
except Exception as e:errors.append(path+': broken internal link/asset '+str(e))
|
||||||
|
|||||||
@ -38,7 +38,7 @@ server {
|
|||||||
proxy_read_timeout 120s;
|
proxy_read_timeout 120s;
|
||||||
add_header X-Robots-Tag "noindex, nofollow" always;
|
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;
|
return 308 https://app.plotdirector.com$request_uri;
|
||||||
}
|
}
|
||||||
# Retain original public Help and solver URLs, including legacy help redirects.
|
# Retain original public Help and solver URLs, including legacy help redirects.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user