chore: scrub personal names, maintainer URLs and local paths (P2.2)
Sample data in tests, prompts and UI placeholders uses Alex Morgan instead of the maintainer's name; decision attributions say "owner". Personal details in two test fixtures are replaced. Local paths (D:/Projects/...) and paths into the maintainer's planning repository are reworded. Clone and install URLs in CONTRIBUTING.md and the getting started guide use placeholders until the public repository location is decided (Q9). The Benchmarks page no longer names the maintainer's hive-mind repository, and the upstream fixes log names the main Waggle repository instead of an internal git host.
This commit is contained in:
@@ -74,13 +74,13 @@ const card = (id: string, pendingCount: number, rankTs: number): { card: RecentW
|
||||
|
||||
describe('personalizeGreeting (P2 — B8 name in greeting)', () => {
|
||||
it('splices the name before the first sentence break', () => {
|
||||
expect(personalizeGreeting("Good morning. Here's your day", 'Marko'))
|
||||
.toBe("Good morning, Marko. Here's your day");
|
||||
expect(personalizeGreeting("Good morning. Here's your day", 'Alex'))
|
||||
.toBe("Good morning, Alex. Here's your day");
|
||||
});
|
||||
|
||||
it('handles the em-dash fresh-state greeting', () => {
|
||||
expect(personalizeGreeting('Welcome — anything you discuss here will be remembered.', 'Marko'))
|
||||
.toBe('Welcome, Marko — anything you discuss here will be remembered.');
|
||||
expect(personalizeGreeting('Welcome — anything you discuss here will be remembered.', 'Alex'))
|
||||
.toBe('Welcome, Alex — anything you discuss here will be remembered.');
|
||||
});
|
||||
|
||||
it('passes through without a name', () => {
|
||||
@@ -89,7 +89,7 @@ describe('personalizeGreeting (P2 — B8 name in greeting)', () => {
|
||||
});
|
||||
|
||||
it('passes through greetings with no sentence break', () => {
|
||||
expect(personalizeGreeting('Hello there', 'Marko')).toBe('Hello there');
|
||||
expect(personalizeGreeting('Hello there', 'Alex')).toBe('Hello there');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -180,14 +180,14 @@ describe('GET /api/home/briefing (P2 — J08 needsReviewCount + greeting)', () =
|
||||
it('greets by name when identity is seeded (B8)', async () => {
|
||||
boot([{ id: 'w1', name: 'Alpha', group: 'Personal', created: new Date().toISOString() }]);
|
||||
new IdentityLayer(server.waggleDb).create({
|
||||
name: 'Marko', role: 'Founder', department: 'Egzakta',
|
||||
name: 'Alex', role: 'Founder', department: 'Egzakta',
|
||||
personality: '', capabilities: '', system_prompt: '',
|
||||
});
|
||||
const res = await server.inject({ method: 'GET', url: '/api/home/briefing' });
|
||||
expect(res.statusCode).toBe(200);
|
||||
const briefing = res.json();
|
||||
expect(briefing.userName).toBe('Marko');
|
||||
expect(briefing.greeting).toContain(', Marko');
|
||||
expect(briefing.userName).toBe('Alex');
|
||||
expect(briefing.greeting).toContain(', Alex');
|
||||
});
|
||||
|
||||
it('greeting stays name-free when no identity exists', async () => {
|
||||
|
||||
@@ -31,7 +31,7 @@ describe('POST /api/identity — merge-on-update', () => {
|
||||
boot();
|
||||
const first = await server.inject({
|
||||
method: 'POST', url: '/api/identity',
|
||||
payload: { name: 'Marko', role: 'Founder', department: 'Egzakta' },
|
||||
payload: { name: 'Alex', role: 'Founder', department: 'Egzakta' },
|
||||
});
|
||||
expect(first.statusCode).toBe(200);
|
||||
|
||||
@@ -39,11 +39,11 @@ describe('POST /api/identity — merge-on-update', () => {
|
||||
// survive (the old `body.x ?? ''` semantics silently wiped them).
|
||||
const partial = await server.inject({
|
||||
method: 'POST', url: '/api/identity',
|
||||
payload: { name: 'Marko M.' },
|
||||
payload: { name: 'Alex M.' },
|
||||
});
|
||||
expect(partial.statusCode).toBe(200);
|
||||
const body = partial.json();
|
||||
expect(body.name).toBe('Marko M.');
|
||||
expect(body.name).toBe('Alex M.');
|
||||
expect(body.role).toBe('Founder');
|
||||
expect(body.department).toBe('Egzakta');
|
||||
});
|
||||
@@ -52,14 +52,14 @@ describe('POST /api/identity — merge-on-update', () => {
|
||||
boot();
|
||||
await server.inject({
|
||||
method: 'POST', url: '/api/identity',
|
||||
payload: { name: 'Marko', role: 'Founder' },
|
||||
payload: { name: 'Alex', role: 'Founder' },
|
||||
});
|
||||
const cleared = await server.inject({
|
||||
method: 'POST', url: '/api/identity',
|
||||
payload: { role: '' },
|
||||
});
|
||||
expect(cleared.json().role).toBe('');
|
||||
expect(cleared.json().name).toBe('Marko');
|
||||
expect(cleared.json().name).toBe('Alex');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user