chat: forget everything audits each note; taste drafts survive refresh
Task 8 review, fix round 1.
1. Forget everything audited only a count, so once the rows were gone
nothing said what was forgotten (spec 8.6 wants the note id and
source kind for each forget). ForgetAllTaste now reads the person's
design notes (id, source) in the write transaction, deletes exactly
those ids, bumps both revisions, and appends one taste.forget_all
audit row per note, "<id> <source>", never the text. An empty
notebook writes nothing. A delete count that differs from the rows
read is ErrConflict (defensive; the write transaction is serial).
2. A refresh from the event stream replaced Design's panel and lost a
taste note being typed and its scope (team-panel.js kept only the
Ask box). The Add a note form carries data-draft-key="taste", as
Task 5's direction card forms do. work-stream.js gains
window.equipoKeepDrafts(old): values of fields in keyed forms
(textarea, select, visible inputs), keyed by form key plus name, and
the focus and caret among them; the returned function restores them
into the fresh copy (a select only to an option it still has).
team-panel.js applies it to the drawer when the fresh panel is the
same specialist's (data-team); work-stream.js applies it to every
work region it swaps (Design's own page). Forms without a key are
untouched, and hidden inputs (revisions) are never carried.
TDD evidence
- TestForgetDeletesAndAudits now forgets two words notes and a choice
and wants one taste.forget_all row per note with its id and source.
Red: audits [{owner taste.forget_all 3}]. Green after the fix.
- New browser regression TestBrowserTasteDrafts (-tags browser): the
real stardust.js, work-stream.js and team-panel.js at 127.0.0.1.
Drawer: type a note, pick All projects, refresh via equipo:work; the
text, scope and focus come back; opening another Design's drawer
shows an empty box with This project. Page: type, pick, blur,
refresh; both come back, and another keyed form's same-named field
stays empty. Red with HEAD's scripts: the note held "", the scope
"project" and the focus was lost, in the drawer and on the page.
- TestTastePageCount also wants data-draft-key="taste" on the form.
- Mutations (each broke, test failed, restored):
- forget_all audits only the first note: caught
- forget_all audit without the source: caught
- forget_all reads no ids (deletes nothing): caught
- drawer: drafts not put back: caught
- drawer: another specialist gets the draft: caught
- page: drafts not put back: caught
- focus not restored: caught
- select not restored: caught
- template: no draft key: caught
- key by name only (no form key): caught once the page test got a
second keyed form with a same-named field (it was not caught
before; that check was added for it)
- Also passing: go test ./internal/equipo/ ./internal/equipo/chat/ -run
the taste tests and TestMigrationModels; -tags browser
TestBrowserDirection*, and thintest TestBrowserTeamPanel,
TestBrowserTaskRows, TestBrowserTrackPulse; go vet -tags browser;
gofmt. Run in a scratch copy of HEAD plus these files, because Task
7's uncommitted work in the worktree does not build yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 files changed,
+222
−14
internal/equipo/chat/taste.go+24 −6internal/equipo/chat/taste_test.go+20 −5internal/equipo/static/team-panel.js+7 −1internal/equipo/static/work-stream.js+33 −0internal/equipo/team_taste_browser_test.go+136 −0internal/equipo/team_taste_test.go+1 −1internal/equipo/templates/team.html+1 −1
diff --git a/internal/equipo/chat/taste.go b/internal/equipo/chat/taste.go| index 9c2390b7..849141b9 100644 |
| --- a/internal/equipo/chat/taste.go |
| +++ b/internal/equipo/chat/taste.go |
| @@ -2,7 +2,6 @@ package chat |
| import ( |
| "context" |
| - "strconv" |
| "strings" |
| "time" |
| "unicode/utf8" |
| @@ -271,7 +270,9 @@ func (s *Store) ForgetTaste(ctx context.Context, person, id string) error { |
| } |
| // ForgetAllTaste deletes every one of the person's design notes (Forget |
| -// everything), audited as taste.forget_all with the count. |
| +// everything). Each forgotten note gets its own taste.forget_all audit |
| +// row, "<id> <source>", read before the delete in the same transaction: |
| +// once the rows are gone nothing else says what was forgotten. |
| func (s *Store) ForgetAllTaste(ctx context.Context, person string) error { |
| return s.tx(ctx, func(t *txn) error { |
| if err := s.authority.CurrentPerson(ctx, t.db); err != nil { |
| @@ -280,15 +281,32 @@ func (s *Store) ForgetAllTaste(ctx context.Context, person string) error { |
| if err := t.tasteMember(person); err != nil { |
| return err |
| } |
| - del := t.db.Where("person = ? AND discipline = ?", person, TasteDesign).Delete(&tasteNoteRecord{}) |
| + var rows []tasteNoteRecord |
| + if err := t.db.Select("id", "source").Where("person = ? AND discipline = ?", person, TasteDesign).Order("created_at, rowid").Find(&rows).Error; err != nil { |
| + return err |
| + } |
| + if len(rows) == 0 { |
| + return nil |
| + } |
| + ids := make([]string, len(rows)) |
| + for i, n := range rows { |
| + ids[i] = n.ID |
| + } |
| + del := t.db.Where("person = ? AND discipline = ? AND id IN ?", person, TasteDesign, ids).Delete(&tasteNoteRecord{}) |
| if del.Error != nil { |
| return del.Error |
| } |
| - if del.RowsAffected > 0 { |
| - if err := t.bumpTaste(person, true); err != nil { |
| + if del.RowsAffected != int64(len(rows)) { |
| + return ErrConflict |
| + } |
| + if err := t.bumpTaste(person, true); err != nil { |
| + return err |
| + } |
| + for _, n := range rows { |
| + if err := t.audit(person, "taste.forget_all", n.ID+" "+n.Source); err != nil { |
| return err |
| } |
| } |
| - return t.audit(person, "taste.forget_all", strconv.FormatInt(del.RowsAffected, 10)) |
| + return nil |
| }) |
| } |
diff --git a/internal/equipo/chat/taste_test.go b/internal/equipo/chat/taste_test.go| index 5fbfae13..870e5210 100644 |
| --- a/internal/equipo/chat/taste_test.go |
| +++ b/internal/equipo/chat/taste_test.go |
| @@ -162,6 +162,10 @@ func TestForgetDeletesAndAudits(t *testing.T) { |
| } |
| r.must(r.s.AddTaste(r.ctx, hkOwner, "", "Round corners.")) |
| + r.must(r.tx(func(t *txn) error { |
| + return t.writeTaste(hkOwner, "p_site", wire.TasteSourceChoice, "Calm", "What feel are you after?", "tk_1", "c_1") |
| + })) |
| + before := r.tasteRows(hkOwner) |
| *audits = nil |
| r.must(r.s.ForgetAllTaste(r.ctx, hkOwner)) |
| if n := len(r.tasteRows(hkOwner)); n != 0 { |
| @@ -170,18 +174,29 @@ func TestForgetDeletesAndAudits(t *testing.T) { |
| if len(r.tasteRows(hkMember)) != 1 { |
| t.Fatal("Forget everything reached another person's notes") |
| } |
| - if rev, forget := r.book(hkOwner); rev != 5 || forget != 2 { |
| + if rev, forget := r.book(hkOwner); rev != 6 || forget != 2 { |
| t.Fatalf("revision %d, forget %d after Forget everything", rev, forget) |
| } |
| - if len(*audits) != 1 || (*audits)[0] != (tasteAudit{hkOwner, "taste.forget_all", "2"}) { |
| - t.Fatalf("audits %+v", *audits) |
| + // One audit row per forgotten note: its id and source kind. |
| + want := map[tasteAudit]bool{} |
| + for _, n := range before { |
| + want[tasteAudit{hkOwner, "taste.forget_all", n.ID + " " + n.Source}] = true |
| + } |
| + if len(before) != 3 || len(*audits) != len(before) { |
| + t.Fatalf("%d notes, audits %+v", len(before), *audits) |
| + } |
| + for _, a := range *audits { |
| + if !want[a] { |
| + t.Fatalf("audit %+v, want one of %v", a, want) |
| + } |
| + delete(want, a) |
| } |
| for _, a := range *audits { |
| - if strings.Contains(a.record, "corners") || strings.Contains(a.record, "white") { |
| + if strings.Contains(a.record, "corners") || strings.Contains(a.record, "white") || strings.Contains(a.record, "Calm") { |
| t.Fatalf("audit has the text: %+v", a) |
| } |
| } |
| - if notes, rev, err := r.s.Taste(r.ctx, hkOwner); err != nil || len(notes) != 0 || rev != 5 { |
| + if notes, rev, err := r.s.Taste(r.ctx, hkOwner); err != nil || len(notes) != 0 || rev != 6 { |
| t.Fatalf("after Forget everything: %+v at %d, %v", notes, rev, err) |
| } |
| if rev, _ := r.book(hkMember); rev != 1 { |
diff --git a/internal/equipo/static/team-panel.js b/internal/equipo/static/team-panel.js| index 0f910b47..8a14b1e6 100644 |
| --- a/internal/equipo/static/team-panel.js |
| +++ b/internal/equipo/static/team-panel.js |
| @@ -2,7 +2,8 @@ |
| // specialist's page (/team/{specialist}); with script it opens the same |
| // page as a drawer over the one the person is on. The drawer follows the |
| // event stream (nav-stream.js says so with equipo:work) while it is |
| -// open, keeping a question being typed, the focus and any open command. |
| +// open, keeping a question being typed, a taste note and its scope, the |
| +// focus and any open command. |
| // Its Ask box posts in the background. The still marks, in the sidebar |
| // and the drawer, come alive as the shared Stardust (stardust.js). |
| (function () { |
| @@ -100,6 +101,10 @@ |
| var opened = [].filter.call(old.querySelectorAll("[equipo-team-raw]"), function (x) { return x.open; }).map(function (x) { return x.textContent; }); |
| var top = old.scrollTop; |
| var oldKey = old.querySelector("[data-team-ask] [name=request_id]"); |
| + // The same specialist's fresh panel gets back what the person typed |
| + // or chose in its keyed forms (the taste note and its scope), and |
| + // the focus among them. |
| + var drafts = window.equipoKeepDrafts && old.dataset.team === next.dataset.team ? window.equipoKeepDrafts(old) : null; |
| // A live mark that is still wanted keeps moving rather than restarting. |
| var spark = old.querySelector("[equipo-team-state] [data-live]"), slot = next.querySelector("[equipo-team-state] [data-spec-star]"); |
| if (spark && slot) slot.replaceChildren(spark); |
| @@ -113,6 +118,7 @@ |
| if (focused) box.focus(); |
| } |
| next.querySelectorAll("[equipo-team-raw]").forEach(function (x) { if (opened.indexOf(x.textContent) >= 0) x.open = true; }); |
| + if (drafts) drafts(next); |
| } else { |
| d.append(next); |
| } |
diff --git a/internal/equipo/static/work-stream.js b/internal/equipo/static/work-stream.js| index 222baca1..432a1534 100644 |
| --- a/internal/equipo/static/work-stream.js |
| +++ b/internal/equipo/static/work-stream.js |
| @@ -17,6 +17,37 @@ |
| }); |
| }; |
| window.equipoPulse(document.body); |
| + // equipoKeepDrafts(old) reads what the person typed or chose in old's |
| + // forms that carry a stable data-draft-key (Design's Add a note), and |
| + // which of those fields has the focus; the function it returns puts |
| + // both back into the same fields of the fresh copy that replaces old. |
| + // A field is known by its form's key and its own name. team-panel.js |
| + // uses it for the drawer. |
| + window.equipoKeepDrafts = function (old) { |
| + function key(el) { |
| + var f = el.closest("form[data-draft-key]"); |
| + return f && el.name ? f.dataset.draftKey + " " + el.name : ""; |
| + } |
| + function fields(root) { |
| + return root.querySelectorAll("form[data-draft-key] textarea, form[data-draft-key] select, form[data-draft-key] input:not([type=hidden])"); |
| + } |
| + var values = Object.create(null), focus = null, active = document.activeElement; |
| + fields(old).forEach(function (el) { var k = key(el); if (k) values[k] = el.value; }); |
| + if (active && old.contains(active) && key(active)) focus = { key: key(active), start: active.selectionStart, end: active.selectionEnd }; |
| + return function (next) { |
| + fields(next).forEach(function (el) { |
| + var k = key(el); |
| + if (!k || !(k in values)) return; |
| + if (el.tagName === "SELECT" && !Array.prototype.some.call(el.options, function (o) { return o.value === values[k]; })) return; |
| + el.value = values[k]; |
| + }); |
| + if (!focus) return; |
| + var target = Array.prototype.find.call(fields(next), function (el) { return key(el) === focus.key; }); |
| + if (!target) return; |
| + target.focus({ preventScroll: true }); |
| + try { if (target.setSelectionRange && focus.start != null) target.setSelectionRange(focus.start, focus.end); } catch (e) { /* not a text field */ } |
| + }; |
| + }; |
| if (!document.querySelector("[data-work-live]") || !window.fetch) return; |
| var inflight = null, again = false, timer = 0; |
| function busy() { |
| @@ -36,7 +67,9 @@ |
| old.querySelectorAll("details[id]").forEach(function (d) { open[d.id] = d.open; }); |
| var had = old.querySelectorAll("[equipo-tl] > li").length; |
| var focus = document.activeElement && old.contains(document.activeElement) ? document.activeElement.getAttribute("href") : null; |
| + var drafts = window.equipoKeepDrafts(old); |
| old.replaceWith(next); |
| + drafts(next); |
| window.equipoPulse(next); |
| Object.keys(open).forEach(function (id) { var d = document.getElementById(id); if (d) d.open = open[id]; }); |
| var items = next.querySelectorAll("[equipo-tl] > li"); |
diff --git a/internal/equipo/team_taste_browser_test.go b/internal/equipo/team_taste_browser_test.go| new file mode 100644 |
| index 00000000..8da4e381 |
| --- /dev/null |
| +++ b/internal/equipo/team_taste_browser_test.go |
| @@ -0,0 +1,136 @@ |
| +//go:build browser |
| + |
| +package equipo |
| + |
| +import ( |
| + "bytes" |
| + "context" |
| + "fmt" |
| + "net/http" |
| + "net/http/httptest" |
| + "testing" |
| + "time" |
| + |
| + "amadan.net/rastrillo/rastrillo/harness" |
| + "github.com/chromedp/chromedp" |
| +) |
| + |
| +// TestBrowserTasteDrafts (Task 8 review, fix round 1): a refresh from |
| +// the event stream re-renders Design's panel, in the drawer |
| +// (team-panel.js) and on its own page (work-stream.js). A taste note |
| +// being typed, its chosen scope and the focus come back in the fresh |
| +// panel; another specialist's panel, and another keyed form with a field |
| +// of the same name, get none of them. |
| +func TestBrowserTasteDrafts(t *testing.T) { |
| + panel := func(key string) string { |
| + t.Helper() |
| + p := teamPanel{Key: key, Icon: "image", CopyKey: "chat.specialist.profile.design-v1", Name: "Design", Taste: &teamTaste{Headline: "Design knows 1 thing about your taste", Project: "Site", Notes: []teamTasteNote{{ID: "tn_1", Body: "Serif headings.", Source: "Your words", Date: "30 Nov 2026", Scope: "All projects"}}}} |
| + var b bytes.Buffer |
| + if err := pages["team"].ExecuteTemplate(&b, "team-panel", p); err != nil { |
| + t.Fatal(err) |
| + } |
| + return b.String() |
| + } |
| + head := fmt.Sprintf(`<!doctype html><html lang="en"><head><meta charset="utf-8"><link rel="stylesheet" href="%s"><link rel="stylesheet" href="%s"><link rel="stylesheet" href="%s">`+ |
| + `<script>window.errors = []; addEventListener("error", e => errors.push(String(e.message)));</script><script defer src="%s"></script><script defer src="%s"></script><script defer src="%s"></script></head><body>`, |
| + assets.Path("static/tokens.css"), assets.Path("static/theme.css"), assets.Path("static/equipo.css"), assets.Path("static/stardust.js"), assets.Path("static/work-stream.js"), assets.Path("static/team-panel.js")) |
| + mux := http.NewServeMux() |
| + mux.Handle("GET /static/", assets.Handler()) |
| + mux.HandleFunc("GET /host", func(w http.ResponseWriter, r *http.Request) { |
| + w.Header().Set("Content-Type", "text/html; charset=utf-8") |
| + fmt.Fprint(w, head+`<a data-team-open id="row-design" href="/team/sp_design">Design</a><a data-team-open id="row-other" href="/team/sp_other">Design two</a></body></html>`) |
| + }) |
| + mux.HandleFunc("GET /team/{key}", func(w http.ResponseWriter, r *http.Request) { |
| + w.Header().Set("Content-Type", "text/html; charset=utf-8") |
| + fmt.Fprint(w, head+`<div equipo-team-page data-work-live data-work-region id="team-page">`+panel(r.PathValue("key"))+`<form data-draft-key="other" id="other"><textarea name="body"></textarea></form></div></body></html>`) |
| + }) |
| + server := httptest.NewServer(mux) // 127.0.0.1 |
| + defer server.Close() |
| + |
| + opts := append(chromedp.DefaultExecAllocatorOptions[:], chromedp.ExecPath(harness.ChromePath(t)), chromedp.NoSandbox, chromedp.UserDataDir(t.TempDir())) |
| + alloc, stop := chromedp.NewExecAllocator(context.Background(), opts...) |
| + defer stop() |
| + ctx, cancel := chromedp.NewContext(alloc) |
| + defer cancel() |
| + ctx, timeout := context.WithTimeout(ctx, 60*time.Second) |
| + defer timeout() |
| + run := func(a chromedp.Action[chromedp.Void]) { |
| + t.Helper() |
| + if _, err := chromedp.Run(ctx, a); err != nil { |
| + t.Fatal(err) |
| + } |
| + } |
| + eval := func(js string) string { |
| + t.Helper() |
| + out, err := chromedp.Run(ctx, chromedp.Evaluate[string](js, chromedp.EvalAwaitPromise)) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + return out |
| + } |
| + // waitFor resolves "ok" once cond (an expression) holds, within 5 s. |
| + waitFor := func(cond string) string { |
| + t.Helper() |
| + return eval(`new Promise(r => { const t0 = Date.now(); (function wait() { if (` + cond + `) return r("ok"); if (Date.now() - t0 > 5000) return r("timed out: " + errors.join(";")); setTimeout(wait, 50); })(); })`) |
| + } |
| + // typeNote types into scope's taste box with "all" chosen as its scope. |
| + typeNote := func(scope, text string) { |
| + t.Helper() |
| + eval(`(document.querySelector('` + scope + ` [data-taste-add] select').value = "all", document.querySelector('` + scope + ` [data-taste-add] textarea').focus(), "")`) |
| + run(chromedp.KeyEvent(text)) |
| + } |
| + refresh := func(scope string) { |
| + t.Helper() |
| + eval(`(document.querySelector('` + scope + ` [equipo-team]').dataset.old = "1", document.dispatchEvent(new Event("equipo:work")), "")`) |
| + if got := waitFor(`document.querySelector('` + scope + ` [equipo-team]') && !document.querySelector('` + scope + ` [equipo-team]').dataset.old`); got != "ok" { |
| + t.Fatalf("%s was not refreshed: %s", scope, got) |
| + } |
| + } |
| + held := func(scope, wantText, wantScope string) { |
| + t.Helper() |
| + if got := eval(`document.querySelector('` + scope + ` [data-taste-add] textarea').value`); got != wantText { |
| + t.Errorf("%s: the taste note holds %q, want %q", scope, got, wantText) |
| + } |
| + if got := eval(`document.querySelector('` + scope + ` [data-taste-add] select').value`); got != wantScope { |
| + t.Errorf("%s: the scope is %q, want %q", scope, got, wantScope) |
| + } |
| + } |
| + |
| + // The drawer. |
| + run(chromedp.Navigate(server.URL + "/host")) |
| + eval(`new Promise(r => setTimeout(() => r(document.querySelector("#row-design").click()), 300)).then(() => "")`) |
| + if got := waitFor(`document.querySelector("dialog[open] [equipo-team][data-team=sp_design]")`); got != "ok" { |
| + t.Fatalf("the drawer did not open: %s", got) |
| + } |
| + typeNote("dialog", "warm paper") |
| + refresh("dialog") |
| + held("dialog", "warm paper", "all") |
| + if got := eval(`String(document.activeElement === document.querySelector("dialog [data-taste-add] textarea"))`); got != "true" { |
| + t.Error("the focus did not come back to the taste note") |
| + } |
| + // Another specialist's panel starts empty. |
| + eval(`(document.querySelector("#row-other").click(), "")`) |
| + if got := waitFor(`document.querySelector("dialog[open] [equipo-team][data-team=sp_other]")`); got != "ok" { |
| + t.Fatalf("the other drawer did not open: %s", got) |
| + } |
| + held("dialog", "", "project") |
| + |
| + // Design's own page: a swap waits while the box has the focus, so the |
| + // person has moved on when it comes. |
| + run(chromedp.Navigate(server.URL + "/team/sp_design")) |
| + if got := waitFor(`document.readyState === "complete" && window.equipoPulse`); got != "ok" { |
| + t.Fatal(got) |
| + } |
| + typeNote("#team-page", "no gradients") |
| + eval(`(document.activeElement.blur(), "")`) |
| + refresh("#team-page") |
| + held("#team-page", "no gradients", "all") |
| + // A field is known by its form's key as well as its name: another |
| + // keyed form's body field stays as it was. |
| + if got := eval(`document.querySelector("#other textarea").value`); got != "" { |
| + t.Errorf("another form's body holds %q", got) |
| + } |
| + if got := eval(`errors.join(";")`); got != "" { |
| + t.Errorf("script errors: %s", got) |
| + } |
| +} |
diff --git a/internal/equipo/team_taste_test.go b/internal/equipo/team_taste_test.go| index 8cfa2aa8..95e67dac 100644 |
| --- a/internal/equipo/team_taste_test.go |
| +++ b/internal/equipo/team_taste_test.go |
| @@ -125,7 +125,7 @@ func TestTastePageCount(t *testing.T) { |
| x := newTasteSite(t) |
| owner := x.cookie(tasteOwner) |
| page := x.get(owner, "/team/"+tasteSP, 200) |
| - mustContain(t, page, html.EscapeString(copyText("team.taste.empty")), `action="/team/`+tasteSP+`/taste"`, `name="body" required maxlength="300"`, `<option value="project">`+strings.ReplaceAll(copyText("team.taste.scope_this"), "%s", "Site")+`</option>`, `<option value="all">`+copyText("team.taste.scope_all")+`</option>`) |
| + mustContain(t, page, html.EscapeString(copyText("team.taste.empty")), `action="/team/`+tasteSP+`/taste" data-taste-add data-draft-key="taste"`, `name="body" required maxlength="300"`, `<option value="project">`+strings.ReplaceAll(copyText("team.taste.scope_this"), "%s", "Site")+`</option>`, `<option value="all">`+copyText("team.taste.scope_all")+`</option>`) |
| if strings.Contains(page, `/taste/forget"`) { |
| t.Fatal("Forget everything with no notes") |
| } |
diff --git a/internal/equipo/templates/team.html b/internal/equipo/templates/team.html| index 3c39f31a..141140ab 100644 |
| --- a/internal/equipo/templates/team.html |
| +++ b/internal/equipo/templates/team.html |
| @@ -15,7 +15,7 @@ |
| <h2>{{.Headline}}</h2> |
| {{with .Notes}}<ul equipo-taste-notes>{{range .}}<li data-taste-note="{{.ID}}"><div>{{with .Question}}<p equipo-team-quiet>{{.}}</p>{{end}}<p equipo-taste-body>{{.Body}}</p><small><span>{{.Source}}</span><span>{{.Date}}</span><span>{{.Scope}}</span></small></div><form method="post" action="/team/{{$.Key}}/taste/{{.ID}}/forget"><button rst-btn data-quiet type="submit" data-taste-forget>{{copy "team.taste.forget"}}</button></form></li>{{end}}</ul> |
| <details equipo-mach-confirm data-taste-forget-all><summary rst-btn data-quiet>{{copy "team.taste.forget_all"}}</summary><div><p>{{copy "team.taste.forget_all_confirm"}}</p><form method="post" action="/team/{{$.Key}}/taste/forget"><button rst-btn type="submit" data-danger>{{copy "team.taste.forget_all_yes"}}</button></form></div></details>{{end}} |
| -<form equipo-team-ask-form method="post" action="/team/{{$.Key}}/taste" data-taste-add> |
| +<form equipo-team-ask-form method="post" action="/team/{{$.Key}}/taste" data-taste-add data-draft-key="taste"> |
| <label equipo-taste-label for="taste-body">{{copy "team.taste.add"}}</label> |
| <textarea rst-input id="taste-body" name="body" required maxlength="300" rows="2" placeholder="{{copy "team.taste.add_placeholder"}}"></textarea> |
| <div equipo-team-ask-foot><label equipo-taste-scope>{{copy "team.taste.scope_label"}} <select rst-input name="scope">{{if .Project}}<option value="project">{{printf (copy "team.taste.scope_this") .Project}}</option>{{end}}<option value="all">{{copy "team.taste.scope_all"}}</option></select></label><button rst-btn="primary" type="submit">{{copy "team.taste.add_send"}}</button></div> |