23step

◇ 23step SchemaWatch Report · gemini-agent-a3e72cd6-17fa-4030-9d0c-9ac2d2522b8c · revision r9

◇ 100 / 100 Backward Compatible 23Step/23Step.com@main gemini gemini-4-neon-xhigh 17 run(s) · 517 steps public hidden

Fix Sessions View On Mobile

All detected API, schema, database, and configuration changes are additive and backward-compatible.

Compatibility Score 100/100 Backward Compatible
Breaking Changes 0 0 additive · 0 total surface(s)
DB Migrations & RLS 0 0 destructive · 0 RLS table(s)
Env & CLI Drift 0 0 passing verification cmd(s)

1. Compatibility Score & Pillar Breakdown

100/100 · Backward Compatible

SchemaWatch scored session gemini-agent-a3e72cd6-17fa-4030-9d0c-9ac2d2522b8c at 100/100 (Backward Compatible): audited 0 contract surface(s) across 6 file(s) (0 breaking, 0 database migration(s), 0 config/CLI drift item(s), and 0 passing verification command(s)).

API & Wire Compatibility 25 / 25
0 route(s), 0 schema/JSON symbol(s) checked (0 breaking)
Migration & Rollback Safety 25 / 25
0 migration(s), 0 destructive, 0 rollback-ready
Config, Env & CLI Parity 25 / 25
0 env/CLI surface(s), 0 drift warning(s)
Client, SDK & Test Proof 25 / 25
0 passing verification run(s), 1 test file(s) updated

2. Breaking Changes & Contract Risk Alerts

1 alert
VERIFIED Verification 23Step/23Step.com

No breaking API, wire schema, or destructive migration changes detected

Audited 6 edited file(s), 0 contract surface(s), and 0 command(s) in session `gemini-agent-a3e72cd6-17fa-4030-9d0c-9ac2d2522b8c`.

Consumer / Replica Impact: Existing API clients, database replicas, and deployment configurations remain backward-compatible.

Safe Rollout: Safe for standard rolling deployment.

3. API, Schema & Wire Contract Inventory

0 surfaces

No HTTP route, JSON struct tag, Protobuf, GraphQL, OpenAPI, SQL DDL, or CLI flag surfaces were modified in this session.

4. Database Migration & Rollback Safety

0 migrations

Zero SQL migrations or database schema alterations recorded in this session.

5. Contract Dependency & Blast-Radius Diagram

Surface → Gate → Consumers

Maps contract surfaces modified in 23Step/23Step.com to downstream API callers, rolling database replicas, and deployment manifests.

CHANGED CONTRACT SURFACESCOMPATIBILITY GATECONSUMERS & ROLLOUT TARGETSInternal Code Edits6 file(s) · 0 wire changesSchemaWatch · PASS0 breaking · 0 advisoryAPI & SDK ConsumersWeb, CLI & external callersDeploy Env & DocsEnv & docs alignedContract & Schema Tests0 passing verification cmd(s)
View Mermaid source
flowchart LR
  S_CODE["Internal Code Edits (6 file(s) · 0 wire changes)"] --> GATE["SchemaWatch · PASS (0 breaking · 0 advisory)"]
  GATE --> C_CLIENTS["API & SDK Consumers (Web, CLI & external callers)"]
  GATE --> C_DEPLOY["Deploy Env & Docs (Env & docs aligned)"]
  GATE --> C_TESTS["Contract & Schema Tests (0 passing verification cmd(s))"]

6. Config, Environment Variable & CLI Flag Drift

0 config surfaces

No environment variables or CLI flags were added or removed in this session.

7. Triaged Contract Diffs & Verification Commands

