Skip to content

[MG_A1_00]: Initial-base-setup - #1

Merged
Vikas-phulriya-jtg merged 3 commits into
developfrom
MG_A1_00
Aug 3, 2026
Merged

[MG_A1_00]: Initial-base-setup#1
Vikas-phulriya-jtg merged 3 commits into
developfrom
MG_A1_00

Conversation

@manasgulatiJoshTech

@manasgulatiJoshTech manasgulatiJoshTech commented Jul 26, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • New Features
    • Added fully populated page content (navigation labels, CTAs, cards) plus supporting travel imagery.
    • Introduced a styling foundation: reset, typography tokens, color palette, light theme, breakpoint map, unit conversion utility, reusable layout mixins, and new UI components (button, card, icon, chip) with icon-font support.
  • Bug Fixes
    • Updated the page to load the compiled stylesheet from the correct location.
  • Chores
    • Reformatted pull-request validation and AI review configuration while keeping behavior unchanged.

@coderabbitai

coderabbitai Bot commented Jul 26, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds Sass design tokens, reusable utilities, resets, themes, components, icon-font data, structured public content, and WebP assets. It also updates the HTML stylesheet path and reformats two YAML files without changing their semantics.

Changes

Frontend setup and styling

Layer / File(s) Summary
Project configuration and validation
.coderabbit.yaml, .github/workflows/pr-check.yml
Configuration and workflow YAML are reformatted while preserving existing settings, triggers, validation patterns, and control flow.
Sass foundations
src/styles/scss/abstract/*, src/styles/scss/base/*, src/styles/scss/themes/*
Breakpoint, color, typography, conversion-function, mixin, reset, and light-theme definitions are introduced.
UI components and icon assets
src/styles/scss/components/*, src/styles/scss/vendors/*, src/Assets/Fonts/.../selection.json
Button, card, chip, icon, and IcoMoon styles are added alongside icon selection metadata and glyph mappings.
Public content and media
index.html, public/content.json, public/assets/images/*
The stylesheet link targets ./public/styles/main.css, structured page content is added, and WebP image assets are added or replaced.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 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.
Title check ✅ Passed The title clearly identifies the pull request as the initial base setup, which matches the primary configuration, styling, asset, and content changes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch MG_A1_00

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: 15


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: bd6b713e-ba36-46bf-b06d-169e7ba6828f

📥 Commits

Reviewing files that changed from the base of the PR and between 2b400af and 08499b1.

⛔ Files ignored due to path filters (22)
  • package-lock.json is excluded by !**/package-lock.json, !package-lock.json
  • public/assets/fonts/icomoon.eot is excluded by !**/*.eot
  • public/assets/fonts/icomoon.svg is excluded by !**/*.svg
  • public/assets/fonts/icomoon.ttf is excluded by !**/*.ttf
  • public/assets/fonts/icomoon.woff is excluded by !**/*.woff
  • public/assets/images/Group 3.svg is excluded by !**/*.svg
  • public/assets/images/airbnb.png is excluded by !**/*.png
  • public/assets/images/booking.png is excluded by !**/*.png
  • public/assets/images/carousel.png is excluded by !**/*.png
  • public/assets/images/city.jpg is excluded by !**/*.jpg
  • public/assets/images/expedia.png is excluded by !**/*.png
  • public/assets/images/globe.png is excluded by !**/*.png
  • public/assets/images/logo.svg is excluded by !**/*.svg
  • public/assets/images/mountain.jpg is excluded by !**/*.jpg
  • public/assets/images/object.svg is excluded by !**/*.svg
  • public/assets/images/ocean.jpg is excluded by !**/*.jpg
  • public/assets/images/orbitz.png is excluded by !**/*.png
  • public/assets/images/star.svg is excluded by !**/*.svg
  • public/assets/images/travel-point.png is excluded by !**/*.png
  • public/assets/images/triangles.png is excluded by !**/*.png
  • public/assets/images/tripadvisor.png is excluded by !**/*.png
  • public/assets/images/user.jpg is excluded by !**/*.jpg
📒 Files selected for processing (20)
  • .coderabbit.yaml
  • .github/workflows/pr-check.yml
  • index.html
  • package.json
  • public/assets/fonts/selection.json
  • public/content.json
  • public/styles/main.css
  • src/styles/main.scss
  • src/styles/scss/abstract/_breakpoint.scss
  • src/styles/scss/abstract/_color.scss
  • src/styles/scss/abstract/_function.scss
  • src/styles/scss/abstract/_mixin.scss
  • src/styles/scss/base/_reset.scss
  • src/styles/scss/base/_typography.scss
  • src/styles/scss/components/_button.scss
  • src/styles/scss/components/_cards.scss
  • src/styles/scss/components/_floater.scss
  • src/styles/scss/components/_icon.scss
  • src/styles/scss/themes/_light.scss
  • src/styles/scss/vendors/_icomoon.scss
💤 Files with no reviewable changes (1)
  • src/styles/main.scss

Comment on lines +15 to +18
- name: Checkout (full history for commit range)
uses: actions/checkout@v4
with:
fetch-depth: 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== workflow file =="
cat -n .github/workflows/pr-check.yml | sed -n '1,80p'

echo
echo "== all checkout refs in workflows =="
rg -n "actions/checkout|persist-credentials|fetch-depth" .github/workflows || true

echo
echo "== diff stat/name-status =="
git diff --stat || true
git diff --name-status || true

Repository: jtg-inductions-fe/FE-Assignment-1-Manas-Gulati-UID00782-2026

Length of output: 3868


🌐 Web query:

actions/checkout v4 persist-credentials default true token local git config README

💡 Result:

In actions/checkout v4, the persist-credentials input has a default value of true [1][2][3]. When set to true, actions/checkout configures the repository's local git configuration to include an authentication token (typically the GITHUB_TOKEN) [4][5][6]. This is implemented by adding an http.{host}.extraheader configuration to the local.git/config file, which includes the authorization information [5][6]. This mechanism allows subsequent steps in the same job to execute authenticated git commands without needing to manually re-configure credentials [4][3][6]. If you set persist-credentials to false, this configuration step is skipped, and no authentication information is persisted in the local git config [5][6]. This is often recommended as a security best practice to reduce the risk of credential leakage if the workspace (including the.git directory) is uploaded as an artifact or accessed by malicious processes [6]. Note that setting this to false will prevent downstream git commands from using the automatically configured token, which may interfere with tools like gh auth setup-git that expect to manage their own credentials [5].

Citations:


Pin checkout to a commit SHA and disable credential persistence.

actions/checkout@v4 is tag-pinned, so the target can change. Also, checkout persists the workflow token in local Git config by default, which leaves credentials available to later steps. Pin a reviewed full SHA and add persist-credentials: false if the workflow only needs read-only checkout access.

🧰 Tools
🪛 zizmor (1.26.1)

[warning] 15-18: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[error] 16-16: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

Source: Linters/SAST tools

Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread public/content.json
Comment thread src/styles/scss/abstract/_function.scss Outdated
Comment thread src/styles/scss/base/_typography.scss
Comment thread src/styles/scss/components/_cards.scss
Comment thread src/styles/scss/components/_floater.scss Outdated
Comment thread src/styles/scss/themes/_light.scss Outdated
Comment thread src/styles/scss/vendors/_icomoon.scss Outdated
Comment thread public/assets/fonts/icomoon.svg Outdated
Comment thread src/Assets/Fonts/Icomoon backup/selection.json
Comment thread public/assets/fonts/icomoon.ttf Outdated
Comment thread public/assets/images/airbnb.png Outdated
Comment thread src/styles/scss/abstract/_breakpoint.scss Outdated
Comment thread src/styles/scss/themes/_light.scss Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated

@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: 7

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
src/styles/scss/abstract/_function.scss (1)

3-9: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Align doc-comment style with the rest of the codebase.

This uses a manual /* @name/@param/@return */ block, while _mixin.scss uses SassDoc /// triple-slash comments. SassDoc tooling only parses /// comments, so this block won't be picked up consistently. As per path instructions, ensure "proper SCSS mixins usage and standard SASS documentation/comments."

