-
Notifications
You must be signed in to change notification settings - Fork 75
Sassの警告が出てしまう問題とトップページのメインビジュアルの画像が表示されない問題を修正 #9340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughJavaScriptパックから画像インポートと関連のCSS変数設定を削除し、Sassのビルド周りをsass-embeddedへ移行するためwebpack設定とSass関連パッケージを更新。スタイルシート側でルートの背景画像変数を追加。 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ 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). (1)
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. Comment |
There was a problem hiding this 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
🧹 Nitpick comments (1)
config/webpack/webpack.config.js (1)
27-32: 非推奨警告の抑制は一時的な対応として妥当ですが、将来的な対応が必要です。4つの非推奨警告(
legacy-js-api、import、global-builtin、color-functions)を抑制していますが、これはSass 1.83への移行時の一時的な対応として理解できます。ただし、特に以下の項目は将来的にコードを更新すべきです:
import:@importを@use/@forwardに移行global-builtin: ビルトイン関数を名前空間付きで使用color-functions: 新しいcolor関数構文に移行これらの非推奨機能の使用箇所を追跡するため、issueを作成しますか?または、使用箇所を検索するスクリプトを生成できます。
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (5)
public/icon.pngis excluded by!**/*.pngpublic/icon.svgis excluded by!**/*.svgpublic/images/background/people.pngis excluded by!**/*.pngpublic/images/background/people.svgis excluded by!**/*.svgyarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (4)
app/javascript/packs/lp.js(0 hunks)app/javascript/stylesheets/lp/base/_base.sass(1 hunks)config/webpack/webpack.config.js(1 hunks)package.json(1 hunks)
💤 Files with no reviewable changes (1)
- app/javascript/packs/lp.js
🧰 Additional context used
📓 Path-based instructions (2)
config/**
📄 CodeRabbit inference engine (AGENTS.md)
Configuration files in
config/should include environment settings, routes, and lints (.rubocop.yml,config/slim_lint.yml)
Files:
config/webpack/webpack.config.js
**/*.js
⚙️ CodeRabbit configuration file
**/*.js: - どうしても避けられない時以外に新規にVue.js, Reactのコードを追加しない。
- fetchメソッドの代わりにrequest.jsを使う。
Files:
config/webpack/webpack.config.js
🧠 Learnings (2)
📓 Common learnings
Learnt from: komagata
Repo: fjordllc/bootcamp PR: 9101
File: app/notifiers/discord_notifier.rb:131-135
Timestamp: 2025-09-12T21:18:00.834Z
Learning: Rails アップグレードPRにおいて、product_review_not_completed メソッドの webhook URL 設定の shared フォールバック追加も、設定システム全体の変更として別PRで対応すべきである。
Learnt from: Miya096jp
Repo: fjordllc/bootcamp PR: 9102
File: app/controllers/mentor/buzzes_controller.rb:0-0
Timestamp: 2025-09-04T01:39:22.261Z
Learning: fjordllc/bootcamp プロジェクトでは、更新処理の成功時の通知メッセージについて、I18n を使用せずに日本語文字列を直接記述する方針で一貫性を保っている。
Learnt from: jun-kondo
Repo: fjordllc/bootcamp PR: 0
File: :0-0
Timestamp: 2025-07-23T20:42:19.974Z
Learning: fjordllc/bootcampプロジェクトでは、hタグ(見出し)の文言は日本語でハードコーディングする方針が確立されており、I18n対応は行わない。例:app/views/welcome/logo.html.slimでh2、h3タグが日本語でハードコーディングされている。
📚 Learning: 2025-11-26T08:23:30.927Z
Learnt from: CR
Repo: fjordllc/bootcamp PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-26T08:23:30.927Z
Learning: Applies to app/javascript/**/*.{js,ts,jsx,tsx} : JavaScript/TypeScript code in `app/javascript/` should be linted with ESLint and formatted with Prettier via `yarn lint` scripts; use React 17 and Shakapacker/Webpack 5
Applied to files:
package.jsonconfig/webpack/webpack.config.js
⏰ 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). (1)
- GitHub Check: build_and_test
🔇 Additional comments (3)
app/javascript/stylesheets/lp/base/_base.sass (1)
20-24: LGTM!レスポンシブ対応のスタイリング変更は適切に実装されています。
text-blockミックスインの使用とメディアクエリによるブレークポイント処理が正しく行われています。Also applies to: 26-49, 58-59
package.json (1)
66-68: No known security vulnerabilities found in the specified Sass package versions.[email protected], [email protected], and [email protected] have no reported CVEs or security advisories. These versions are current (released Jan–Dec 2024) and well-maintained. While sass-loader's version bump (13.x → 14.x) represents a major release, no compatibility conflicts are evident from current security and stability information.
config/webpack/webpack.config.js (1)
3-3: sass-embeddedとmodern APIの統合実装は適切です。すべてのsass-loaderインスタンスを検出してsass-embeddedを設定するアプローチは完全で、依存関係も正しく宣言されています(sass-embedded@^1.83.0、sass-loader@^14.2.1)。deprecation警告の事前制御も適切に実装されています。
Likely an incorrect or invalid review comment.
Summary by CodeRabbit
リリースノート
スタイル
チョア
リファクタ
✏️ Tip: You can customize this high-level summary in your review settings.