6 files · 0 cmds
Verification Test internal/api/sessions_mobile_test.go Added sessions_mobile_test.go (+1045/-236 lines)
Replay →
--- a/internal/api/sessions_mobile_test.go
+++ b/internal/api/sessions_mobile_test.go
-		cdp.call("Page.navigate", map[string]any{"url": ts.URL + pagePath})
-		time.Sleep(350 * time.Millisecond)
-		cdp.waitJS(`document.readyState === "complete" && !!document.querySelector("main") && window.innerWidth === ` + strconv.Itoa(width))
-		if afterJS != "" {
-			cdp.eval(afterJS)
-			time.Sleep(150 * time.Millisecond)
-		}
-		time.Sleep(200 * time.Millisecond)
-
-		raw := cdp.eval(`(function(){
-			var vw = window.innerWidth;
-			var docSW = document.documentElement.scrollWidth;
-			var bodySW = document.body.scrollWidth;
-			var topbar = document.querySelector("header.topbar");
-			var cards = Array.from(document.querySelectorAll(".card")).map(function(el){
-				return Math.round(el.getBoundingClientRect().width * 10) / 10;
-			});
-			var minis = Array.from(document.querySelectorAll(".session-runs-mini")).map(function(el){
-... (218 more removed lines)
+package api
+
+import (
+	"context"
+	"encoding/json"
+	"fmt"
+	"net/http"
+	"net/http/httptest"
+	"strconv"
+	"testing"
+	"time"
+
+	"github.com/KonradJanica/23step.com/web-app/internal/contract"
+	"github.com/KonradJanica/23step.com/web-app/internal/tenant"
+)
+
+func TestSessionsMobileLayout(t *testing.T) {
+	requireChrome(t)
+	dir := t.TempDir()
+	srv, err := New(Config{
+		Token:        testToken,
+		MediaKey:     testMediaKey,
+		Storage:      "local",
+		LocalDir:     dir,
+		OwnerEmail:   testOwner,
+		Team:         testMember,
+... (1019 more added lines)
Contract / Handler internal/api/assets/app.css Modified app.css (+1025/-888 lines)
Replay →
--- a/internal/api/assets/app.css
+++ b/internal/api/assets/app.css
-.catch-action-slot, .catch-viewer-ctrl {
-  display: inline-flex;
-  align-items: center;
-  gap: 6px;
-  flex-wrap: wrap;
-}
-@media (max-width: 420px) {
-  .topbar .site-nav a {
-    font-size: 0.76rem;
-    padding: 0 6.5px;
-  }
-  .viewer-topbar .ctrl-pill {
-    gap: 4px;
-  }
-  .viewer-topbar .ctrl-label {
-    font-size: 0.56rem;
-    letter-spacing: 0.02em;
-  }
-... (870 more removed lines)
+.catch-action-slot, .catch-viewer-ctrl {
+  display: inline-flex;
+  align-items: center;
+  gap: 6px;
+  flex-wrap: wrap;
+}
+.catch-action-slot:not(:has(> :not([hidden]))) {
+  display: none;
+}
+@media (max-width: 480px) {
+  .steps-facets-row .facet-pill {
+    height: auto;
+    min-height: 42px;
+    padding: 4px 8px;
+    flex-direction: column;
+    align-items: stretch;
+    justify-content: center;
+    gap: 1px;
+  }
+  .steps-facets-row .facet-kicker {
+    font-size: 0.58rem;
+    letter-spacing: 0.05em;
+    line-height: 1.15;
+  }
+  .steps-facets-row .facet-pill select,
+  .steps-facets-row .facet-pill input.input-author {
+... (999 more added lines)
Contract / Handler internal/api/assets/runs.js Modified runs.js (+24/-18 lines)
Replay →
--- a/internal/api/assets/runs.js
+++ b/internal/api/assets/runs.js
-      var top = Math.round(rect.bottom + 8);
-      if (top + popH > vh - 12 && rect.top > popH + 16) {
-        top = Math.max(12, Math.round(rect.top - popH - 8));
-      }
-      popEl.style.left = left + "px";
-      popEl.style.top = top + "px";
-      var top = Math.round(rect.bottom + 8);
-      if (top + popH > vh - 12 && rect.top > popH + 16) {
-        top = Math.max(12, Math.round(rect.top - popH - 8));
-      }
-      popEl.style.left = left + "px";
-      popEl.style.top = top + "px";
-      var top = Math.round(rect.bottom + 8);
-      if (top + popH > vh - 12 && rect.top > popH + 16) {
-        top = Math.max(12, Math.round(rect.top - popH - 8));
-      }
-      popEl.style.left = left + "px";
-      popEl.style.top = top + "px";
+      var top = Math.round(rect.bottom + 8);
+      if (top + popH > vh - 12 && rect.top > popH + 16) {
+        top = Math.max(12, Math.round(rect.top - popH - 8));
+      } else if (top + popH > vh - 12) {
+        top = Math.max(12, vh - popH - 12);
+      }
+      popEl.style.left = left + "px";
+      popEl.style.top = top + "px";
+      var top = Math.round(rect.bottom + 8);
+      if (top + popH > vh - 12 && rect.top > popH + 16) {
+        top = Math.max(12, Math.round(rect.top - popH - 8));
+      } else if (top + popH > vh - 12) {
+        top = Math.max(12, vh - popH - 12);
+      }
+      popEl.style.left = left + "px";
+      popEl.style.top = top + "px";
+      var top = Math.round(rect.bottom + 8);
+      if (top + popH > vh - 12 && rect.top > popH + 16) {
+        top = Math.max(12, Math.round(rect.top - popH - 8));
+      } else if (top + popH > vh - 12) {
+        top = Math.max(12, vh - popH - 12);
+      }
+      popEl.style.left = left + "px";
+      popEl.style.top = top + "px";
Contract / Handler internal/api/sessions_page.go Modified sessions_page.go (+14/-16 lines)
Replay →
--- a/internal/api/sessions_page.go
+++ b/internal/api/sessions_page.go
-<div class="session-run-right">
-<span class="chip chip-vis chip-compact chip-vis-{{.Visibility}}" data-mini-run-vis>{{.Visibility}}</span>
-<span class="chip chip-disc chip-compact" data-mini-run-disc{{if eq .Discoverability "hidden"}} hidden{{end}}>{{.Discoverability}}</span>
-<span class="muted" style="font-size:0.75rem">{{momentCountLabel .StepCount}}</span>
-{{if .DurationLabel}}<span class="mono-stat" style="font-size:0.75rem">{{.DurationLabel}}</span>{{end}}
-<button type="button" class="ghost btn btn-2xs copy-url-btn js-copy-url" data-copy-url="{{.Href}}" data-copy-label="Copy URL" title="Copy run URL">Copy URL</button>
-<button type="button" class="ghost btn btn-2xs share-url-btn js-share-item" data-share-kind="run" data-share-url="{{.Href}}" data-share-title="{{.Label}}"{{if .ShareID}} data-share-id="{{.ShareID}}"{{end}} data-visibility="{{.Visibility}}" data-discoverability="{{.Discoverability}}" data-can-manage="false" aria-haspopup="dialog" title="Share run">Share</button>
-</div>
-<div class="session-run-right">
-<span class="chip chip-vis chip-compact chip-vis-{{.Visibility}}" data-mini-run-vis>{{.Visibility}}</span>
-<span class="chip chip-disc chip-compact" data-mini-run-disc{{if eq .Discoverability "hidden"}} hidden{{end}}>{{.Discoverability}}</span>
-<span class="muted" style="font-size:0.75rem">{{momentCountLabel .StepCount}}</span>
-{{if .DurationLabel}}<span class="mono-stat" style="font-size:0.75rem">{{.DurationLabel}}</span>{{end}}
-<button type="button" class="ghost btn btn-2xs copy-url-btn js-copy-url" data-copy-url="{{.Href}}" data-copy-label="Copy URL" title="Copy run URL">Copy URL</button>
-<button type="button" class="ghost btn btn-2xs share-url-btn js-share-item" data-share-kind="run" data-share-url="{{.Href}}" data-share-title="{{.Label}}"{{if .ShareID}} data-share-id="{{.ShareID}}"{{end}} data-visibility="{{.Visibility}}" data-discoverability="{{.Discoverability}}" data-can-manage="false" aria-haspopup="dialog" title="Share run">Share</button>
-</div>
+<div class="session-run-right">
+<span class="chip chip-vis chip-compact chip-vis-{{.Visibility}}" data-mini-run-vis>{{.Visibility}}</span>
+<span class="chip chip-disc chip-compact" data-mini-run-disc{{if eq .Discoverability "hidden"}} hidden{{end}}>{{.Discoverability}}</span>
+<span class="muted" style="font-size:0.75rem">{{momentCountLabel .StepCount}}</span>
+{{if .DurationLabel}}<span class="mono-stat" style="font-size:0.75rem">{{.DurationLabel}}</span>{{end}}
+<span class="inline-share-group"><button type="button" class="ghost btn btn-2xs copy-url-btn js-copy-url" data-copy-url="{{.Href}}" data-copy-label="Copy URL" title="Copy run URL">Copy URL</button><button type="button" class="ghost btn btn-2xs share-url-btn js-share-item" data-share-kind="run" data-share-url="{{.Href}}" data-share-title="{{.Label}}"{{if .ShareID}} data-share-id="{{.ShareID}}"{{end}} data-visibility="{{.Visibility}}" data-discoverability="{{.Discoverability}}" data-can-manage="false" aria-haspopup="dialog" title="Share run">Share</button></span>
+</div>
+<div class="session-run-right">
+<span class="chip chip-vis chip-compact chip-vis-{{.Visibility}}" data-mini-run-vis>{{.Visibility}}</span>
+<span class="chip chip-disc chip-compact" data-mini-run-disc{{if eq .Discoverability "hidden"}} hidden{{end}}>{{.Discoverability}}</span>
+<span class="muted" style="font-size:0.75rem">{{momentCountLabel .StepCount}}</span>
+{{if .DurationLabel}}<span class="mono-stat" style="font-size:0.75rem">{{.DurationLabel}}</span>{{end}}
+<span class="inline-share-group"><button type="button" class="ghost btn btn-2xs copy-url-btn js-copy-url" data-copy-url="{{.Href}}" data-copy-label="Copy URL" title="Copy run URL">Copy URL</button><button type="button" class="ghost btn btn-2xs share-url-btn js-share-item" data-share-kind="run" data-share-url="{{.Href}}" data-share-title="{{.Label}}"{{if .ShareID}} data-share-id="{{.ShareID}}"{{end}} data-visibility="{{.Visibility}}" data-discoverability="{{.Discoverability}}" data-can-manage="false" aria-haspopup="dialog" title="Share run">Share</button></span>
+</div>
Contract / Handler web-app/internal/api/assets/app.css Modified app.css (+741/-551 lines)
Replay →
--- a/web-app/internal/api/assets/app.css
+++ b/web-app/internal/api/assets/app.css
-@media (max-width: 640px) {
-  .viewer-topbar #copy,
-  .viewer-topbar #share-btn.share-trigger-btn {
-    padding: 0 8px;
-    font-size: 0.74rem;
-  }
-  #transport-share-actions button {
-    padding: 0 7px;
-    font-size: 0.7rem;
-  }
-}
-.share-pop {
-  position: fixed;
-  z-index: 98;
-  width: min(380px, calc(100vw - 24px));
-  padding: 13px 14px;
-  border-radius: 12px;
-  background: var(--paper-2, #0f1623);
-... (533 more removed lines)
+@media (max-width: 640px) {
+  .viewer-topbar #copy,
+  .viewer-topbar #share-btn.share-trigger-btn {
+    padding: 0 8px;
+    font-size: 0.74rem;
+  }
+  #transport-share-actions button {
+    padding: 0 7px;
+    font-size: 0.7rem;
+  }
+  .session-access-controls,
+  .session-access-controls.catch-access-controls,
+  .share-pop-access-row {
+    display: grid;
+    grid-template-columns: repeat(2, minmax(0, 1fr));
+    width: 100%;
+    gap: 6px;
+  }
+  .session-access-controls .ctrl-pill.ctrl-pill-sm,
+  .share-pop-access-row .ctrl-pill.ctrl-pill-sm {
+    width: 100%;
+    min-width: 0;
+    height: auto;
+    min-height: 36px;
+    padding: 4px 8px;
+    flex-direction: column;
+... (715 more added lines)
Contract / Handler web-app/internal/api/sessions_page.go Modified sessions_page.go (+14/-16 lines)
Replay →
--- a/web-app/internal/api/sessions_page.go
+++ b/web-app/internal/api/sessions_page.go
-<div class="session-run-right">
-<span class="chip chip-vis chip-compact chip-vis-{{.Visibility}}" data-mini-run-vis>{{.Visibility}}</span>
-<span class="chip chip-disc chip-compact" data-mini-run-disc{{if eq .Discoverability "hidden"}} hidden{{end}}>{{.Discoverability}}</span>
-<span class="muted" style="font-size:0.75rem">{{momentCountLabel .StepCount}}</span>
-{{if .DurationLabel}}<span class="mono-stat" style="font-size:0.75rem">{{.DurationLabel}}</span>{{end}}
-<button type="button" class="ghost btn btn-2xs copy-url-btn js-copy-url" data-copy-url="{{.Href}}" data-copy-label="Copy URL" title="Copy run URL">Copy URL</button>
-<button type="button" class="ghost btn btn-2xs share-url-btn js-share-item" data-share-kind="run" data-share-url="{{.Href}}" data-share-title="{{.Label}}"{{if .ShareID}} data-share-id="{{.ShareID}}"{{end}} data-visibility="{{.Visibility}}" data-discoverability="{{.Discoverability}}" data-can-manage="false" aria-haspopup="dialog" title="Share run">Share</button>
-</div>
-<div class="session-run-right">
-<span class="chip chip-vis chip-compact chip-vis-{{.Visibility}}" data-mini-run-vis>{{.Visibility}}</span>
-<span class="chip chip-disc chip-compact" data-mini-run-disc{{if eq .Discoverability "hidden"}} hidden{{end}}>{{.Discoverability}}</span>
-<span class="muted" style="font-size:0.75rem">{{momentCountLabel .StepCount}}</span>
-{{if .DurationLabel}}<span class="mono-stat" style="font-size:0.75rem">{{.DurationLabel}}</span>{{end}}
-<button type="button" class="ghost btn btn-2xs copy-url-btn js-copy-url" data-copy-url="{{.Href}}" data-copy-label="Copy URL" title="Copy run URL">Copy URL</button>
-<button type="button" class="ghost btn btn-2xs share-url-btn js-share-item" data-share-kind="run" data-share-url="{{.Href}}" data-share-title="{{.Label}}"{{if .ShareID}} data-share-id="{{.ShareID}}"{{end}} data-visibility="{{.Visibility}}" data-discoverability="{{.Discoverability}}" data-can-manage="false" aria-haspopup="dialog" title="Share run">Share</button>
-</div>
+<div class="session-run-right">
+<span class="chip chip-vis chip-compact chip-vis-{{.Visibility}}" data-mini-run-vis>{{.Visibility}}</span>
+<span class="chip chip-disc chip-compact" data-mini-run-disc{{if eq .Discoverability "hidden"}} hidden{{end}}>{{.Discoverability}}</span>
+<span class="muted" style="font-size:0.75rem">{{momentCountLabel .StepCount}}</span>
+{{if .DurationLabel}}<span class="mono-stat" style="font-size:0.75rem">{{.DurationLabel}}</span>{{end}}
+<span class="inline-share-group"><button type="button" class="ghost btn btn-2xs copy-url-btn js-copy-url" data-copy-url="{{.Href}}" data-copy-label="Copy URL" title="Copy run URL">Copy URL</button><button type="button" class="ghost btn btn-2xs share-url-btn js-share-item" data-share-kind="run" data-share-url="{{.Href}}" data-share-title="{{.Label}}"{{if .ShareID}} data-share-id="{{.ShareID}}"{{end}} data-visibility="{{.Visibility}}" data-discoverability="{{.Discoverability}}" data-can-manage="false" aria-haspopup="dialog" title="Share run">Share</button></span>
+</div>
+<div class="session-run-right">
+<span class="chip chip-vis chip-compact chip-vis-{{.Visibility}}" data-mini-run-vis>{{.Visibility}}</span>
+<span class="chip chip-disc chip-compact" data-mini-run-disc{{if eq .Discoverability "hidden"}} hidden{{end}}>{{.Discoverability}}</span>
+<span class="muted" style="font-size:0.75rem">{{momentCountLabel .StepCount}}</span>
+{{if .DurationLabel}}<span class="mono-stat" style="font-size:0.75rem">{{.DurationLabel}}</span>{{end}}
+<span class="inline-share-group"><button type="button" class="ghost btn btn-2xs copy-url-btn js-copy-url" data-copy-url="{{.Href}}" data-copy-label="Copy URL" title="Copy run URL">Copy URL</button><button type="button" class="ghost btn btn-2xs share-url-btn js-share-item" data-share-kind="run" data-share-url="{{.Href}}" data-share-title="{{.Label}}"{{if .ShareID}} data-share-id="{{.ShareID}}"{{end}} data-visibility="{{.Visibility}}" data-discoverability="{{.Discoverability}}" data-can-manage="false" aria-haspopup="dialog" title="Share run">Share</button></span>
+</div>

8. Copy-Ready PR Contract & Upgrade Checklist

Markdown export
Pull Request & Release Rollout Checklist
### SchemaWatch Contract & Rollout Checklist (`23Step/23Step.com`)

- **Verdict:** **Backward Compatible** (100/100) — All detected API, schema, database, and configuration changes are additive and backward-compatible.
- [x] Zero breaking API, schema, database, or configuration changes detected.

Checked by SchemaWatch (built by 23step) strictly from 23step session data.

Actionable Tasks · Inline Annotations · Human + MCP Collaboration

Identified Tasks & Discussion

0 / 1 tasks done 0 comments
Open
LOW Contract Verification sw-verify-1

Verify contract & schema compatibility test suite

SchemaWatch scored session gemini-agent-a3e72cd6-17fa-4030-9d0c-9ac2d2522b8c at 100/100 (Backward Compatible): audited 0 contract surface(s) across 6 file(s) (0 breaking, 0 database migration(s), 0 config/CLI drift item(s), and 0 passing verification command(s)).

Ready-made AI prompt for sw-verify-1
You are resolving an identified SchemaWatch (schemawatch) task from 23step.

## Context
- Plugin: `schemawatch` (SchemaWatch)
- Document: Fix Sessions View On Mobile (`gemini-agent-a3e72cd6-17fa-4030-9d0c-9ac2d2522b8c`)
- Repository / Branch: `23Step/23Step.com` (`main`)
- Current Verdict: Backward Compatible
- Task ID: `sw-verify-1` [LOW · Contract Verification]

## Identified Task / Problem
**Verify contract & schema compatibility test suite**
SchemaWatch scored session gemini-agent-a3e72cd6-17fa-4030-9d0c-9ac2d2522b8c at 100/100 (Backward Compatible): audited 0 contract surface(s) across 6 file(s) (0 breaking, 0 database migration(s), 0 config/CLI drift item(s), and 0 passing verification command(s)).

## Required Action & Implementation Guidance
Run schema migration and API contract tests and confirm upgrade notes are accurate.

## Execution Checklist
1. Inspect the relevant code and tests in the workspace before making edits.
2. Implement the minimal, root-cause fix or artifact required to resolve `sw-verify-1`.
3. Run the relevant test suite and build checks to verify the change end-to-end.
4. If 23step Plugin MCP tools are connected, call `complete_plugin_task` with `plugin: "schemawatch"`, `id: "gemini-agent-a3e72cd6-17fa-4030-9d0c-9ac2d2522b8c"`, `task_id: "sw-verify-1"`, `done: true`, and a concise `note` summarizing the fix (or `comment_plugin` if blocked).

Discussion Thread (Humans & MCP Agents)

No comments yet. Highlight any text, pin or draw on any image or diagram, or leave a note below (also shared with MCP via comment_plugin).

Sign in to comment on text, draw on images, or mark tasks done.