fix(web): silence unused isAdmin prop in ActivityList #51

Merged
pdurlej merged 1 commit from claude/fix-activitylist-unused-isadmin into main 2026-05-10 14:10:15 +02:00
Owner

Scope

Single-line fix in apps/web/src/views/card/components/ActivityList.tsx: rename destructured local isAdmin_isAdmin so the project's @typescript-eslint/no-unused-vars rule (with varsIgnorePattern: "^_") stops flagging it.

Why

The 3+3 review canary fails on 8 stacked PRs (#37, #39, #40, #41, #43, #46, #47, #50) plus #31/#32 stack tip with the same ESLint error:

apps/web/src/views/card/components/ActivityList.tsx:374 unused 'isAdmin'

The prop is destructured but never used in the component body. The caller (apps/web/src/views/card/index.tsx) does pass isAdmin={workspace.role === "admin"}, so the prop API is load-bearing for future use — we should not delete the type, only silence the destructure.

Change

 const ActivityList = ({
   cardPublicId,
   isLoading: cardIsLoading,
-  isAdmin,
+  isAdmin: _isAdmin,
   isViewOnly,
 }: {

The TypeScript prop type stays isAdmin?: boolean; — caller-facing API unchanged. Local var renamed to _isAdmin per project ESLint convention for intentionally-unused destructured names.

Tests / smoke

  • Run pnpm --filter @kan/web lint -- apps/web/src/views/card/components/ActivityList.tsx after merge — expected: clean.
  • Visual: ActivityList unchanged (no behavior, no UI).

Rollback

git revert 4b5b6a2. One-liner, zero risk.

Effect on stacked PRs

Once merged to main, the chain (#31, #32, #33, …, #50) can Update branch and the canary ESLint blocker disappears for all of them. Each PR's other per-PR review notes (product/tech blockers cited individually) are out of scope here — those need per-PR follow-ups.

Owner gate

None. Single-line typing convention fix.

Identity discipline note

This PR is the first commit authored as Claude (id 3) rather than pdurlej — operator surfaced PAT location (security find-internet-password -s git.pdurlej.com -a claude). §7 of pdurlej/agent-souls#35 (cousin identity discipline) finally honored from this side. Previous commits today / yesterday under pdurlej should be tracked as a follow-up issue (re-attribution or just discipline going forward).

— Prof Opus 🦍🎓 (war-room continuation, Codex tokens out until 2026-05-12 00:38)

## Scope Single-line fix in `apps/web/src/views/card/components/ActivityList.tsx`: rename destructured local `isAdmin` → `_isAdmin` so the project's `@typescript-eslint/no-unused-vars` rule (with `varsIgnorePattern: "^_"`) stops flagging it. ## Why The 3+3 review canary fails on **8 stacked PRs** (`#37, #39, #40, #41, #43, #46, #47, #50`) plus #31/#32 stack tip with the same ESLint error: ``` apps/web/src/views/card/components/ActivityList.tsx:374 unused 'isAdmin' ``` The prop is destructured but never used in the component body. The caller (`apps/web/src/views/card/index.tsx`) does pass `isAdmin={workspace.role === "admin"}`, so the prop API is load-bearing for future use — we should not delete the type, only silence the destructure. ## Change ```diff const ActivityList = ({ cardPublicId, isLoading: cardIsLoading, - isAdmin, + isAdmin: _isAdmin, isViewOnly, }: { ``` The TypeScript prop type stays `isAdmin?: boolean;` — caller-facing API unchanged. Local var renamed to `_isAdmin` per project ESLint convention for intentionally-unused destructured names. ## Tests / smoke - Run `pnpm --filter @kan/web lint -- apps/web/src/views/card/components/ActivityList.tsx` after merge — expected: clean. - Visual: ActivityList unchanged (no behavior, no UI). ## Rollback `git revert 4b5b6a2`. One-liner, zero risk. ## Effect on stacked PRs Once merged to `main`, the chain (`#31, #32, #33, …, #50`) can `Update branch` and the canary ESLint blocker disappears for all of them. Each PR's other per-PR review notes (product/tech blockers cited individually) are out of scope here — those need per-PR follow-ups. ## Owner gate None. Single-line typing convention fix. ## Identity discipline note This PR is the **first commit authored as `Claude` (id 3)** rather than `pdurlej` — operator surfaced PAT location (`security find-internet-password -s git.pdurlej.com -a claude`). §7 of `pdurlej/agent-souls#35` (cousin identity discipline) finally honored from this side. Previous commits today / yesterday under `pdurlej` should be tracked as a follow-up issue (re-attribution or just discipline going forward). — Prof Opus 🦍🎓 (war-room continuation, Codex tokens out until 2026-05-12 00:38)
fix(web): silence unused isAdmin prop in ActivityList
Some checks failed
Forgejo CI / verify (pull_request) Successful in 10m17s
Forgejo Docker Images / build (pull_request) Failing after 6s
4b5b6a2fa4
The `isAdmin` prop is destructured from props but never used in the
component body. Caller (`apps/web/src/views/card/index.tsx`) still
passes `isAdmin={workspace.role === "admin"}` so the prop API is
load-bearing for some future use.

Rename the destructured local from `isAdmin` to `_isAdmin` so the
project's ESLint rule (`@typescript-eslint/no-unused-vars` with
`varsIgnorePattern: "^_"`) accepts it. The TypeScript prop type
remains `isAdmin?: boolean;` — caller-facing API unchanged.

This unblocks 3+3 review canary check on PRs #37, #39, #40, #41, #43,
#46, #47, #50 (and #31, #32 stack tip), all of which fail the same
ESLint error: `apps/web/src/views/card/components/ActivityList.tsx:374
unused 'isAdmin'`.

Refs: 3+3 review comments on PR #37, #39, #40, #41, #43, #46, #47, #50
Sign in to join this conversation.
No reviewers
No labels
3plus3-followup
agent/claude-code
agent/codex
agent/hermes
agent/iskra
agent/ollama
agent/patchwarden
analytics
api
cockpit
dependency/blocked
dependency/blocks-others
dependency/cross-repo
dependency/needs-confirmation
docs
domain:agents
domain:ci
domain:docs
domain:forgejo
domain:infra
domain:memory
domain:runtime
domain:signal
domain:ux
flow/architecture
flow/blocked
flow/deployed
flow/done
flow/implementation
flow/intake
flow/maintained
flow/observed
flow/ready
flow/refining
flow/retired
flow/review
gemini-flash
judge/codex-candidate
judge/hermes-candidate
judge/low-confidence
judge/needs-refinement
judge/operator-needed
judge/p0
judge/p1
judge/p2
judge/p3
judge/park
judge/patchwarden-candidate
judge/stale-priority
kind/adr
kind/bug
kind/chore
kind/feature
kind/infra
kind/ops
kind/refactor
kind/research
leviathan
mcp
merge/auto
merge/manual
merge/manual-dependency-conflict
merge/manual-failing-tests
merge/manual-merge-conflict
merge/manual-missing-review
merge/manual-operator-preference
merge/manual-red-zone
merge/manual-security-sensitive
merge/manual-unclear-scope
merge/manual-unknown
mode:operator-only
mode:patchwarden-iskra-approved
mode:safe-auto
observed/erroring
observed/needs-followup
observed/pending
observed/retire-candidate
observed/unused
observed/used
ops
priority:p0
priority:p1
priority:p2
priority:p3
review:claude-reviewed
review:codex-reviewed
review:dziadek-reviewed
review:needs-human
safety
safety:external-write
safety:no-prod-mutation
safety:prod-impact
safety:secret-touch
scout
security
size/large
size/medium
size/small
size/tiny
size/unknown
small-task
source/adr
source/agent-generated
source/manual
source/operator-chat
source/voice-note
status:blocked
status:codex-ready
status:merged:pending-evidence
status:needs-evidence
status:operator-needed
status:parked
tests
tier:0-platform-substrate
tier:1-iskra-value-layer
tier:2-tools-products-modules
type:bug
type:chore
type:docs
type:feat
type:policy
type:research
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pdurlej/kan-ductor!51
No description provided.