Merged
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR introduces custom search engine support with user-facing management UI, refactors tab creation to accept initial URLs, implements contrast-based color theming across sidebar components, and updates search URL normalization to use templates instead of provider enums. Changes
Sequence DiagramsequenceDiagram
participant User as User Interface
participant Settings as Settings Views
participant Manager as NookSettingsService
participant BrowserMgr as BrowserManager
participant TabMgr as TabManager
participant SearchMgr as SearchManager
User->>Settings: Add/select custom search engine
Settings->>Manager: customSearchEngines.append(engine)
Settings->>Manager: searchEngineId = engine.id
Manager->>Manager: Persist to UserDefaults
User->>Settings: Create new tab via CommandPalette
Settings->>BrowserMgr: createNewTab(in: windowState, url: userInput)
BrowserMgr->>Manager: resolvedSearchEngineTemplate
Manager-->>BrowserMgr: queryTemplate for selected engine
BrowserMgr->>SearchMgr: normalizeURL(userInput, queryTemplate: template)
SearchMgr-->>BrowserMgr: normalized URL
BrowserMgr->>TabMgr: createNewTab(url: normalizedURL, in: space)
TabMgr->>TabMgr: Backfill default profile if needed
TabMgr-->>User: New tab created with URL
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit
New Features
Bug Fixes