Skip to content

Update REMOTE_SETTINGS_URL to new GitHub link#2136

Closed
hardyjosh wants to merge 3 commits intomainfrom
2025-09-08-new-settings
Closed

Update REMOTE_SETTINGS_URL to new GitHub link#2136
hardyjosh wants to merge 3 commits intomainfrom
2025-09-08-new-settings

Conversation

@hardyjosh
Copy link
Copy Markdown
Contributor

@hardyjosh hardyjosh commented Sep 8, 2025

Motivation

Solution

Checks

By submitting this for review, I'm confirming I've done the following:

  • made this PR as small as possible
  • unit-tested any new functionality
  • linked any relevant issues or PRs
  • included screenshots (if this involves a front-end change)

Summary by CodeRabbit

  • Chores
    • Updated the remote configuration reference to a newer version of the app settings.
    • The application will load the latest configuration on startup; some configuration-driven behaviors or defaults may change accordingly.
    • No changes to the user interface or interaction flow.
    • Performance, loading behavior, and error handling remain the same.
    • Rollout is transparent; no user action required.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Sep 8, 2025

Walkthrough

Updated the REMOTE_SETTINGS_URL in packages/webapp/src/routes/+layout.ts to point to a new commit of the remote settings.yaml. No other code, control flow, or exports changed.

Changes

Cohort / File(s) Summary of changes
Settings URL update
packages/webapp/src/routes/+layout.ts
Changed REMOTE_SETTINGS_URL to reference a different commit of rain.strategies settings.yaml; fetch/load logic unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • findolor

Pre-merge checks (2 passed, 1 warning)

❌ Failed Checks (1 warning)
Check Name Status Explanation Resolution
Description Check ⚠️ Warning The pull request description only includes an unfilled template with empty Motivation and Solution sections and unchecked checkboxes, offering no context or rationale for the change. Fill out the Motivation and Solution sections with the reasons for updating the URL and how it resolves the issue, complete the checklist items, and consider adding a PR template to the repository to ensure future descriptions are informative.
✅ Passed Checks (2 passed)
Check Name Status Explanation
Title Check ✅ Passed The title succinctly captures the main change—updating the REMOTE_SETTINGS_URL to point to a new GitHub link—providing clear and specific context without unnecessary detail.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c2e080f and 32de5b1.

📒 Files selected for processing (1)
  • packages/webapp/src/routes/+layout.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
packages/webapp/**/*.{svelte,ts,js}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

packages/webapp/**/*.{svelte,ts,js}: Webapp: build with npm run build -w @rainlanguage/webapp
Webapp: lint/format check with npm run svelte-lint-format-check -w @rainlanguage/webapp
Webapp: run tests with npm run test -w @rainlanguage/webapp

Files:

  • packages/webapp/src/routes/+layout.ts
packages/{webapp,ui-components}/**/*.{svelte,ts,js,css,scss}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Frontend changes must include a screenshot of the built webapp after npm run build && npm run preview

Files:

  • packages/webapp/src/routes/+layout.ts
🧠 Learnings (1)
📚 Learning: 2025-05-13T10:19:19.558Z
Learnt from: hardingjam
PR: rainlanguage/rain.orderbook#1785
File: packages/webapp/src/routes/+layout.ts:22-22
Timestamp: 2025-05-13T10:19:19.558Z
Learning: Making the settings URL configurable via environment variables was considered out of scope for PR #1785, which focused specifically on adding error handling for config fetching.

Applied to files:

  • packages/webapp/src/routes/+layout.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (17)
  • GitHub Check: standard-tests (ubuntu-latest, rainix-sol-legal)
  • GitHub Check: standard-tests (ubuntu-latest, test-js-bindings)
  • GitHub Check: standard-tests (ubuntu-latest, rainix-wasm-test)
  • GitHub Check: standard-tests (ubuntu-latest, rainix-wasm-artifacts)
  • GitHub Check: standard-tests (ubuntu-latest, ob-rs-test, true)
  • GitHub Check: test
  • GitHub Check: standard-tests (ubuntu-latest, rainix-sol-artifacts)
  • GitHub Check: standard-tests (ubuntu-latest, rainix-sol-test)
  • GitHub Check: standard-tests (ubuntu-latest, rainix-rs-static)
  • GitHub Check: standard-tests (ubuntu-latest, rainix-rs-artifacts, true)
  • GitHub Check: standard-tests (ubuntu-latest, rainix-sol-static)
  • GitHub Check: build-tauri (ubuntu-22.04, true)
  • GitHub Check: git-clean
  • GitHub Check: test
  • GitHub Check: test
  • GitHub Check: Deploy-Preview-Push
  • GitHub Check: Deploy-Docs-Preview
