Skip to content

refactor: split receipt printing, settings and app factory - #121

Merged
hasansezertasan merged 5 commits into
mainfrom
chore/split-receipt-printing-settings-and-app-factory
Oct 19, 2026
Merged

hasansezertasan merged 5 commits into
mainfrom
chore/split-receipt-printing-settings-and-app-factory

Conversation

@hasansezertasan

Copy link
Copy Markdown
Member

Moves receipt printing, settings loading and app assembly out of one import-time module into printing.py, settings.py and build_app().

  • Printer errors always close the connection and reject the message to the dead-letter queue; blocking I/O runs off the event loop.
  • Drops the unused exchange/DLX/DLQ settings (old config files still load) and pins the ack policy.
  • Locks the Message wire contract with tests, so the RabbitMQ payload is unchanged.
  • Tests no longer overwrite ~/.croupier.json.
  • Adds an ADR and GLOSSARY.md.

Move receipt printing, settings loading and app assembly out of one import-time module into printing.py, settings.py and build_app(). Printer errors always close the connection and reject the message to the dead-letter queue, and blocking I/O runs off the event loop. Drop the unused exchange, DLX and DLQ settings (old config files still load), pin the ack policy, lock the Message wire contract with tests, and add an ADR and GLOSSARY.md. The RabbitMQ payload is unchanged.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T12:15:49.264875Z c804280 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 78ac5a1f24

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/croupier/printing.py Outdated
Comment thread demo.py

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c804280600

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread demo.py

@ysnbyzli ysnbyzli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hasansezertasan
hasansezertasan merged commit c231e13 into main Oct 19, 2026
2 checks passed
@hasansezertasan
hasansezertasan deleted the chore/split-receipt-printing-settings-and-app-factory branch October 19, 2026 12:28
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.

2 participants