Skip to content

feat: integrate CCTV state model and controller#95

Merged
baba-dev merged 1 commit into
mainfrom
codex/add-camera-model-and-integration-support
Sep 19, 2025
Merged

feat: integrate CCTV state model and controller#95
baba-dev merged 1 commit into
mainfrom
codex/add-camera-model-and-integration-support

Conversation

@baba-dev
Copy link
Copy Markdown
Owner

Summary

  • define CCTV page data model, action events, and setters for cameras and clip history
  • refactor the CCTV page to render dynamic state, surface LVGL events, and manage event chips
  • add a Frigate-inspired integration controller and hook it into the launcher to seed the UI

Testing

  • idf.py build (fails: command not found)

https://chatgpt.com/codex/tasks/task_e_68cd5a35c21483248afa2b692def3e59

Copy link
Copy Markdown

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

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 suggestions.

Reply with @codex fix comments to fix any unresolved comments.

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, or 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 fix this CI failure" or "@codex address that feedback".

Comment on lines +136 to +140
+else if (code == UI_PAGE_CCTV_EVENT_OPEN_CLIP) +
{
+const auto* clip =
static_cast<const ui_page_cctv_clip_event_t*>(lv_event_get_param(event));
+if (clip != nullptr) +
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P0] Remove diff markers from clip event handler

The PageEventCb branch that should react to UI_PAGE_CCTV_EVENT_OPEN_CLIP still contains the literal + prefixes from the patch (+else if, +const auto* clip, etc.). These stray characters make the file fail to compile, so the launcher cannot build and the controller never receives clip-open events. Drop the + markers and keep a normal else if block.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@codex fix comments

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Summary

Testing

  • ⚠️ idf.py build (not run; environment does not provide ESP-IDF tooling for this quick fix)

View task →

@baba-dev baba-dev merged commit b5b8fc0 into main Sep 19, 2025
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant