Skip to content

Feature/demo/mochi#154

Merged
rotarymars merged 24 commits into
mainfrom
feature/demo/mochi
Apr 5, 2026
Merged

Feature/demo/mochi#154
rotarymars merged 24 commits into
mainfrom
feature/demo/mochi

Conversation

@mochi-k18
Copy link
Copy Markdown
Contributor

@mochi-k18 mochi-k18 commented Mar 25, 2026

Description

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation update
  • 🎨 Style/UI change
  • ♻️ Refactor (no functional changes)
  • 🔧 Configuration change

Changes Made

Testing

  • Tested locally with npm run dev
  • Build passes (npm run build)
  • Lint passes (npm run lint)

Screenshots (if applicable)

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code where necessary
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Related Issues

Summary by CodeRabbit

  • New Features
    • Added a new demo profile page with a styled layout showing avatar, name pills, title, and a main self-introduction (Japanese content) including hobbies, strengths, and programming experience.
    • Added an entry link to access the new demo.
    • New visual styles: diagonal gradient background, rounded avatar crop, pill-like labels, spacing layout, and a max-width content container.
  • Chores
    • External GitHub link opens in a new tab.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kss-it-committee-github-io Ready Ready Preview, Comment Apr 1, 2026 2:39pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 25, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds a new demo page at /demo/mochi-k18 with associated styles and registers the demo link in the demo index. Includes a Next.js page component, two CSS files (global and CSS-module), and an avatar image usage.

Changes

Cohort / File(s) Summary
Demo CSS (global)
src/app/demo/mochi-k18/style.css
New global stylesheet: resets body margin, Japanese-friendly font stack, 135° gradient background, layout classes (.all, .top, .names), circular 120×120 .icon, and pill-style .name, .sub, .title, .main.
Demo CSS (module)
src/app/demo/mochi-k18/style.module.css
New CSS module mirroring layout and visual rules (body reset, gradient, .all, .top, .icon, .names, .name, .sub, .title, .main) for the page component.
Demo Link Registration
src/app/demo/page.tsx
Inserted a new demo link entry for /demo/mochi-k18 labeled mochi-k18; minor whitespace/newline adjustments.
Demo Page Component
src/app/demo/mochi-k18/page.tsx
Added MochiK180DemoPage default export: renders profile/self-introduction using next/image, applies CSS module classes, includes Japanese content and external GitHub link. Imports BackButton but does not use it.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

enhancement

Suggested reviewers

  • katsumata68
  • rotarymars
  • Aki603
  • SakaYq4875

Poem

🐰 I nibble code and sew a page,
A mochi portrait on the stage,
Rounded avatar, pills that gleam,
A gentle gradient and a dream ✨

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title "Feature/demo/mochi" is vague and uses a generic naming pattern without clearly describing the actual change; it does not convey what the demo does or what value it provides. Consider using a more descriptive title like "Add mochi-k18 demo page with profile styling" to clearly communicate the primary change to reviewers scanning the PR history.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/demo/mochi

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

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/app/demo/mochi-k18/page.html`:
- Line 1: The DOCTYPE declaration is misspelled; replace the incorrect
"<!DOCTIPE html>" with the correct "<!DOCTYPE html>" at the top of the document
(the page's HTML root declaration) so the browser recognizes standards mode;
update the first-line declaration in the page HTML file accordingly.
- Line 26: The external anchor element (<a href="https://github.com/mochi-k18"
target="_blank">githubアカウント</a>) should include rel="noopener noreferrer" to
prevent tabnabbing; update the <a> tag in src/app/demo/mochi-k18/page.html by
adding the rel attribute alongside target="_blank" so the link becomes safe when
opened in a new tab.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 008c0808-210f-4cb8-9427-992a3745b30e

📥 Commits

Reviewing files that changed from the base of the PR and between 6ad63af and e18283f.

⛔ Files ignored due to path filters (1)
  • src/app/demo/mochi-k18/image.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • src/app/demo/mochi-k18/page.html
  • src/app/demo/mochi-k18/style.css
  • src/app/demo/page.tsx

Comment thread src/app/demo/mochi-k18/page.html Outdated
Comment thread src/app/demo/mochi-k18/page.html Outdated
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@utsukushiioto0816-tech
Copy link
Copy Markdown
Contributor

ちょっとgithubアカウントのgだけに下線がかかっていないのが嫌だったので直しました

@rotarymars
Copy link
Copy Markdown
Member

今日中のレビューを目指しています。

@utsukushiioto0816-tech
Copy link
Copy Markdown
Contributor

とりあえずcssが反映されるようにしました。

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

♻️ Duplicate comments (2)
src/app/demo/mochi-k18/page.tsx (2)

11-11: ⚠️ Potential issue | 🟡 Minor

Use descriptive alt text instead of "picture".

Line 11 should describe the image subject for screen readers.

Proposed fix
-        <Image src={profileImage} className={styles.icon} alt="picture" width={40} height={40} />
+        <Image src={profileImage} className={styles.icon} alt="mochi-k18のプロフィール画像" width={40} height={40} />
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/app/demo/mochi-k18/page.tsx` at line 11, The Image element rendering
profileImage uses a non-descriptive alt ("picture"); update the alt on the Image
JSX (the Image component that uses profileImage and styles.icon) to a meaningful
description of the image content (e.g., "Profile photo of [subject]" or
"Portrait of Mochi") so screen readers convey the subject rather than a generic
term.

