Trellis

Change Impact

Make the change. Know the impact.

Bring the code, dependencies and decisions into your next review—so your team can see what needs attention.
Two engineers reviewing work together at a laptop in a sunlit studio.
Illustrative team scene · AI-generated

Try the review

A small request with more than one moving part.

Customers should be able to save a preferred name and see when it changed. Start with the request handler, then inspect the other places this behavior depends on.

Request handler

Will the new field reach the update function?

The route passes an explicit field list.

Review action

Add preferredName to request validation and the route mapping.

src/routes/profile.ts · lines 31–35

router.patch('/customers/:id', async (req) => {
  return updateCustomer(req.params.id, {
    displayName: req.body.displayName
  });
});
Authored example with synthetic source locations. The test is a proposed review check, not a generated or executed result. The code steps come from callers and search; the table definition comes from your imported database schema. Trellis’s available connections depend on your imported sources and supported syntax.

The conversation gets more specific

“It saves correctly” is only the first check.

  1. The requestSave a preferred name
  2. The dependencyRecord the change
  3. The reasonKeep account history

The request handler can accept a new field while the history recorder misses it. Connected source context gives your team another place to look.

What this example adds to the review

Leave the review knowing what to check.

  1. Add preferredName to request validation and the route mapping.

    Request handler · src/routes/profile.ts · lines 31–35

  2. Add preferredName to trackedFields and inspect the caller of the recorder.

    Implementation · src/history.ts · lines 8–15

  3. Check value types and constraints before deciding whether a migration is needed.

    Table definition · db/customer_history.sql · lines 1–7

  4. Keep the old value, new value and timestamp in the recorded change.

    Requirement · Profile change history · Requirements

  5. Add a test for both the saved value and the recorded change.

    Tests · tests/profile-history.test.ts · illustrative excerpt

This checklist is authored for the example. It is a starting point for review, not a completeness guarantee or an automatic approval.

Try a change you already understand

Bring the change your team is planning.

Bring a recent change, its repository and supporting requirements. Check which dependencies Trellis surfaces and which still need investigation.