Mentor d'écriture (M1-M3) : coach dans les champs, relecture d'éditeur, méthode guidée « Donjon en 5 salles »
Qualité & Sécurité / MegaLinter (PMD · Ruff · Bandit · gitleaks · hadolint) (push) Successful in 13m48s
Qualité & Sécurité / Web (ESLint · angular-eslint + sonarjs) (push) Successful in 13m16s
Qualité & Sécurité / Trivy (CVE dépendances Maven / pip / npm) (push) Failing after 3m3s
Build & Push Images / build (core) (push) Successful in 4m50s
Build & Push Images / build (web) (push) Successful in 3m26s
Build & Push Images / build-switcher (push) Successful in 26s
Build & Push Images / build (brain) (push) Canceled after 1m5s
Qualité & Sécurité / MegaLinter (PMD · Ruff · Bandit · gitleaks · hadolint) (push) Successful in 13m48s
Qualité & Sécurité / Web (ESLint · angular-eslint + sonarjs) (push) Successful in 13m16s
Qualité & Sécurité / Trivy (CVE dépendances Maven / pip / npm) (push) Failing after 3m3s
Build & Push Images / build (core) (push) Successful in 4m50s
Build & Push Images / build (web) (push) Successful in 3m26s
Build & Push Images / build-switcher (push) Successful in 26s
Build & Push Images / build (brain) (push) Canceled after 1m5s
- M1 coach : bouton ampoule sur 17 champs narratifs (scène, chapitre, arc),
panneau de conseils (à quoi ça sert, questions, exemple, piège classique).
Contenu statique i18n fr/en, sans IA ; ampoule aussi dans l'en-tête des
sections repliables (input coachTopic d'expandable-section).
- M2 relecture d'éditeur : WritingReviewService + GET
/api/campaigns/{id}/writing-review, 10 règles déterministes WRITE-001 à 010
(couloir, faux choix, révélation à chemin unique, rythme monotone, enjeux
absents, narration trop longue ou qui décide à la place des PJ, combat sans
but, fin unique, scènes non typées). Le back renvoie ruleId + params, les
textes fr/en sont dans l'i18n. Panneau sur le hub, encart dans les éditeurs,
liens « Voir » avec ?focus= (nouveaux focus : narration, choices, stakes).
- M3 méthode guidée : POST /api/campaigns/{id}/guided-skeleton (arc existant
ou nouveau, chapitre, scènes typées, chaînage optionnel, transactionnel)
+ assistant pas à pas générique /campaigns/:id/guided/:method, première
méthode « Donjon en 5 salles ». Entrées sur le hub de campagne.
- Garde-fous vitest : complétude des textes fr/en du coach, de la relecture
(règles lues dans le Java) et des méthodes guidées.
Vérifié : core clean verify (1182 tests), web build + 299 tests vitest, lint
sans erreur, parcours testés dans l'appli (back Postgres de dev).
À redéployer : core (2 endpoints, aucune migration) + web.
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
import { Component, Input, inject } from '@angular/core';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
||||
import { LucideAngularModule, ArrowRight } from 'lucide-angular';
|
||||
|
||||
import { WritingRemark } from '../../services/writing-review.model';
|
||||
import { remarkAction } from '../../campaigns/writing-remark-action.helper';
|
||||
import { GapAction } from '../../campaigns/gap-action.helper';
|
||||
|
||||
/**
|
||||
* Une remarque de relecture, en posture « mentor » : ce que j'observe, pourquoi
|
||||
* ça compte, puis une question pour faire réfléchir (jamais de réécriture).
|
||||
* Le texte vient de l'i18n `writingReview.rules.<ruleId>` ; le back fournit les paramètres.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'app-writing-remark-card',
|
||||
imports: [RouterLink, TranslatePipe, LucideAngularModule],
|
||||
template: `
|
||||
<article class="remark">
|
||||
<p class="remark-observation">{{ key('observation') | translate: textParams }}</p>
|
||||
<p class="remark-why">{{ key('why') | translate: textParams }}</p>
|
||||
<p class="remark-question">{{ key('question') | translate: textParams }}</p>
|
||||
@if (showLink) {
|
||||
<a class="remark-link" [routerLink]="action.link" [queryParams]="action.queryParams ?? null">
|
||||
{{ 'writingReview.see' | translate }}
|
||||
<lucide-icon [img]="ArrowRight" [size]="13"></lucide-icon>
|
||||
</a>
|
||||
}
|
||||
</article>
|
||||
`,
|
||||
styles: [`
|
||||
.remark {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
padding: 0.8rem 0.95rem;
|
||||
border-radius: 8px;
|
||||
background: #111827;
|
||||
border: 1px solid #1f2937;
|
||||
border-left: 3px solid #fbbf24;
|
||||
}
|
||||
p { margin: 0; line-height: 1.5; }
|
||||
.remark-observation { font-size: 0.88rem; font-weight: 600; color: #f3f4f6; }
|
||||
.remark-why { font-size: 0.84rem; color: #9ca3af; }
|
||||
.remark-question { font-size: 0.86rem; font-style: italic; color: #fcd34d; }
|
||||
.remark-link {
|
||||
align-self: flex-start;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
margin-top: 0.2rem;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: #a5b4fc;
|
||||
text-decoration: none;
|
||||
}
|
||||
.remark-link:hover { color: #c7d2fe; text-decoration: underline; }
|
||||
.remark-link:focus-visible { outline: 2px solid #6c63ff; outline-offset: 2px; border-radius: 4px; }
|
||||
`]
|
||||
})
|
||||
export class WritingRemarkCardComponent {
|
||||
readonly ArrowRight = ArrowRight;
|
||||
private readonly translate = inject(TranslateService);
|
||||
|
||||
@Input({ required: true }) remark!: WritingRemark;
|
||||
@Input() campaignId = '';
|
||||
/** Lien vers l'éditeur concerné (inutile quand on est déjà dans cet éditeur). */
|
||||
@Input() showLink = true;
|
||||
|
||||
key(part: 'observation' | 'why' | 'question'): string {
|
||||
return `writingReview.rules.${this.remark.ruleId}.${part}`;
|
||||
}
|
||||
|
||||
get action(): GapAction {
|
||||
return remarkAction(this.remark, this.campaignId);
|
||||
}
|
||||
|
||||
/** Paramètres du texte : ceux du back + le nom de l'entité + le genre de scène traduit. */
|
||||
get textParams(): Record<string, string> {
|
||||
const params: Record<string, string> = { ...this.remark.params, entity: this.remark.entityName ?? '' };
|
||||
const kind = this.remark.params['kind'];
|
||||
if (kind) {
|
||||
params['kind'] = this.translate.instant(kind === 'COMBAT' ? 'writingReview.kindCombat' : `sceneType.${kind}`);
|
||||
}
|
||||
return params;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
|
||||
import { remarkAction } from '../../campaigns/writing-remark-action.helper';
|
||||
import { WritingRemark } from '../../services/writing-review.model';
|
||||
|
||||
/**
|
||||
* Garde-fou de la relecture d'éditeur : chaque règle émise par le Core
|
||||
* (WritingReviewService.java) doit avoir ses 3 textes en fr ET en en, sinon la
|
||||
* carte afficherait des clés brutes.
|
||||
*/
|
||||
const SERVICE = join(process.cwd(), '../core/src/main/java/com/loremind/application/campaigncontext/WritingReviewService.java');
|
||||
const FRAGMENTS_DIR = join(process.cwd(), 'src/assets/i18n/fragments');
|
||||
|
||||
function emittedRules(): string[] {
|
||||
const java = readFileSync(SERVICE, 'utf-8');
|
||||
return [...new Set([...java.matchAll(/"(WRITE-\d{3}-[A-Z-]+)"/g)].map(m => m[1]))].sort();
|
||||
}
|
||||
|
||||
function rulesOf(lang: 'fr' | 'en'): Record<string, Record<string, string>> {
|
||||
return JSON.parse(readFileSync(join(FRAGMENTS_DIR, `writing-review.${lang}.json`), 'utf-8')).writingReview.rules;
|
||||
}
|
||||
|
||||
describe('writing review content', () => {
|
||||
const rules = emittedRules();
|
||||
|
||||
it('finds the rules emitted by the core', () => {
|
||||
expect(rules).toHaveLength(10);
|
||||
});
|
||||
|
||||
for (const lang of ['fr', 'en'] as const) {
|
||||
it.each(rules)(`${lang}: rule %s has its three texts`, ruleId => {
|
||||
const texts = rulesOf(lang)[ruleId];
|
||||
expect(texts, `${ruleId} manquant (${lang})`).toBeDefined();
|
||||
for (const part of ['observation', 'why', 'question']) {
|
||||
expect(texts[part]?.trim().length ?? 0, `${ruleId}.${part} vide (${lang})`).toBeGreaterThan(0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
it('has no orphan rule text', () => {
|
||||
expect(Object.keys(rulesOf('fr')).sort()).toEqual(rules);
|
||||
expect(Object.keys(rulesOf('en')).sort()).toEqual(rules);
|
||||
});
|
||||
});
|
||||
|
||||
describe('remarkAction', () => {
|
||||
const base: WritingRemark = {
|
||||
entityType: 'SCENE', entityId: 's1', ruleId: 'WRITE-007-NARRATION-DECIDES',
|
||||
category: 'NARRATION', params: {}, arcId: 'a1', chapterId: 'c1'
|
||||
};
|
||||
|
||||
it('opens the scene editor on the faulty section', () => {
|
||||
expect(remarkAction(base, 'camp')).toEqual({
|
||||
link: ['/campaigns', 'camp', 'arcs', 'a1', 'chapters', 'c1', 'scenes', 's1', 'edit'],
|
||||
queryParams: { focus: 'narration' }
|
||||
});
|
||||
});
|
||||
|
||||
it('opens the chapter view for a corridor, the chapter editor for missing stakes', () => {
|
||||
const chapter = { ...base, entityType: 'CHAPTER' as const, entityId: 'c1' };
|
||||
expect(remarkAction({ ...chapter, ruleId: 'WRITE-001-CORRIDOR' }, 'camp').link)
|
||||
.toEqual(['/campaigns', 'camp', 'arcs', 'a1', 'chapters', 'c1']);
|
||||
expect(remarkAction({ ...chapter, ruleId: 'WRITE-005-NO-STAKES' }, 'camp')).toEqual({
|
||||
link: ['/campaigns', 'camp', 'arcs', 'a1', 'chapters', 'c1', 'edit'],
|
||||
queryParams: { focus: 'stakes' }
|
||||
});
|
||||
});
|
||||
|
||||
it('falls back to the campaign hub for campaign-wide remarks', () => {
|
||||
const r = { ...base, entityType: 'CAMPAIGN' as const, entityId: 'camp', ruleId: 'WRITE-010-UNTYPED-SCENES' };
|
||||
expect(remarkAction(r, 'camp').link).toEqual(['/campaigns', 'camp']);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,98 @@
|
||||
import { Component, Input, OnChanges, SimpleChanges, inject } from '@angular/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { LucideAngularModule, ChevronDown, ChevronRight, Lightbulb } from 'lucide-angular';
|
||||
|
||||
import { ReadinessEntityType } from '../../services/readiness.model';
|
||||
import { WritingRemark } from '../../services/writing-review.model';
|
||||
import { WritingReviewService } from '../../services/writing-review.service';
|
||||
import { WritingRemarkCardComponent } from './writing-remark-card.component';
|
||||
|
||||
/**
|
||||
* Encart « Conseils de relecture » d'un éditeur (scène / chapitre / arc) : les remarques
|
||||
* de la relecture d'éditeur qui concernent l'entité ouverte. Invisible s'il n'y en a pas.
|
||||
*
|
||||
* La relecture porte sur la version ENREGISTRÉE : après une sauvegarde, l'encart se met
|
||||
* à jour au prochain chargement de l'éditeur.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'app-writing-review-hints',
|
||||
imports: [TranslatePipe, LucideAngularModule, WritingRemarkCardComponent],
|
||||
template: `
|
||||
@if (remarks.length > 0) {
|
||||
<section class="hints">
|
||||
<button type="button" class="hints-header" (click)="open = !open" [attr.aria-expanded]="open">
|
||||
<lucide-icon [img]="open ? ChevronDown : ChevronRight" [size]="15"></lucide-icon>
|
||||
<lucide-icon [img]="Lightbulb" [size]="15" class="hints-icon"></lucide-icon>
|
||||
<span>{{ 'writingReview.hintsTitle' | translate: { n: remarks.length } }}</span>
|
||||
</button>
|
||||
@if (open) {
|
||||
<div class="hints-list">
|
||||
@for (remark of remarks; track remark.ruleId) {
|
||||
<app-writing-remark-card [remark]="remark" [campaignId]="campaignId" [showLink]="false">
|
||||
</app-writing-remark-card>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
`,
|
||||
styles: [`
|
||||
.hints {
|
||||
background: rgba(251, 191, 36, 0.04);
|
||||
border: 1px solid rgba(251, 191, 36, 0.25);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.hints-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
padding: 0.7rem 0.95rem;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
color: #fde68a;
|
||||
font-size: 0.88rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
.hints-header:hover { background: rgba(251, 191, 36, 0.06); }
|
||||
.hints-header:focus-visible { outline: 2px solid #6c63ff; outline-offset: -2px; }
|
||||
.hints-icon { color: #fbbf24; }
|
||||
.hints-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
padding: 0 0.95rem 0.95rem;
|
||||
}
|
||||
`]
|
||||
})
|
||||
export class WritingReviewHintsComponent implements OnChanges {
|
||||
readonly ChevronDown = ChevronDown;
|
||||
readonly ChevronRight = ChevronRight;
|
||||
readonly Lightbulb = Lightbulb;
|
||||
|
||||
private readonly reviewService = inject(WritingReviewService);
|
||||
|
||||
@Input({ required: true }) campaignId = '';
|
||||
@Input({ required: true }) entityType: ReadinessEntityType = 'SCENE';
|
||||
@Input({ required: true }) entityId = '';
|
||||
|
||||
remarks: WritingRemark[] = [];
|
||||
open = true;
|
||||
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
if (!this.campaignId || !this.entityId) return;
|
||||
if (changes['campaignId'] || changes['entityId'] || changes['entityType']) {
|
||||
this.remarks = [];
|
||||
const { entityType, entityId } = this;
|
||||
this.reviewService.getReview(this.campaignId).subscribe({
|
||||
next: report => {
|
||||
this.remarks = report.remarks.filter(r => r.entityType === entityType && r.entityId === entityId);
|
||||
},
|
||||
error: () => { this.remarks = []; }
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
@if (report) {
|
||||
<section class="review-panel">
|
||||
<button type="button" class="review-header" (click)="toggle()" [attr.aria-expanded]="!collapsed">
|
||||
<lucide-icon [img]="collapsed ? ChevronRight : ChevronDown" [size]="16"></lucide-icon>
|
||||
<lucide-icon [img]="Lightbulb" [size]="16" class="review-icon"></lucide-icon>
|
||||
<span class="review-title">{{ 'writingReview.title' | translate }}</span>
|
||||
@if (total > 0) {
|
||||
<span class="review-count">{{ 'writingReview.countN' | translate: { n: total } }}</span>
|
||||
}
|
||||
</button>
|
||||
|
||||
@if (!collapsed) {
|
||||
<div class="review-body">
|
||||
@if (total === 0) {
|
||||
<p class="review-empty">{{ 'writingReview.allGood' | translate }}</p>
|
||||
} @else {
|
||||
<p class="review-intro">{{ 'writingReview.intro' | translate }}</p>
|
||||
@for (group of groups; track group.category) {
|
||||
<div class="review-group">
|
||||
<h3>{{ ('writingReview.categories.' + group.category) | translate }}</h3>
|
||||
<div class="review-list">
|
||||
@for (remark of visible(group); track remark.ruleId + remark.entityId) {
|
||||
<app-writing-remark-card [remark]="remark" [campaignId]="campaignId"></app-writing-remark-card>
|
||||
}
|
||||
</div>
|
||||
@if (group.remarks.length > perGroup && !expanded.has(group.category)) {
|
||||
<button type="button" class="review-more" (click)="showAll(group.category)">
|
||||
{{ 'writingReview.showMore' | translate: { n: group.remarks.length - perGroup } }}
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
// Même gabarit que « Prochaines étapes » (readiness-panel), accent ambré du mentor.
|
||||
.review-panel {
|
||||
margin: 0 0 1.25rem;
|
||||
background: #0d1117;
|
||||
border: 1px solid #1f2937;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.review-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
width: 100%;
|
||||
padding: 0.7rem 0.9rem;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #e5e7eb;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
|
||||
&:hover { background: #111827; }
|
||||
&:focus-visible { outline: 2px solid #6c63ff; outline-offset: -2px; }
|
||||
|
||||
.review-icon { color: #fbbf24; }
|
||||
}
|
||||
|
||||
.review-title {
|
||||
font-weight: 600;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.review-count {
|
||||
margin-left: auto;
|
||||
padding: 0.1rem 0.5rem;
|
||||
border-radius: 999px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 500;
|
||||
background: #3a2e1a;
|
||||
color: #fcd34d;
|
||||
}
|
||||
|
||||
.review-body {
|
||||
padding: 0 0.9rem 0.9rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.review-intro,
|
||||
.review-empty {
|
||||
margin: 0;
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.5;
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
.review-empty { color: #86efac; }
|
||||
|
||||
.review-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
|
||||
h3 {
|
||||
margin: 0;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: #6b7280;
|
||||
}
|
||||
}
|
||||
|
||||
.review-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.review-more {
|
||||
align-self: flex-start;
|
||||
padding: 0.2rem 0;
|
||||
border: none;
|
||||
background: none;
|
||||
color: #a5b4fc;
|
||||
font-size: 0.8rem;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover { text-decoration: underline; }
|
||||
&:focus-visible { outline: 2px solid #6c63ff; border-radius: 4px; }
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
import { Component, Input, OnChanges, SimpleChanges, inject } from '@angular/core';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { LucideAngularModule, ChevronDown, ChevronRight, Lightbulb } from 'lucide-angular';
|
||||
|
||||
import { WritingReviewService } from '../../services/writing-review.service';
|
||||
import {
|
||||
WRITING_REMARK_CATEGORIES, WritingRemark, WritingRemarkCategory, WritingReviewReport
|
||||
} from '../../services/writing-review.model';
|
||||
import { WritingRemarkCardComponent } from './writing-remark-card.component';
|
||||
|
||||
interface RemarkGroup {
|
||||
category: WritingRemarkCategory;
|
||||
remarks: WritingRemark[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Panneau « Relecture d'éditeur » du hub campagne (Mentor d'écriture, phase M2) :
|
||||
* le pendant « qualité » de « Prochaines étapes ». Conseils regroupés par famille,
|
||||
* chacun avec son lien vers l'éditeur concerné. Purement indicatif.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'app-writing-review-panel',
|
||||
imports: [TranslatePipe, LucideAngularModule, WritingRemarkCardComponent],
|
||||
templateUrl: './writing-review-panel.component.html',
|
||||
styleUrls: ['./writing-review-panel.component.scss']
|
||||
})
|
||||
export class WritingReviewPanelComponent implements OnChanges {
|
||||
readonly ChevronDown = ChevronDown;
|
||||
readonly ChevronRight = ChevronRight;
|
||||
readonly Lightbulb = Lightbulb;
|
||||
|
||||
/** Remarques visibles par famille avant « voir les autres ». */
|
||||
readonly perGroup = 3;
|
||||
|
||||
private static readonly STORAGE_KEY = 'loremind.writingReview.collapsed';
|
||||
private readonly reviewService = inject(WritingReviewService);
|
||||
|
||||
@Input({ required: true }) campaignId = '';
|
||||
|
||||
report: WritingReviewReport | null = null;
|
||||
groups: RemarkGroup[] = [];
|
||||
expanded = new Set<WritingRemarkCategory>();
|
||||
collapsed = readCollapsed();
|
||||
|
||||
ngOnChanges(changes: SimpleChanges): void {
|
||||
if (changes['campaignId'] && this.campaignId) {
|
||||
this.reviewService.getReview(this.campaignId).subscribe({
|
||||
next: report => {
|
||||
this.report = report;
|
||||
this.groups = WRITING_REMARK_CATEGORIES
|
||||
.map(category => ({ category, remarks: report.remarks.filter(r => r.category === category) }))
|
||||
.filter(g => g.remarks.length > 0);
|
||||
},
|
||||
// Conseil facultatif : en cas d'erreur, le panneau ne s'affiche simplement pas.
|
||||
error: () => { this.report = null; }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
get total(): number {
|
||||
return this.report?.remarks.length ?? 0;
|
||||
}
|
||||
|
||||
toggle(): void {
|
||||
this.collapsed = !this.collapsed;
|
||||
try {
|
||||
localStorage.setItem(WritingReviewPanelComponent.STORAGE_KEY, this.collapsed ? '1' : '0');
|
||||
} catch { /* stockage indisponible : préférence non mémorisée */ }
|
||||
}
|
||||
|
||||
visible(group: RemarkGroup): WritingRemark[] {
|
||||
return this.expanded.has(group.category) ? group.remarks : group.remarks.slice(0, this.perGroup);
|
||||
}
|
||||
|
||||
showAll(category: WritingRemarkCategory): void {
|
||||
this.expanded.add(category);
|
||||
}
|
||||
}
|
||||
|
||||
function readCollapsed(): boolean {
|
||||
try {
|
||||
return localStorage.getItem('loremind.writingReview.collapsed') === '1';
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user