fix: preserve Google Workspace domain in alias suggestions - #87
Conversation
📝 WalkthroughWalkthroughThe PR adds account-aware inline history loading, integrates it into the content script, and strengthens website alias ownership and suggestion generation for validated Workspace accounts. ChangesAccount-aware alias behavior
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant HistoryTab
participant loadInlineAccountHistory
participant browser.storage.local
HistoryTab->>loadInlineAccountHistory: load active account history
loadInlineAccountHistory->>browser.storage.local: read scoped and legacy values
browser.storage.local-->>loadInlineAccountHistory: stored history and favorites
loadInlineAccountHistory-->>HistoryTab: return filtered history and favorites
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
Thank you for creating this pull request and helping make the project better. We will review / merge it when we are online. |
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/30420555375
|
Approved by @eplus-bot after all pull request checks passed. Approval refresh: #8 CI run: https://github.com/ePlus-DEV/gmail-alias-toolkit/actions/runs/30421865510 |
PR Summary by QodoPreserve Workspace domains and isolate inline alias history
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
1.
|
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/30420694028
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/30420959771
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/30421479147
|
Code review by qodo was updated up to the latest commit 301e063 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@tests/services/inlineHistoryService.test.ts`:
- Around line 114-131: Add a test within defineInlineHistoryServiceTests that
mocks browser.storage.local.get to reject and asserts loadInlineAccountHistory()
propagates the rejection. Preserve resetMockStorage cleanup and the existing
successful-read coverage.
🪄 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: d394005b-09bc-400b-99a6-c72f74c1d794
📒 Files selected for processing (5)
entrypoints/content/index.tssrc/services/inlineHistoryService.tssrc/services/websiteAliasService.tstests/services/inlineHistoryService.test.tstests/services/websiteAliasService.test.ts
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/30421753283
|
Code review by qodo was updated up to the latest commit b70a116 |
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/30421865510
|
Thanks for helping make Gmail Alias Toolkit better! |
Summary
@gmail.comsuffix from inline helper suggestions;Bug
The inline helper displayed the selected Google Workspace account correctly, but generated suggestions and legacy history could still use Gmail addresses.
Before:
After:
Behavior
user@localhostoruser @gmail.comproduce no suggestions.Testing
Notes
This PR targets
dev. It does not change package versions, release workflows, tags, or dependencies.