Conversation
|
Thank you for creating this pull request and helping make the project better. We will review / merge it when we are online. |
PR Summary by QodoRelease 1.3.3: Workspace-safe website aliases + inline history isolation
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
Preview removedThe temporary website preview for this pull request has been removed. |
There was a problem hiding this comment.
Actionable comments posted: 5
🧹 Nitpick comments (1)
src/services/websiteAliasService.ts (1)
70-71: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueDocument the changed exported service APIs.
src/services/websiteAliasService.ts#L70-L71: add JSDoc abovegetPreviousAliasForWebsitedescribing its account-ownership filtering.src/services/websiteAliasService.ts#L83-L112: add JSDoc abovegenerateSuggestionsForWebsitedescribing domain-preserving suggestion generation.As per coding guidelines, “Every function declaration, arrow function, and exported component must have at least a one-line JSDoc comment describing its purpose.”
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/services/websiteAliasService.ts` around lines 70 - 71, Document both exported service APIs with one-line JSDoc comments: above getPreviousAliasForWebsite, describe that it filters previous aliases by account ownership; above generateSuggestionsForWebsite, describe that it generates suggestions while preserving the website’s domain. Apply the documentation at both affected ranges in src/services/websiteAliasService.ts: lines 70-71 and 83-112.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/services/inlineHistoryService.ts`:
- Around line 24-27: Update the inline history candidate validation around the
email and timestamp checks to require Number.isFinite(candidate.timestamp),
rejecting NaN and positive or negative Infinity while preserving valid numeric
timestamps. Add coverage for malformed entries containing non-finite timestamps.
- Around line 70-76: Update selectStoredValue so precedence is based on whether
accountKey exists in storage, rather than nullish value checks: return the
scoped entry whenever the key is present, including null, and only use legacyKey
when the scoped key is absent. Add a regression test covering a null scoped
value with valid legacy data and verify parsing normalizes the scoped result to
empty.
In `@tests/popup/changelogData.test.ts`:
- Around line 23-42: Add a beforeEach reset hook to the “extension changelog
data” suite before its tests, using the project’s established state-reset
mechanism and ensuring each test starts from clean state.
- Around line 23-42: Document every arrow-function callback in the “extension
changelog data” tests with a one-line JSDoc comment describing its purpose,
including the describe/it callbacks and the versions map and changes flatMap
callbacks. Preserve the existing test behavior and assertions.
- Around line 5-21: Update the tests for compareVersionsDescending to invoke the
comparator directly, covering newer, older, and equal version inputs so its
return-0 equality path is executed. Keep the existing unique-version sort
assertion and add focused cases that exercise all comparator branches.
---
Nitpick comments:
In `@src/services/websiteAliasService.ts`:
- Around line 70-71: Document both exported service APIs with one-line JSDoc
comments: above getPreviousAliasForWebsite, describe that it filters previous
aliases by account ownership; above generateSuggestionsForWebsite, describe that
it generates suggestions while preserving the website’s domain. Apply the
documentation at both affected ranges in src/services/websiteAliasService.ts:
lines 70-71 and 83-112.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 9ad8b791-2cb9-457e-9bb1-3031f4a7a83a
📒 Files selected for processing (9)
entrypoints/content/index.tsentrypoints/popup/components/Settings.tsxentrypoints/popup/data/changelog.tspackage.jsonsrc/services/inlineHistoryService.tssrc/services/websiteAliasService.tstests/popup/changelogData.test.tstests/services/inlineHistoryService.test.tstests/services/websiteAliasService.test.ts
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTo customize comments, go to the Qodo configuration screen, or learn more in the docs. |
eplus-bot
left a comment
There was a problem hiding this comment.
Approved by @eplus-bot after all pull request checks passed.
CI run: https://github.com/ePlus-DEV/gmail-alias-toolkit/actions/runs/30470850184
|
Approved by @eplus-bot after all pull request checks passed. Approval refresh: #1 CI run: https://github.com/ePlus-DEV/gmail-alias-toolkit/actions/runs/30470850184 |
|
@eplus-bot review |
eplus-bot
left a comment
There was a problem hiding this comment.
Approved by @eplus-bot after all checks passed for commit eba34e5cab723c86e964c1a0fcbefd3d97a56edc.
|
✅ eplus-bot reviewed and approved commit |
|
Thanks for helping make Gmail Alias Toolkit better! |
Summary
1.3.3fromdevtomain;Bug fixes
@gmail.com.nullor malformed data no longer falls back to legacy global history.NaN,Infinity, or-Infinitytimestamps are ignored.Tests
Notes
1.3.3maindev