Explore names and personality presets for the team
The preview offers optional names, three restrained communication presets, a bounded Custom field and reset controls, while keeping roles visible. Team-shared identity and personal preferences are explicit choices, with no global scope assumed or permissions changed. It is isolated from product code and ready for preview publication; JavaScript syntax passed, but browser interactions have not been verified. Equipo task tk3j4tcivyrx, Engineering step attempt 1.
5 files changed,
+129
−0
explorations/team-personality/README.md+50 −0explorations/team-personality/app.js+66 −0explorations/team-personality/index.html+11 −0explorations/team-personality/style.css+1 −0release/preview.json+1 −0
CI failed — run details
diff --git a/explorations/team-personality/README.md b/explorations/team-personality/README.md| new file mode 100644 |
| index 00000000..d59ee47e |
| --- /dev/null |
| +++ b/explorations/team-personality/README.md |
| @@ -0,0 +1,50 @@ |
| +# Names and communication exploration |
| + |
| +Open index.html directly or serve this directory with a static server. No build, |
| +network requests, storage, product imports or backend are required. |
| + |
| +## Choices left to the person |
| + |
| +- Identity: shared team names versus viewer-only aliases. |
| +- Communication: personal preferences versus a shared team default. |
| +- Per-role delivery: current default, Concise, Friendly, Explanatory or Custom. |
| + |
| +The preview deliberately starts with no scope selected and unchanged role names. |
| +A blank name resets the label; the role always remains visible. Coordinator, |
| +Engineering, Review and Checks maintain independent temporary drafts. Custom |
| +means an optional typed display name for identity, and a bounded 240-character |
| +style field for delivery. Custom prose is not passed to any model and the sample |
| +is explicitly marked as a baseline rather than pretending to interpret it. |
| + |
| +## Integration boundary |
| + |
| +Visual alignment uses the existing blue-on-white theme, compact context header, |
| +role attribution, subtle borders and system font. No active project-thread branch |
| +was accessed or changed. The project header is only an illustrative integration |
| +point, not a claim about another branch's final design. There is one existing |
| +team coordinator, not a coordinator created per project. |
| + |
| +Existing data-defined specialist Name/Brief/ModelPreference records are context, |
| +not a storage design for this feature. No grant, role contract, model preference, |
| +approval, independence or safety change is proposed. Scope, edit authority, |
| +shared-thread behavior, custom-style validation and attribution history need |
| +resolution before production implementation. |
| + |
| +## Verification |
| + |
| +JavaScript syntax checked with `node --check`. Browser rendering and interaction |
| +have not been automated in this step. Suggested acceptance walkthrough: |
| + |
| +1. Initial labels are role names and both scopes are unselected. |
| +2. Select Engineering, type Alex, choose Friendly; see Alex · Engineering. |
| +3. Switch to Review and back; drafts remain independent. |
| +4. Select Custom and type style guidance; count stops at 240 and the baseline |
| + sample disclaimer appears. Typed markup is displayed as text, never HTML. |
| +5. Reset this role; only its draft resets. Reset entire preview clears all drafts |
| + and both scope selections. Reload also clears the entire preview. |
| +6. Compare all three samples; each preserves mobile uncertainty and approval. |
| +7. Try choosing a direction without scopes, then with both scopes selected. |
| +8. Check keyboard focus, narrow-screen stacking and long names in headers. |
| + |
| +Exploration only. This folder and its publication manifest are the entire change; |
| +no production migration or merge is intended. |
diff --git a/explorations/team-personality/app.js b/explorations/team-personality/app.js| new file mode 100644 |
| index 00000000..0e490916 |
| --- /dev/null |
| +++ b/explorations/team-personality/app.js |
| @@ -0,0 +1,66 @@ |
| +'use strict'; |
| +const roles = ['Coordinator', 'Engineering', 'Review', 'Checks']; |
| +const samples = { |
| + Default: 'The preview is ready. Mobile has not been checked. Review and your approval are still needed before shipping.', |
| + Concise: 'Preview ready. Mobile unchecked. Review and your approval still needed before shipping.', |
| + Friendly: 'The preview is ready for you to explore. Mobile still needs checking, and we still need review and your approval before shipping.', |
| + Explanatory: 'The preview is ready, but that does not mean it is ready to ship. Mobile has not been checked, so its layout is not yet verified. Review and your approval are still needed before shipping.' |
| +}; |
| +const descriptions = {Concise:'Short, direct status updates.', Friendly:'Warm, without hype or flattery.', Explanatory:'A little more context and reasoning.'}; |
| +const fresh = () => ({name:'', preset:'Default', custom:''}); |
| +let drafts = Object.fromEntries(roles.map(role => [role, fresh()])); |
| +let current = 'Coordinator'; |
| +const $ = id => document.getElementById(id); |
| +function identity(role) {const name = drafts[role].name.trim(); return name ? `${name} · ${role}` : role;} |
| +function render() { |
| + const draft = drafts[current]; |
| + $('roles').replaceChildren(...roles.map(role => { |
| + const button = document.createElement('button'); |
| + button.textContent = identity(role); |
| + button.setAttribute('aria-pressed', String(role === current)); |
| + button.onclick = () => {current = role; load();}; |
| + return button; |
| + })); |
| + $('speaker').textContent = identity(current); |
| + $('headerIdentity').textContent = identity('Coordinator'); |
| + $('styleBadge').textContent = draft.preset; |
| + $('response').textContent = samples[draft.preset] || samples.Default; |
| + $('customBox').hidden = draft.preset !== 'Custom'; |
| + $('customNote').hidden = draft.preset !== 'Custom'; |
| + $('count').textContent = `${draft.custom.length} / 240`; |
| +} |
| +function load() { |
| + $('editing').textContent = current; |
| + for (const field of ['name','preset','custom']) $(field).value = drafts[current][field]; |
| + render(); |
| +} |
| +for (const field of ['name','preset','custom']) $(field).addEventListener('input', () => {drafts[current][field] = $(field).value; render();}); |
| +$('resetRole').onclick = () => {drafts[current] = fresh(); load();}; |
| +function scopes() {return ['identity','scope'].map(name => document.querySelector(`input[name="${name}"]:checked`)?.value);} |
| +function scopeChanged() { |
| + const [identity, style] = scopes(); |
| + $('scopeSummary').textContent = `Names: ${identity || 'not chosen'} · Communication: ${style || 'not chosen'}. Preview only.`; |
| + $('decision').textContent = ''; |
| +} |
| +document.querySelectorAll('input[type=radio]').forEach(input => input.addEventListener('change', scopeChanged)); |
| +$('resetAll').onclick = () => { |
| + drafts = Object.fromEntries(roles.map(role => [role, fresh()])); current = 'Coordinator'; |
| + document.querySelectorAll('input[type=radio]').forEach(input => {input.checked = false;}); |
| + scopeChanged(); load(); |
| +}; |
| +for (const preset of Object.keys(descriptions)) { |
| + const article = document.createElement('article'); |
| + const title = document.createElement('h3'); title.textContent = preset; |
| + const description = document.createElement('small'); description.textContent = descriptions[preset]; |
| + const sample = document.createElement('p'); sample.textContent = samples[preset]; |
| + const button = document.createElement('button'); button.textContent = `Try ${preset}`; |
| + button.onclick = () => {drafts[current].preset = preset; load(); $('preset').focus();}; |
| + article.append(title, description, sample, button); $('comparisons').append(article); |
| +} |
| +$('choose').onclick = () => { |
| + const [identity, style] = scopes(); |
| + $('decision').textContent = identity && style |
| + ? `Direction noted in this preview: ${identity.toLowerCase()} with ${style.toLowerCase()}. Nothing saved or applied. Share this choice with the team to continue the design.` |
| + : 'Choose a scope for both display names and communication style first. No global scope has been assumed.'; |
| +}; |
| +load(); |
diff --git a/explorations/team-personality/index.html b/explorations/team-personality/index.html| new file mode 100644 |
| index 00000000..a573d050 |
| --- /dev/null |
| +++ b/explorations/team-personality/index.html |
| @@ -0,0 +1,11 @@ |
| +<!doctype html> |
| +<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Equipo · Names & communication</title><link rel="stylesheet" href="style.css"></head> |
| +<body><header><strong>equipo</strong><span>Team / Names & communication</span><span class="tag">Design exploration</span></header> |
| +<main><div class="intro"><div><p class="eyebrow">A familiar team. The same responsibilities.</p><h1>Names & communication</h1><p>Try optional names and quieter personality presets. Nothing here changes your team.<br>All edits are temporary and disappear on reload.</p></div><button id="resetAll">Reset entire preview</button></div> |
| +<section aria-labelledby="scopeTitle"><h2 id="scopeTitle">1. Choose a scope to explore</h2><p>No scope is selected for you. These are product directions, not settings being saved.</p><div class="scope-grid"><fieldset><legend>Display names</legend><label><input type="radio" name="identity" value="Team-shared names"> Team-shared identity</label><small>Everyone sees the same name and role. A future team-managed setting.</small><label><input type="radio" name="identity" value="Personal aliases"> Personal aliases</label><small>Only you see the nickname. Others keep their own labels.</small></fieldset><fieldset><legend>Communication style</legend><label><input type="radio" name="scope" value="Personal style"> Personal preference</label><small>For replies addressed to you. Shared-thread behavior still needs a decision.</small><label><input type="radio" name="scope" value="Team style default"> Team default</label><small>A consistent style for everyone. Personal overrides would be a separate decision.</small></fieldset></div><p id="scopeSummary" class="notice" aria-live="polite">Choose both scopes to compare a direction.</p></section> |
| +<div class="workspace"><section><h2>2. Meet your team</h2><p>Select a role to try a name and style. Each keeps its own draft.</p><nav id="roles" aria-label="Team roles"></nav><div class="editor"><h3 id="editing">Coordinator</h3><label for="name">Optional display name</label><input id="name" maxlength="40" placeholder="Use role name (default)" aria-describedby="nameHelp"><small id="nameHelp">Up to 40 characters. Leave blank to keep the current role name.</small><label for="preset">Communication preset</label><select id="preset"><option>Default</option><option>Concise</option><option>Friendly</option><option>Explanatory</option><option>Custom</option></select><div id="customBox" hidden><label for="custom">Custom communication style</label><textarea id="custom" maxlength="240" rows="3" placeholder="Use short paragraphs and define unfamiliar terms." aria-describedby="customHelp count"></textarea><small id="customHelp">Tone, structure and detail only. Not instructions about tools, permissions or truthfulness.</small><small id="count">0 / 240</small></div><button id="resetRole">Reset this role to default</button></div></section> |
| +<section class="preview"><div class="preview-title"><h2>3. See it in context</h2><span class="tag">Illustrative thread</span></div><div class="thread-header"><small>Project context · equipo</small><h3>Explore team personalisation</h3><p id="headerIdentity">Coordinator</p></div><p class="caption">Project context belongs in the header, not in a new coordinator identity. This is the existing team coordinator and its specialists.</p><div class="person"><strong>You</strong><p>Is the preview ready to ship?</p></div><article class="reply"><strong id="speaker">Coordinator</strong><span id="styleBadge" class="tag">Default</span><p id="response"></p><small id="customNote" hidden>Custom text is not executed. This static preview keeps the baseline response; generated custom samples would need a separate, reviewed implementation.</small></article><p class="caption">Authored samples, not live model output. A style changes delivery, not the facts.</p></section></div> |
| +<section><h2>Compare the same situation</h2><p>One status, three treatments: preview ready, mobile not checked, review and approval still needed.</p><div id="comparisons" class="comparison-grid"></div></section> |
| +<section class="boundary"><h2>Personality is not permission</h2><p>Names and styles never change capabilities, model routing, review independence, approval rules, honesty or safety. Review stays independent even if it sounds friendlier. Uncertainty and blocked work must remain explicit in every style.</p><details><summary>Design choices to resolve before implementation</summary><ul><li>Choose shared identity or personal aliases, and personal style or a team default. This preview recommends nothing silently.</li><li>For personal preferences, decide how replies to multiple people in shared threads work. Do not let one viewer rewrite the shared record.</li><li>Keep stable role IDs for attribution, audit and routing. Always show the role beside a chosen name, including compact thread headers.</li><li>Existing data-defined specialist Name and Brief fields are separate team-shared configuration. They are not general personalisation fields or grounds for changing grants.</li><li>Custom style is bounded guidance, subordinate to role contracts and safety. A production version needs validation, conflict handling and tests, not just this length limit.</li><li>Default means current behavior, not a new persona. No new project coordinators, migrations or model changes are proposed.</li></ul></details></section> |
| +<section class="decision"><h2>Your direction</h2><p>Choose scopes above, then mark a direction to discuss. This only updates this page.</p><button id="choose">Use these scopes as a discussion starting point</button><p id="decision" role="status"></p></section> |
| +</main><footer>Exploration only · No requests sent · No preferences saved · No production changes</footer><script src="app.js"></script></body></html> |
diff --git a/explorations/team-personality/style.css b/explorations/team-personality/style.css| new file mode 100644 |
| index 00000000..fa9ad5bf |
| --- /dev/null |
| +++ b/explorations/team-personality/style.css |
| @@ -0,0 +1 @@ |
| +:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202735;background:#f3f5f8;font-size:15px;line-height:1.55}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:1px solid #d9dee7;display:flex;align-items:center;gap:24px;padding:18px 5%}header strong{color:#2459c4;font-size:22px;letter-spacing:-1px}header .tag{margin-left:auto}main{max-width:1180px;margin:36px auto;padding:0 24px}h1{font-size:32px;letter-spacing:-1px;margin:0}h2{font-size:18px;margin:0 0 8px}h3{font-size:16px;margin:0 0 12px}p{margin:8px 0 18px;color:#535e70}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.eyebrow{font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:1px;color:#2459c4}section{background:white;border:1px solid #d9dee7;border-radius:8px;padding:24px;margin-bottom:20px}.scope-grid,.comparison-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}fieldset{border:1px solid #d9dee7;border-radius:6px;padding:16px}legend{font-weight:650;padding:0 6px}label{display:block;font-weight:550;margin:10px 0 6px}small,.caption{font-size:13px;color:#586477}fieldset small{display:block;margin:0 0 14px 25px}input[type=radio]{accent-color:#2459c4}.notice{background:#f0f5ff;border-radius:4px;padding:12px;margin:16px 0 0;font-size:14px}.workspace{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}.workspace section{min-width:0}nav{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #b8c2d1;border-radius:5px;background:white;color:#263b5b;padding:9px 13px}button:hover{background:#edf3ff}button[aria-pressed=true]{background:#eaf1ff;border-color:#2459c4;color:#1848a7}input:not([type=radio]),select,textarea{width:100%;padding:10px;border:1px solid #a9b5c6;border-radius:4px;background:white;color:#202735}textarea{resize:vertical}small{display:block;margin-top:6px}.editor button{margin-top:20px}.preview-title{display:flex;gap:12px;align-items:baseline;justify-content:space-between}.tag{font-size:11px;color:#536077;background:#edf0f5;border-radius:4px;padding:4px 7px;white-space:nowrap}.thread-header{border-top:1px solid #e1e5ed;border-bottom:1px solid #e1e5ed;margin-top:18px;padding:14px 0}.thread-header h3{margin:4px 0}.thread-header p{margin:4px 0;font-size:13px;font-weight:600;overflow-wrap:anywhere}.person{margin:24px 0 16px;padding:14px;background:#f5f6f9;border-radius:6px}.person p{margin:8px 0}.reply{border-left:3px solid #2459c4;padding:8px 16px;overflow-wrap:anywhere}.reply .tag{margin-left:10px}.reply p{color:#263348}.comparison-grid{grid-template-columns:repeat(3,1fr)}.comparison-grid article{padding:18px;border:1px solid #d9dee7;border-radius:6px;display:flex;flex-direction:column}.comparison-grid button{margin-top:auto;align-self:start}.boundary{background:#f8fafc}.boundary p{max-width:950px}summary{cursor:pointer;font-weight:600}li{margin:12px 0;color:#535e70}footer{text-align:center;font-size:12px;color:#586477;padding:16px 24px 36px}:focus-visible{outline:3px solid #2459c4;outline-offset:3px}#choose{background:#2459c4;color:white;border-color:#2459c4}#decision{margin-bottom:0}#speaker{overflow-wrap:anywhere}@media(max-width:760px){header{flex-wrap:wrap;gap:10px}header span{font-size:12px}main{padding:0 14px;margin-top:22px}.intro{display:block}.intro button{margin-bottom:8px}.workspace,.scope-grid,.comparison-grid{grid-template-columns:1fr}section{padding:18px}.preview-title{flex-wrap:wrap}h1{font-size:28px}} |
diff --git a/release/preview.json b/release/preview.json| new file mode 100644 |
| index 00000000..60bf11fd |
| --- /dev/null |
| +++ b/release/preview.json |
| @@ -0,0 +1 @@ |
| +{"output": "explorations/team-personality"} |