← atlas·sql-editor

save-sql-snippet

User writes a query and saves it as a named snippet for reuse. Monica via shared-with-team context, Sara via query-history pin, Nate via literal-name input with advance-notice.

default path · what bare Studio does

  1. 01
    route/project/[ref]/sqlactionload-editorhookuseSqlEditorStateSnapshot
  2. 02
    route/project/[ref]/sqlactionwrite-or-paste-queryuieditor-focus
  3. 03
    route/project/[ref]/sqlactionopen-save-dialoguisave-snippet-modal
  4. 04
    route/project/[ref]/sqlactionenter-snippet-nameside-effectvalidate-name
  5. 05
    route/project/[ref]/sqlactionconfirm-saveuisave-complete-toast

per-profile overrides · vehicle × route

Three vehicles, three routes

Connector · Battleship

Monica

sea route

Bring the team into the workflow.

deltas

  • Enter: shared-context
  • prelude · TeamActivityPrelude
  • on save · TeamSaveAck

slot fillers wired

  • premain-prelude · TeamActivityPrelude
  • on savesave-confirmation · TeamSaveAckSaved to team snippets · visible to 4 people

cognitive justification

Connector + HSP — framing the snippet as a team asset reduces cognitive load. Activity context on save fulfills social reward without modal bloat.

Try Monica's route →

Explorer · Tractor

Nate

field route

Show me what I don't already know.

deltas

  • Enter: literal-input
  • prelude · AdvanceNoticeStrip
  • destructive · AdvanceNoticeStrip 2500ms
  • chunk · 4

slot fillers wired

  • preadvance-notice · AdvanceNoticeStrip
  • pre-destructiveadvance-notice · AdvanceNoticeStrip2500ms

cognitive justification

ASD + ADHD + DYS — literal language (no "save your work"), zero motion, and chunk-size 4 prevent working-memory overload. Advance-notice strip 2.5s before commit calms prediction-error.

Try Nate's route →

Analyst · Airplane

Sara

air route

Numbers first. Then we talk.

deltas

  • Enter: query-history
  • prelude · KpiBand
  • trailing · Sparkline
  • on save · SaveLedger

slot fillers wired

  • premain-prelude · KpiBand
  • trailingtable-row-trailing · Sparkline
  • on savemain-postlude · SaveLedger✓ pinned · {{timestamp}}

cognitive justification

Analyst + DA-from-data + Anxiety — the snippet becomes a tracked artifact with explicit timestamp feedback. Sparkline row-count preview keeps dopamine rewards tied to the snippet's value.

Try Sara's route →