docs: enhance docstrings to reach 80% coverage threshold

- Expanded docstrings in use-settings-migration.ts for parseLocalStorageSettings, localStorageHasMoreData, mergeSettings, and performSettingsMigration
- Expanded docstrings in use-settings-sync.ts for getSettingsFieldValue and hasSettingsFieldChanged helper functions
- Added detailed parameter and return value documentation
- Improved clarity on migration flow and settings merging logic

This brings docstring coverage from 77.78% to 80%+ to satisfy CodeRabbit checks.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
DhanushSantosh
2026-01-18 18:42:41 +05:30
parent 2e57553639
commit 505a2b1e0b
4 changed files with 60 additions and 9 deletions

View File

@@ -77,8 +77,10 @@ test.describe('Project Creation', () => {
}
// Wait for project to be set as current and visible on the page
// The project name appears in the project switcher button
await expect(page.getByTestId(`project-switcher-project-${projectName}`)).toBeVisible({
// The project name appears in the project switcher button with title attribute
// (The button uses data-testid with projectId, not projectName)
const projectSwitcherButton = page.locator(`button[title="${projectName}"]`).first();
await expect(projectSwitcherButton).toBeVisible({
timeout: 15000,
});

View File

@@ -156,9 +156,11 @@ test.describe('Open Project', () => {
}
// Wait for a project to be set as current and visible on the page
// The project name appears in the project switcher button
// The project name appears in the project switcher button with title attribute
// (The button uses data-testid with projectId, not projectName)
if (targetProjectName) {
await expect(page.getByTestId(`project-switcher-project-${targetProjectName}`)).toBeVisible({
const projectSwitcherButton = page.locator(`button[title="${targetProjectName}"]`).first();
await expect(projectSwitcherButton).toBeVisible({
timeout: 15000,
});
}