Source: Path instructions

src/styles/scss/vendors/_icomoon.scss (1)

17-17: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Font-family value still quoted — Stylelint fix only partially applied.

Line 2 was already fixed to drop the quotes around icomoon, but Line 17 still has 'icomoon', which will re-trigger the same font-family-name-quotes lint failure previously flagged.

Source: Linters/SAST tools

♻️ Duplicate comments (2)
src/styles/scss/base/_typography.scss (2)

1-7: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Address the //need to import fonts TODO.

$font-family-primary ('Circular Std') and $font-family-secondary (Inter) are referenced throughout the typography maps, but no @font-face/font-loading exists yet, so they'll render with fallback fonts until this is wired up.
Want me to draft the @font-face declarations or open a tracking issue for this?


26-85: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Typography presets use a single fixed font-size with no breakpoint variation.

None of $main-heading-*, $sub-heading-*, $subtitle-1, or $nav-link-* vary by screen size, so headings will render identically on mobile and desktop despite mixin.responsiveUp existing specifically to support size-adaptive behavior. Consider expressing per-breakpoint overrides (e.g., via nested maps or responsiveUp calls in the consuming component) so heading scale actually adapts across breakpoints.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b40ad890-8582-4b30-8073-4cca9e6f862b

📥 Commits

Reviewing files that changed from the base of the PR and between 08499b1 and eefc1d6.