2-2: ⚠️ Potential issue | 🟠 Major

BackButton is still unused; either render it or remove the import.

Line 2 triggers lint warnings, and the page currently misses quick navigation back to /demo. If this page should match other demos, render it near the top.

Proposed fix
 export default function MochiK180DemoPage() {
     return (
     <div className={styles.all}>
+      <BackButton path="/demo" title="デモサイト一覧へ戻る" />
       <div className={styles.top}>

Also applies to: 8-10

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/app/demo/mochi-k18/page.tsx` at line 2, The BackButton import in page.tsx
is unused and causing lint warnings; either remove the import or render the
BackButton component near the top of the page so this demo matches others and
provides navigation back to /demo. Locate the BackButton symbol imported at the
top of src/app/demo/mochi-k18/page.tsx and either delete that import line or
insert the BackButton component into the page component's render output (near
the top of the component's JSX/TSX) so it appears as the quick navigation
control.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/app/demo/mochi-k18/page.tsx`:
- Line 12: The div uses a likely-typod CSS module key styles.ames which will be
undefined; open the component's CSS module that’s imported as styles, confirm
the intended exported class name (e.g., "ames", "frame", "wrapper" or similar),
and replace styles.ames in the JSX with the exact key from that CSS module (or
add the missing class to the CSS file). Also ensure you don't leave a bare
undefined by optionally wrapping with a safe fallback or using a classnames
helper if the class may be conditional.

---

Duplicate comments:
In `@src/app/demo/mochi-k18/page.tsx`:
- Line 11: The Image element rendering profileImage uses a non-descriptive alt
("picture"); update the alt on the Image JSX (the Image component that uses
profileImage and styles.icon) to a meaningful description of the image content
(e.g., "Profile photo of [subject]" or "Portrait of Mochi") so screen readers
convey the subject rather than a generic term.
- Line 2: The BackButton import in page.tsx is unused and causing lint warnings;
either remove the import or render the BackButton component near the top of the
page so this demo matches others and provides navigation back to /demo. Locate
the BackButton symbol imported at the top of src/app/demo/mochi-k18/page.tsx and
either delete that import line or insert the BackButton component into the page
component's render output (near the top of the component's JSX/TSX) so it
appears as the quick navigation control.
🪄 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: 39bbde21-1569-49e8-956d-709782a4cad0

📥 Commits

Reviewing files that changed from the base of the PR and between 96bcf10 and 513956b.

📒 Files selected for processing (2)
  • src/app/demo/mochi-k18/page.tsx
  • src/app/demo/mochi-k18/style.module.css
✅ Files skipped from review due to trivial changes (1)
  • src/app/demo/mochi-k18/style.module.css

Comment thread src/app/demo/mochi-k18/page.tsx Outdated
rotarymars
rotarymars previously approved these changes Mar 27, 2026
Copy link
Copy Markdown
Member

@rotarymars rotarymars left a comment

Choose a reason for hiding this comment

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

良さげです。+2人の承認でマージです。

SakaYq4875
SakaYq4875 previously approved these changes Mar 29, 2026
Copy link
Copy Markdown
Member

@SakaYq4875 SakaYq4875 left a comment

Choose a reason for hiding this comment

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

文字を白くして読みにくいですが、それは意図的なものですか?それ以外は良いと思います

あと1人

@rotarymars
Copy link
Copy Markdown
Member

文字を白くして読みにくいですが、それは意図的なものですか?それ以外は良いと思います

どこですか?

@SakaYq4875
Copy link
Copy Markdown
Member

どこですか?

image 最新のデプロイされたものによると上のような結果となりました。 これは、このCSSで色を指定していないためだと思われ、bodyにcolor:black;を追加すればいいのではないかと思います。

@rotarymars
Copy link
Copy Markdown
Member

IMG_1168

携帯しかないためその画面にはなりますがこうみると良いんですよね、
これってクライアント側のダークモードのプリファレンスに依存している感じですかね、?

@SakaYq4875
Copy link
Copy Markdown
Member

SakaYq4875 commented Mar 31, 2026

携帯しか...(中略)...ですかね、?

確かにそうかもしれません。僕の持っているパソコンもスマホもダークモードにしているので。
ただ、bodyにcolor:black;を明記することは大切だと思うので、変更しときます。

Copy link
Copy Markdown
Member

@SakaYq4875 SakaYq4875 left a comment

Choose a reason for hiding this comment

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

ダークモードの人もライトモードの人も同じ結果になるように調整

Comment thread src/app/demo/mochi-k18/style.module.css
Co-authored-by: SakaYq4875 <yoshihito.s44110@gmail.com>
@rotarymars rotarymars merged commit 38556da into main Apr 5, 2026
19 checks passed
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.

8 participants