Skip to content

Record an audit trail for order creation - #2

Open
ohansemmanuel wants to merge 21 commits into
mainfrom
feat/order-audit-log
Open

Record an audit trail for order creation#2
ohansemmanuel wants to merge 21 commits into
mainfrom
feat/order-audit-log

Conversation

@ohansemmanuel

Copy link
Copy Markdown
Member

Adds an audit module and records an entry whenever an order is created.

@coldteadotai coldteadotai deleted a comment from pr-lens-dev Bot Aug 23, 2026
@coldtea-pr-lens

coldtea-pr-lens Bot commented Aug 23, 2026

Copy link
Copy Markdown

◈ PR Lens

🟢 +1 new · 🟠 ~1 changed · 🔴 -0 removed · 1 flow · 2 files · commit a4a4cff


Architecture

Architecture diagram for coldteadotai/pr-lens-demo at a4a4cff

2 components touched across 3 lanes.

Open full size


Data flow

Data flow diagram for coldteadotai/pr-lens-demo at a4a4cff

Creating an order with audit trail

Open full size


Drill down
Services — 1 component
🟡 CHANGED Orders Service

Processes order creation and triggers audit trail recording.

Data — 1 component
🟢 NEW Audit Log

Stores an audit trail of actions such as order creation.


View

  • Architecture lens
  • Data flow lens
  • Expand every detail
  • Show unchanged neighbours

Thanks for using PR Lens. It's free for open source and grows by word of mouth. If these lenses help, please share 🙏

❤️ Share

Tip

Push a new commit and the whole comment re-renders for the new head. An older run never overwrites a newer one, so a slow render cannot put a stale diagram back.

🪧 More tips
  • Run PR Lens on your own machine: npx skills add coldteadotai/pr-lens installs the agent skill. Then tell your coding agent: "Diagram the change you just made with PR Lens and attach it to the pull request."
  • Draw a diff before it is even a pull request: npx @coldtea/pr-lens-cli analyze --base origin/main reads the diff with your own model key, and npx @coldtea/pr-lens-cli render .pr-lens/graph.json draws the same lenses on your machine.
  • The boxes under View are live. Tick Architecture lens or Data flow lens to choose which diagrams appear, or Expand every detail to open every drill-down at once. The comment redraws in place a few seconds later.
  • Show unchanged neighbours lists the components this change did not touch alongside the ones it did, so the drill-down shows what the changed code sits next to.
  • GitHub will not let you zoom an image in a comment. The link under each diagram opens it full size on a page of its own, where you can.
  • The CLI's render picks up .github/pr-lens.yml automatically and applies your corrections (renames, exclusions, lane pins) at draw time.
  • Would you rather run it from CI on a key of your own? Add .github/workflows/pr-lens.yml with coldteadotai/pr-lens/packages/action@v0 and a model key in your repository secrets, say GEMINI_API_KEY. The Action asks Gemini by default, or OpenAI and any endpoint speaking /chat/completions through its provider input.
  • PR Lens is free for open source and grows by word of mouth. A star on the repository, or a link from the Share drawer above, is what keeps it going.
  • The diagrams follow your GitHub theme, so dark mode gets the dark render and light mode the light one, and the moving dots show this pull request's data in motion.

◈ Rendered by PR Lens · crafted with ❤️ by the Coldtea team · Join us on Discord

@coldteadotai coldteadotai deleted a comment from coldtea-pr-lens Bot Aug 23, 2026
@coldteadotai coldteadotai deleted a comment from coldtea-pr-lens Bot Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant