From bc71d5ba386b19eaf3ebed51fb9c3976f7c867b6 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Thu, 26 Feb 2026 00:36:33 +0530 Subject: [PATCH] refactor(page): improve code formatting for better readability in event handlers --- backend/tests/test_task_agent_permissions.py | 12 +++++++++--- frontend/src/app/boards/[boardId]/edit/page.tsx | 4 +++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/backend/tests/test_task_agent_permissions.py b/backend/tests/test_task_agent_permissions.py index 44e3e7a8..70a1172d 100644 --- a/backend/tests/test_task_agent_permissions.py +++ b/backend/tests/test_task_agent_permissions.py @@ -507,7 +507,9 @@ async def test_non_lead_agent_move_to_review_reassigns_to_lead_and_sends_review_ return None monkeypatch.setattr(tasks_api, "GatewayDispatchService", _FakeDispatch) - monkeypatch.setattr(tasks_api, "_send_agent_task_message", _fake_send_agent_task_message) + monkeypatch.setattr( + tasks_api, "_send_agent_task_message", _fake_send_agent_task_message + ) task = (await session.exec(select(Task).where(col(Task.id) == task_id))).first() assert task is not None @@ -626,7 +628,9 @@ async def test_lead_moves_review_task_to_inbox_and_reassigns_last_worker_with_re return None monkeypatch.setattr(tasks_api, "GatewayDispatchService", _FakeDispatch) - monkeypatch.setattr(tasks_api, "_send_agent_task_message", _fake_send_agent_task_message) + monkeypatch.setattr( + tasks_api, "_send_agent_task_message", _fake_send_agent_task_message + ) task = (await session.exec(select(Task).where(col(Task.id) == task_id))).first() assert task is not None @@ -838,7 +842,9 @@ async def test_non_lead_agent_moves_to_review_without_comment_when_rule_disabled @pytest.mark.asyncio -async def test_non_lead_agent_moves_to_review_without_comment_or_recent_comment_fails_when_rule_enabled() -> None: +async def test_non_lead_agent_moves_to_review_without_comment_or_recent_comment_fails_when_rule_enabled() -> ( + None +): engine = await _make_engine() try: async with await _make_session(engine) as session: diff --git a/frontend/src/app/boards/[boardId]/edit/page.tsx b/frontend/src/app/boards/[boardId]/edit/page.tsx index 2248a681..b68aa37f 100644 --- a/frontend/src/app/boards/[boardId]/edit/page.tsx +++ b/frontend/src/app/boards/[boardId]/edit/page.tsx @@ -1030,7 +1030,9 @@ export default function EditBoardPage() { aria-checked={resolvedCommentRequiredForReview} aria-label="Require comment for review" onClick={() => - setCommentRequiredForReview(!resolvedCommentRequiredForReview) + setCommentRequiredForReview( + !resolvedCommentRequiredForReview, + ) } disabled={isLoading} className={`mt-0.5 inline-flex h-6 w-11 shrink-0 items-center rounded-full border transition ${