🔇 Additional comments (2)
packages/webapp/src/routes/+layout.ts (2)

13-14: Pin update LGTM

REMOTE_SETTINGS_URL now points to commit d70f134…; deterministic and scoped change.


13-14: Settings URL validated; complete repo checks and attach preview screenshot

  • REMOTE_SETTINGS_URL returns HTTP 200.
  • Run npm run svelte-lint-format-check -w @rainlanguage/webapp, npm run test -w @rainlanguage/webapp and npm run build -w @rainlanguage/webapp.
  • Per frontend guidelines, include a screenshot from npm run preview after the build.
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 2025-09-08-new-settings

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

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c2e080f and ecb4cc2.

📒 Files selected for processing (1)
  • packages/webapp/src/routes/+layout.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
packages/webapp/**/*.{svelte,ts,js}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

packages/webapp/**/*.{svelte,ts,js}: Webapp: build with npm run build -w @rainlanguage/webapp
Webapp: lint/format check with npm run svelte-lint-format-check -w @rainlanguage/webapp
Webapp: run tests with npm run test -w @rainlanguage/webapp

Files:

  • packages/webapp/src/routes/+layout.ts
packages/{webapp,ui-components}/**/*.{svelte,ts,js,css,scss}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Frontend changes must include a screenshot of the built webapp after npm run build && npm run preview

Files:

  • packages/webapp/src/routes/+layout.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: test
  • GitHub Check: standard-tests (ubuntu-latest, rainix-rs-artifacts, true)
  • GitHub Check: standard-tests (ubuntu-latest, test-js-bindings)
  • GitHub Check: Deploy-Docs-Preview
  • GitHub Check: Deploy-Preview-Push
🔇 Additional comments (1)
packages/webapp/src/routes/+layout.ts (1)

13-14: REMOTE_SETTINGS_URL update validated
Only occurrence of REMOTE_SETTINGS_URL in packages/webapp/src/routes/+layout.ts has been updated to the new commit hash; the URL returns HTTP 200 and valid YAML.

  • Attach a screenshot of the built webapp after running
    npm run build -w @rainlanguage/webapp && npm run preview -w @rainlanguage/webapp
  • Run lint/format and tests:
    npm run svelte-lint-format-check -w @rainlanguage/webapp && npm run test -w @rainlanguage/webapp

Comment thread packages/webapp/src/routes/+layout.ts Outdated
Comment on lines +13 to +14
const REMOTE_SETTINGS_URL =
'https://raw.githubusercontent.com/rainlanguage/rain.strategies/4a91fbafccac4e791ec3fedec0b92eff7a3d4f7e/settings.yaml';
'https://raw.githubusercontent.com/rainlanguage/rain.strategies/862204110de94375dfcef25efceb62a991619dda/settings.yaml';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Make the remote settings URL configurable via env with a pinned fallback

Pinning to a commit is good for determinism, but require-less deploys would benefit from an env override (staging/prod toggles, emergency rollbacks) without code changes.

Apply this diff within these lines:

-const REMOTE_SETTINGS_URL =
-  'https://raw.githubusercontent.com/rainlanguage/rain.strategies/862204110de94375dfcef25efceb62a991619dda/settings.yaml';
+const REMOTE_SETTINGS_URL =
+  PUBLIC_ENV.PUBLIC_REMOTE_SETTINGS_URL ??
+  'https://raw.githubusercontent.com/rainlanguage/rain.strategies/862204110de94375dfcef25efceb62a991619dda/settings.yaml';

And add this import (outside the selected lines):

import { env as PUBLIC_ENV } from '$env/dynamic/public';
🤖 Prompt for AI Agents
In packages/webapp/src/routes/+layout.ts around lines 13-14, replace the
hard-coded pinned REMOTE_SETTINGS_URL with a value read from the public env
import and fallback to the current pinned URL: add the import "import { env as
PUBLIC_ENV } from '$env/dynamic/public';" (outside the edited lines) and change
the const to use PUBLIC_ENV.PUBLIC_REMOTE_SETTINGS_URL ?? '<current pinned
URL>'; this lets runtime override via PUBLIC_REMOTE_SETTINGS_URL while
preserving the pinned commit as fallback.

@hardyjosh hardyjosh closed this Sep 16, 2025
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