Skip to content

Various minor changes - #21

Merged
thromer merged 4 commits into
mainfrom
misc
Jul 4, 2026
Merged

Various minor changes#21
thromer merged 4 commits into
mainfrom
misc

Conversation

@thromer

@thromer thromer commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator
  • Add install step to top-level yarn ci script.
  • Improve yarn lint scripts.
  • Formatting and style changes.
  • Upgrade yarn version.

Summary by CodeRabbit

  • Chores

    • Updated the project’s package manager version and CI workflow to install workspace dependencies before running checks.
    • Adjusted repository and Yarn settings to broaden allowed Git access and update ignore behavior.
  • Bug Fixes

    • Improved logging across the app and extension, making startup, validation, and data-processing issues easier to trace.
    • Refined lint coverage for several packages to better match the intended file set.

- Add install step to top-level yarn ci script.
- ...
@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@thromer, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 25 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 96090087-e051-4b0b-b3c5-5e9915f2de1c

📥 Commits

Reviewing files that changed from the base of the PR and between a79ea12 and 207114e.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (3)
  • .yarnrc.yml
  • package.json
  • packages/apps-script-sample/package.json
📝 Walkthrough

Walkthrough

This PR replaces console.log calls with Logger.log across the extension and apps-script-sample source/test files, updates the root package.json (Yarn version, ci script), .yarnrc.yml settings, package manifests' lint globs and dependencies, and appends a catch-all rule to .gitignore.

Changes

Console to Logger.log migration

Layer / File(s) Summary
Apps-script-sample logging
packages/apps-script-sample/src/app.ts
doPost logging switched from console.log to Logger.log; validation error message formatting adjusted.
Extension source logging
packages/extension/cli/cli.ts, packages/extension/src/background.ts, packages/extension/src/config-form.ts, packages/extension/src/content.ts
Multiple console.log calls replaced with Logger.log in CLI output, background script events, form error handling, and content script error/timeout logging.
Test logging
packages/extension/tests/processing.test.ts
A commented debug log statement changed from console.log to Logger.log.

Build, package, and config updates

Layer / File(s) Summary
Root package manager and CI script
package.json
packageManager bumped to Yarn 4.17.0; ci script now runs workspace installs before the ci command.
Yarn configuration
.yarnrc.yml
Adds approvedGitRepositories: "**", enableScripts: true, and npmMinimalAgeGate: 0.
Apps-script-sample manifest and lint
packages/apps-script-sample/package.json, packages/apps-script-sample/clasp-redeploy.sh
Package renamed from apps-script-samples to apps-script-sample, lint script glob expanded, tslib devDependency removed, and whitespace-only tweak in redeploy script.
Extension lint script
packages/extension/package.json
Lint globs split into separate root and src/tests patterns.
Gitignore catch-all
.gitignore
Appends a wildcard ignore rule.

Estimated code review effort: 2 (Simple) | ~12 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is too vague to convey the main change and could describe almost any update. Use a concise, specific title that names the main maintenance changes, such as the Yarn upgrade and CI/lint script updates.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch misc

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

🤖 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 @.gitignore:
- Around line 30-31: The ignore rule in the root .gitignore is too broad and
will match files across the entire repository. Update the rule so it is scoped
only to the intended clasp workspace, or move the ignore entry into that
subdirectory’s own .gitignore; use the current unqualified pattern as the item
to locate and narrow.

In @.yarnrc.yml:
- Around line 1-3: The approvedGitRepositories setting is overly permissive
because it uses a wildcard allowlist. Update the .yarnrc.yml configuration to
replace the generic "**" entry with only the specific repository URLs or
organization patterns that should be trusted, keeping the
approvedGitRepositories setting constrained to known sources.
- Line 10: Restore the npm freshness safeguard by changing the npmMinimalAgeGate
setting in the Yarn config to a non-zero value. Keep the existing configuration
structure intact and update only the npmMinimalAgeGate entry so the project
continues to block newly published packages unless this behavior is explicitly
intended.

In `@package.json`:
- Around line 9-10: The ci script currently invokes a bare install through yarn
workspaces foreach -A install, which runs each workspace’s install command
instead of performing dependency installation. Update the package.json scripts
entry for ci to remove that install step and leave only the intended workspace
CI execution via yarn workspaces foreach -A run ci, so the script no longer
relies on a no-op workspace command.

In `@packages/extension/cli/cli.ts`:
- Line 22: The CLI output in cli.ts is using Logger.log, but this module has no
Logger shim in Node and will fail at runtime with Logger undefined. Update the
logging in the CLI entrypoint to use a Node-safe logger such as console.log, or
introduce an explicit logger dependency that is defined in this runtime. Keep
the JSON payload for holdings and classifications unchanged while replacing the
logging call.

In `@packages/extension/src/background.ts`:
- Around line 12-15: The background service worker is using Logger, which is not
available in the extension runtime and can break listener registration at
startup. Update the logging in background.ts at the top-level startup code and
the related onInstalled handler, along with the other Logger call sites in the
same module, to use a browser-safe logger such as console.log or a shared
wrapper that is safe in extension contexts. Make sure the change is applied
consistently across the Background script’s logging points so the module can
load without runtime errors.

In `@packages/extension/src/config-form.ts`:
- Line 94: Replace the save-error logging in the config form with console.log
instead of Logger.log, since Logger is not available in this extension page and
causes a ReferenceError after the message is shown. Update the error-handling
path in config-form’s save flow to use console.log for msg, keeping the rest of
the save logic unchanged.

In `@packages/extension/src/content.ts`:
- Around line 108-111: `content.ts` is calling `Logger.log` even though `Logger`
is not available in the extension bundle, so the error path will fail at
runtime. Update the logging in the `classificationsErrors` handling block to use
a browser-safe logger such as `console.log` or `console.error` instead, and make
the same replacement for both `Logger` call sites in `content.ts`.
🪄 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

Run ID: ff018236-6627-48ad-ac21-4a8e9c4b237a

📥 Commits

Reviewing files that changed from the base of the PR and between 63a2563 and a79ea12.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (12)
  • .gitignore
  • .yarnrc.yml
  • package.json
  • packages/apps-script-sample/clasp-redeploy.sh
  • packages/apps-script-sample/package.json
  • packages/apps-script-sample/src/app.ts
  • packages/extension/cli/cli.ts
  • packages/extension/package.json
  • packages/extension/src/background.ts
  • packages/extension/src/config-form.ts
  • packages/extension/src/content.ts
  • packages/extension/tests/processing.test.ts

Comment thread .gitignore
Comment thread .yarnrc.yml Outdated
Comment thread .yarnrc.yml Outdated
Comment thread package.json Outdated
Comment thread packages/extension/cli/cli.ts Outdated
Comment thread packages/extension/src/background.ts Outdated
Comment thread packages/extension/src/config-form.ts Outdated
Comment thread packages/extension/src/content.ts Outdated
@thromer
thromer merged commit 53bb346 into main Jul 4, 2026
8 checks passed
@thromer
thromer deleted the misc branch July 4, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant