Skip to content

test(gui): fix sticker fixtures after media field integration - #272

Merged
jlucaso1 merged 1 commit into
mainfrom
fix/sticker-fixture-fields
Oct 29, 2026
Merged

jlucaso1 merged 1 commit into
mainfrom
fix/sticker-fixture-fields

Conversation

@jlucaso1

@jlucaso1 jlucaso1 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

The merged sticker layout regression test does not compile on main aacc1e2: its MediaProps initializer omits chat_jid, and its DownloadableMedia initializer omits file_sha256, static_url and is_thumbnail, added by the other merged media work.

Initialize those four fields with synthetic test values. Only the existing test fixture changes; production behavior is unchanged.

Validation: reproduced both E0063 errors on unchanged main, then ran the complete GUI suite on the integrated tree: 587 passed, 7 ignored. Formatting and diff checks passed. GUI Clippy with all targets/features and -D warnings passed. The complete workspace test run, including doctests, also passed. Codex completed the exact head without findings; CodeRabbit and remote CI qualification are in progress. Follow-up to #270.


Summary by cubic

Fixes the sticker layout regression test so it compiles after the media field integration added chat_jid, file_sha256, static_url, and is_thumbnail to the fixtures. Only the test fixtures change; production behavior is unchanged.

Written for commit 79323ea. Summary will update on new commits.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • Tests
    • Updated the sticker layout test fixture with the required chat and downloadable-media data.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: b245204c-cf89-4f0b-a93a-6e2f3285b748
Commits

Reviewing files that changed from the base of the PR and between aacc1e2 and 79323ea.

Files selected for processing: 1
  • crates/gui/src/components/message_bubble/media.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The sticker layout and downloadable-media test fixtures now provide fields required by their respective data structures. The change does not alter runtime behavior.

Changes: Media test fixtures

Layer / File(s) Summary
Complete media test fixtures
crates/gui/src/components/message_bubble/media.rs
The sticker layout fixture now includes a synthetic chat_jid. The downloadable-media fixture now initializes file_sha256, static_url, and is_thumbnail.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related PRs

  • oxidezap/client#270: Adds the sticker canvas and layout regression fixtures that this PR updates.

Suggested reviewers: greptile-apps

Merge Risk: Minimal · up to 79323

The fixture updates address the reported GUI test failures without introducing production risk.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change type and scope (test fixes in gui) and describes the main point: sticker test fixtures were updated after the media field integration. The raw summary confirms the only chan…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change type and scope (test fixes in gui) and describes the main point: sticker test fixtures were updated after the media field integration. The raw summary confirms the only change is adding required fields (chat_jid, file_sha256, static_url, is_thumbnail) to sticker layout test fixtures in media.rs, with no runtime changes. The title is specific, concise, and free of vague terms.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Member Author

@codex review

Small integration fix after #270 merged over the other media changes. Both missing-field E0063 errors reproduced on main aacc1e2. Only the existing sticker regression fixtures change, four required fields initialized. Complete integrated GUI suite: 587 passed, 7 ignored.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-29T18:18:25.246084Z 79323ea Draft marked ready
ℹ️ 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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 79323ea8ca

ℹ️ 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".

Copy link
Copy Markdown
Member Author

@coderabbitai review

Please review the four missing-field initializers in this integration follow-up. They restore the existing sticker test compilation on merged main; GUI tests (587 passed, 7 ignored), Clippy and formatting pass. Codex completed exact head 79323ea without findings.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@jlucaso1
jlucaso1 marked this pull request as ready for review October 29, 2026 18:17
@jlucaso1
jlucaso1 merged commit e6e3020 into main Oct 29, 2026
17 checks passed
@jlucaso1
jlucaso1 deleted the fix/sticker-fixture-fields branch October 29, 2026 18:17
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