📒 Files selected for processing (27)
  • public/assets/images/Ellipse 23.webp
  • public/assets/images/Group 3.webp
  • public/assets/images/airbnb.webp
  • public/assets/images/booking.webp
  • public/assets/images/carousel.webp
  • public/assets/images/city.webp
  • public/assets/images/expedia.webp
  • public/assets/images/globe.webp
  • public/assets/images/logo.webp
  • public/assets/images/mountain.webp
  • public/assets/images/object.webp
  • public/assets/images/ocean.webp
  • public/assets/images/orbitz.webp
  • public/assets/images/plane.webp
  • public/assets/images/star.webp
  • public/assets/images/travel-point.webp
  • public/assets/images/triangles.webp
  • public/assets/images/tripadvisor.webp
  • public/assets/images/user.webp
  • src/Assets/Fonts/Icomoon backup/selection.json
  • src/styles/scss/abstract/_breakpoint.scss
  • src/styles/scss/abstract/_function.scss
  • src/styles/scss/abstract/_mixin.scss
  • src/styles/scss/base/_typography.scss
  • src/styles/scss/components/_cards.scss
  • src/styles/scss/components/_chip.scss
  • src/styles/scss/vendors/_icomoon.scss

Comment thread src/styles/scss/abstract/_function.scss
Comment thread src/styles/scss/abstract/_mixin.scss Outdated
Comment thread src/styles/scss/abstract/_mixin.scss Outdated
Comment thread src/styles/scss/base/_typography.scss
Comment thread src/styles/scss/components/_cards.scss Outdated
Comment thread src/styles/scss/components/_cards.scss
Comment thread src/styles/scss/components/_chip.scss

@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: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
src/styles/scss/abstract/_function.scss (2)

3-9: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use valid SassDoc for px-to-rem.

The parameter and return annotations use malformed spacing and nonstandard formatting, so the helper contract is not reliably documented or parsed.

As per path instructions, SCSS files must use proper SCSS mixins and standard SASS documentation/comments.

Source: Path instructions


11-16: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Normalize or constrain the $base unit.

The function strips units from $pixel but not $base. Since the documentation references 16px, passing a unit-bearing base can produce an invalid compound rem/px result and fail Sass compilation. Keep the base contract consistent with the implementation.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 7ae01a2a-5f5b-4137-8aad-e66de85e4546

📥 Commits

Reviewing files that changed from the base of the PR and between eefc1d6 and 9128371.

📒 Files selected for processing (7)
  • src/styles/scss/abstract/_function.scss
  • src/styles/scss/abstract/_mixin.scss
  • src/styles/scss/base/_typography.scss
  • src/styles/scss/components/_button.scss
  • src/styles/scss/components/_cards.scss
  • src/styles/scss/components/_icon.scss
  • src/styles/scss/themes/_light.scss
💤 Files with no reviewable changes (1)
  • src/styles/scss/base/_typography.scss

Comment thread src/styles/scss/abstract/_mixin.scss Outdated
Comment thread src/styles/scss/components/_icon.scss
Comment thread src/styles/scss/components/_icon.scss
Comment thread src/styles/scss/components/_icon.scss
@manasgulatiJoshTech
manasgulatiJoshTech changed the base branch from main to develop July 31, 2026 08:51
@Vikas-phulriya-jtg
Vikas-phulriya-jtg merged commit 76f735b into develop Aug 3, 2026
3 checks passed
@Vikas-phulriya-jtg
Vikas-phulriya-jtg deleted the MG_A1_00 branch August 3, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants