Skip to content

feat(comments): validation checkbox for validators [Assety s více úrovněmi vláken] - #2276

Merged
Tweekazoid merged 5 commits into
mainfrom
claude/comment-is-validation
Aug 25, 2026
Merged

feat(comments): validation checkbox for validators [Assety s více úrovněmi vláken]#2276
Tweekazoid merged 5 commits into
mainfrom
claude/comment-is-validation

Conversation

@PetrDlouhy

Copy link
Copy Markdown
Contributor

Add-on side of validation-thread marking (server: BlenderKit/BlenderKit-server#3516).

  • Validators (profile canEditAllAssets) get a Validation comment checkbox when starting a new comment thread; hidden on replies, which inherit the thread's type server-side.
  • client_lib.create_comment passes is_validation to the Client; the flag resets after posting.
  • Needs the matching bk_client change to forward the field (typed structs drop it today) — companion PR in bk_client. Until both ship, the server's template fallback ('Validation status: …' by a validator) classifies threads, so current add-on releases keep working unchanged.

🤖 Generated with Claude Code

The server now stores an explicit thread type (validation vs public
discussion, BlenderKit-server#3516). Validators get a 'Validation
comment' checkbox when starting a new thread; replies inherit the
thread's type so the checkbox is hidden for them. The flag is passed
through the Client, which needs a matching field in CreateCommentData
and CommentPostData to forward it; until both are released the server
classifies validator template comments ('Validation status: ...') by
their text, so older add-on versions keep working unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Most validator-started threads are validation comments; the reset after
posting returns to the checked default accordingly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 20.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 32.24%. Comparing base (2602b2e) to head (4ef1e5c).

Files with missing lines Patch % Lines
ui_panels.py 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2276      +/-   ##
==========================================
- Coverage   32.25%   32.24%   -0.01%     
==========================================
  Files          85       85              
  Lines       26688    26692       +4     
==========================================
  Hits         8608     8608              
- Misses      18080    18084       +4     
Flag Coverage Δ
python 32.24% <20.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
__init__.py 0.00% <ø> (ø)
client_lib.py 59.15% <100.00%> (ø)
ui_panels.py 22.54% <0.00%> (-0.04%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

PetrDlouhy and others added 3 commits August 24, 2026 12:06
Operator tests for the codecov patch gap in ui_panels.execute: a
validator starting a thread sends is_validation and the checkbox
resets to its checked default; replies and non-validators never send
it. client_lib.create_comment is stubbed per the established
BKIT_PROFILE save/restore pattern. Not run locally (no Blender binary
on this machine) - verified by the CI matrix.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Recording-layout fake exercises AssetPopupCard.draw_comment_response
directly: the checkbox draws for validators on new threads only, never
on replies or for non-validators. Covers the last uncovered patch
lines; nested with-statements keep Python 3.9 (Blender 3.0) parsing.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Tweekazoid
Tweekazoid merged commit 527ee73 into main Aug 25, 2026
29 checks passed
@Tweekazoid
Tweekazoid deleted the claude/comment-is-validation branch August 25, 2026 12:46
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