Merge pull request '[FA-misc] Page title updates' (#49) from feature/FA-misc_UIUpdates into master
All checks were successful
CI / build-backend (push) Successful in 1m2s
CI / build-frontend (push) Successful in 40s
Build Gateway / build-subgraphs (map[name:novel-service project:FictionArchive.Service.NovelService subgraph:Novel]) (push) Successful in 48s
Build Gateway / build-subgraphs (map[name:scheduler-service project:FictionArchive.Service.SchedulerService subgraph:Scheduler]) (push) Successful in 45s
Build Gateway / build-subgraphs (map[name:translation-service project:FictionArchive.Service.TranslationService subgraph:Translation]) (push) Successful in 47s
Build Gateway / build-subgraphs (map[name:user-service project:FictionArchive.Service.UserService subgraph:User]) (push) Successful in 43s
Release / build-and-push (map[dockerfile:FictionArchive.Service.AuthenticationService/Dockerfile name:authentication-service]) (push) Successful in 2m17s
Release / build-and-push (map[dockerfile:FictionArchive.Service.FileService/Dockerfile name:file-service]) (push) Successful in 2m10s
Release / build-and-push (map[dockerfile:FictionArchive.Service.NovelService/Dockerfile name:novel-service]) (push) Successful in 1m56s
Release / build-and-push (map[dockerfile:FictionArchive.Service.SchedulerService/Dockerfile name:scheduler-service]) (push) Successful in 1m52s
Release / build-and-push (map[dockerfile:FictionArchive.Service.TranslationService/Dockerfile name:translation-service]) (push) Successful in 1m54s
Release / build-and-push (map[dockerfile:FictionArchive.Service.UserService/Dockerfile name:user-service]) (push) Successful in 1m47s
Release / build-frontend (push) Successful in 1m41s
Build Gateway / build-gateway (push) Successful in 3m41s

Reviewed-on: #49
This commit was merged in pull request #49.
This commit is contained in:
2025-12-11 12:42:33 +00:00
2 changed files with 3 additions and 0 deletions

View File

@@ -74,6 +74,8 @@
if (result.data?.chapter) { if (result.data?.chapter) {
chapter = result.data.chapter; chapter = result.data.chapter;
// Update the page title with chapter info
document.title = `${chapter.novelName} - ${chapter.order}`;
} else { } else {
error = 'Chapter not found'; error = 'Chapter not found';
} }

View File

@@ -215,6 +215,7 @@
const nodes = result.data?.novels?.nodes; const nodes = result.data?.novels?.nodes;
if (nodes && nodes.length > 0) { if (nodes && nodes.length > 0) {
novel = nodes[0]; novel = nodes[0];
document.title = novel.name;
} else { } else {
error = 'Novel not found'; error = 'Novel not found';
} }