Link language debugging #611
BugBot Review
BugBot Analysis Progress (3m 21s elapsed)
β
Gathered PR context (45s)
β
Analyzed code changes (3s)
β
Completed bug detection β 2 potential bugs found (2m 31s)
β
Validation and filtering completed (0s)
β
Posted analysis results β 2 bugs reported (2s)
β
Analysis completed successfully (0s)
Final Result: BugBot completed review and found 2 potential issues
Request ID: serverGenReqId_66a1d9aa-d7cf-4874-82a5-fe8c6701544b
Details
Bug: Language Association Logic Error
The logic for associating languages with perspectives was altered by removing the else clause that checked p.neighbourhood.meta.links for language references (where predicate is 'language' and target is the language address). This prevents languages used via meta links from being correctly identified as associated with perspectives, leading to them being incorrectly displayed as unused in the UI.
ui/src/components/Language.tsx#L87-L105
ad4m/ui/src/components/Language.tsx
Lines 87 to 105 in da3dc3a
Bug: Enum Case Change and Typo Bug
The PerspectiveState enum's string values were changed from SCREAMING_SNAKE_CASE (e.g., "PRIVATE") to PascalCase (e.g., "Private"), which is a breaking change for any code relying on the old string values. Additionally, the NeighboudhoodCreationInitiated enum value contains a typo ("Neighboudhood" instead of "Neighbourhood"), causing inconsistency with other enum values and the corresponding Rust enum.
core/src/perspectives/PerspectiveHandle.ts#L4-L11
ad4m/core/src/perspectives/PerspectiveHandle.ts
Lines 4 to 11 in da3dc3a
Was this report helpful? Give feedback by reacting with π or π