8000 Simplify wording in docs and code comments · Issue #49 · project-minigraf/minigraf-playground · GitHub
[go: up one dir, main page]

Skip to content

Simplify wording in docs and code comments #49

Done

Description

@adityamukho

Simplify the passages below without changing product behavior, API names, or technical guarantees. These are wording findings, not claims about authorship. The review covers first-party user docs, UI text and source comments at the pinned default-branch snapshot. Candidate scans, rather than full manual reads, covered archived plans.

Snapshot: 7447d618117be8885612ef3f9654c52bedefe6df

Location Current wording (excerpt) Suggested wording / change
README.md:10 each building toward progressively more advanced Datalog Five tutorials, from basic queries to recursion, negation, and time travel:
README.md:18–19 write your own facts and rules against a persistent local graph, with the AI tutor available as you explore In Sandbox, write facts and rules in a graph saved in your browser. You can ask the tutor for help.
README.md:21–22 a free Groq fallback Use your own API key, or ask the tutor through Groq's free option.
README.md:28 The code travels in the link's # part, so it is not sent to any server. The URL fragment (after #) contains the code; browsers do not send fragments in HTTP requests.
app/terms/page.tsx:24 a Groq-based anonymous fallback is used If you don't add your own API key, the tutor sends the request through Groq. Confirm the intended anonymity claim before revising the Terms.
components/editor/QueryEditor.tsx:13 CodeMirror state machinery for error line highlighting CodeMirror state for highlighting the line with a query error.
hooks/useChat.ts:59–60 BYOK path With your own key, the browser calls the provider directly except for Anthropic, which uses the proxy below.
hooks/useChat.ts:99 Proxy path: Anthropic BYOK (relayed server-side) OR anonymous Groq fallback The proxy relays requests that use an Anthropic key or the free Groq option.
lib/lessons/tutorial-marketplace.ts:175 Use valid-time snapshots to inspect historical seller pricing and compare which seller was cheapest on a given date. Find each seller's price on a given date and compare them.
lib/lessons/tutorial-marketplace.ts:302 Query across sellers, products, and orders using multi-hop joins and expression clause filters. J 9B46 oin sellers, products, and orders, then filter the results with an expression.
lib/lessons/tutorial-marketplace.ts:360 bridges a seller to a product with a price … to surface only the budget items A listing names a seller, a product, and its price. Add [(< ?price 300)] to show only listings under 300.
lib/lessons/tutorial-marketplace.ts:514 defined by the absence of a relationship Use not and not-join to find products a seller doesn't list and sellers without orders.
lib/lessons/tutorial-marketplace.ts:616–617 Disjunction and synthesis … match across seller alternatives … a single synthesis query Title: OR queries and negation. Description: Use or and or-join to match either seller, then use not to exclude delivered orders.
lib/lessons/tutorial-marketplace.ts:684 for the seller alternatives … for the status absence Use or to match orders from Corestore Direct or GadgetHaus, then not to exclude delivered orders.
lib/lessons/tutorial-marketplace.ts:707 Two pending orders surfaced by combining disjunction and negation in one query. The query found two pending orders.
lib/lessons/tutorial-marketplace.ts:739 Model a multi-seller e-commerce platform with temporal price tracking. Build a marketplace where several sellers list the same products and prices change over time.
lib/lessons/tutorial-org-chart.ts:54–56 Eve salary starts permanent … what the DB believed before the correction Eve's salary starts with no end date. Retract it and assert dated values; :as-of still shows the original salary before the correction.
lib/lessons/tutorial-org-chart.ts:230–236 combine both axes for complete temporal audits … what was true in the world Use :valid-at to filter facts by date and :as-of to see which facts had been written by a given transaction.
lib/lessons/tutorial-org-chart.ts:295–297 the gold standard for temporal audits and compliance checks … through the lens of an early transaction snapshot Use :as-of N with :valid-at D to see what the database had recorded about date D by transaction N. Compare Frank's department as of transaction 2 with the latest view.
lib/lessons/tutorial-org-chart.ts:319 Bi-temporal audit complete: empty at tx-2 snapshot, :eng in the current view. Transaction 2 shows no department on that date. The latest view shows :eng.
lib/lessons/tutorial-org-chart.ts:449 audit the reporting chain across time The same rule shows who reports to whom at different dates.
lib/lessons/tutorial-org-chart.ts:457 defined by the absence of a relationship Use not and not-join to find departments without employees and employees without managers.
lib/lessons/tutorial-sports-league.ts:340–342 the gold standard for temporal audits … at that early snapshot … correctly shows City At transaction 2, querying Leo's club on September 1 returns no club. Transaction 3 records his move, so the latest view returns City for that date.
lib/lessons/tutorial-sports-league.ts:364 Bi-temporal audit complete: empty at the tx-2 snapshot, :city in the current view. Transaction 2 shows no club on that date. The latest view shows :city.
lib/lessons/tutorial-sports-league.ts:398 connected through the mid-season player transfer network Follow mid-season transfers to see which clubs are connected.
lib/lessons/tutorial-sports-league.ts:503 defined by the absence of a fact Use not and not-join to find players without a former club and clubs without a win.
lib/lessons/tutorial-transit.ts:55–56 unbounded eternal reference stations and lines (no valid-time bounds)
lib/lessons/tutorial-transit.ts:250 Post-extension snapshot Oak Grove joins the Red Line on September 1, 2025.
lib/lessons/tutorial-transit.ts:289–291 the gold standard for temporal audits … the database did not yet know about the suspension For April 1, the view at transaction 3 includes Bay Harbor. The latest view excludes it because transactions 5 and 6 recorded the suspension.
lib/lessons/tutorial-transit.ts:328 explore Bay Harbor's visibility at different valid-at dates to see exactly when it becomes invisible Try dates before and after March 1 to see when the query stops returning Bay Harbor.
lib/lessons/tutorial-transit.ts:349 across both the transaction and valid-time axes You checked when Oak Grove was added to the database and when service began.
lib/lessons/tutorial-transit.ts:602 measure station connectivity, and tally weekend coverage Count stops per line, lines per station, and weekend stops per line.
docs/superpowers/specs/2026-06-19-multi-tutorial-ui-design.md:97 Since sandbox state is ephemeral and tutorial-by-design, this is acceptable and requires no migration. The sandbox is for practice. This change will not migrate previously saved sandbox facts.
docs/superpowers/specs/2026-06-19-multi-tutorial-ui-design.md:203 handles tutorial selection inline — no additional modal surface Choose the tutorial in the dropdown without opening a dialog.
docs/superpowers/specs/2026-06-19-marketplace-tutorial-design.md:169–173 Disjunction and synthesis … in a single synthesis query Mirror the live tutorial's ‘OR queries and negation’ wording.
docs/superpowers/plans/2026-06-19-marketplace-tutorial.md:339 bridges a seller to a product … to surface only the budget items Mirror the live lesson's wording about listings and the price filter.
docs/superpowers/plans/2026-06-19-marketplace-tutorial.md:1062–1117 Disjunction and synthesis … a single synthesis query Mirror the live tutorial in the prose and quoted code examples; not in literal historical commit commands unless needed.

Activity

  1. adityamukho commented on Dec 2, 2026

    @adityamukho
    CollaboratorAuthor

    Completed on main in #50–#52 and #56. The README, tutorial text, source comments and privacy disclosures were revised first; the archived design and plan now use the same lesson wording. Verified all audited ranges against the original snapshot and confirmed the final CI and Vercel preview checks passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0