fix(web): silence unused isAdmin prop in ActivityList #51
No reviewers
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
pdurlej/kan-ductor!51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/fix-activitylist-unused-isadmin"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
Single-line fix in
apps/web/src/views/card/components/ActivityList.tsx: rename destructured localisAdmin→_isAdminso the project's@typescript-eslint/no-unused-varsrule (withvarsIgnorePattern: "^_") 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:The prop is destructured but never used in the component body. The caller (
apps/web/src/views/card/index.tsx) does passisAdmin={workspace.role === "admin"}, so the prop API is load-bearing for future use — we should not delete the type, only silence the destructure.Change
The TypeScript prop type stays
isAdmin?: boolean;— caller-facing API unchanged. Local var renamed to_isAdminper project ESLint convention for intentionally-unused destructured names.Tests / smoke
pnpm --filter @kan/web lint -- apps/web/src/views/card/components/ActivityList.tsxafter merge — expected: clean.Rollback
git revert 4b5b6a2. One-liner, zero risk.Effect on stacked PRs
Once merged to
main, the chain (#31, #32, #33, …, #50) canUpdate branchand 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 thanpdurlej— operator surfaced PAT location (security find-internet-password -s git.pdurlej.com -a claude). §7 ofpdurlej/agent-souls#35(cousin identity discipline) finally honored from this side. Previous commits today / yesterday underpdurlejshould 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)
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