Skip to content

refactor(notifications): migrate to shared renderer_base - #315

Merged
Pigbibi merged 7 commits into
mainfrom
refactor/notification-unification
Jul 8, 2026
Merged

refactor(notifications): migrate to shared renderer_base#315
Pigbibi merged 7 commits into
mainfrom
refactor/notification-unification

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Replace locally duplicated functions with imports from quant_platform_kit.notifications.renderer_base.

Depends on: QuantPlatformKit#200

Changes

  • notifications/renderers.py: 962 → 709 lines (-253)
  • Deleted local copies of 22 shared functions (formatting, text splitting, volatility helpers, etc.)
  • Kept thin wrappers for IBKR-specific patterns:
    • _build_timing_audit_lines — uses resolve_execution to flatten nested execution_annotations
    • _relabel_dashboard_cash_labels — delegates to shared with translator=None (IBKR uses hardcoded labels)
    • _build_tqqq_risk_control_lines — delegates to shared
    • _format_signal_snapshot_line — delegates to shared with IBKR-specific localize_text callback
  • All platform-specific functions preserved (order formatting, batch builders, build_dashboard, etc.)
  • Renderer public API unchanged

🤖 Generated with Claude Code

Pigbibi and others added 3 commits July 9, 2026 04:17
Persist IBKR execution summaries after each strategy cycle using
QuantPlatformKit try_record_platform_execution().

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace locally duplicated functions with imports from
quant_platform_kit.notifications.renderer_base.
Keep thin wrappers for IBKR-specific data access patterns
(e.g. execution_annotations flattening, hardcoded cash labels).

Co-Authored-By: Claude <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector

This comment has been minimized.

@Pigbibi
Pigbibi enabled auto-merge (squash) July 8, 2026 21:12
@cursor

cursor Bot commented Jul 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Co-Authored-By: Claude <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Pigbibi and others added 2 commits July 9, 2026 05:17
Replace the per-symbol hardcoded whitelist with a universal rule:
if the account already holds a symbol (>0 shares) AND the strategy
wants to keep >= 85% of 1 share's value, retain the position.

Co-Authored-By: Claude <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Co-Authored-By: Claude <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Pigbibi
Pigbibi merged commit 021d4fb into main Jul 8, 2026
2 checks passed
@Pigbibi
Pigbibi deleted the refactor/notification-unification branch July 8, 2026 21:36
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