Skip to content

Conversation

nguyenntt97
Copy link
Contributor

No description provided.

@nguyenntt97 nguyenntt97 requested a review from Copilot May 9, 2025 03:53
@nguyenntt97 nguyenntt97 self-assigned this May 9, 2025
@nguyenntt97 nguyenntt97 merged commit 791fec2 into main May 9, 2025
2 checks passed
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR titled "Feat/ava" introduces several updates including style adjustments, header scroll behavior improvements, and updates to member data and portrait presentation.

  • Reduced portrait width for a potentially tighter layout
  • Added Japanese theme overrides in CSS and improved header scroll debouncing logic
  • Modified portrait markup and updated member data (names and badges)

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
_styles/portrait.scss Updated portrait width from 175px to 100px
_styles/-theme.scss Added a Japanese override block for typography variables
_scripts/anchors.js Enhanced scroll event handling and sticky header logic with debounce
_layouts/default.html Made HTML language attribute dynamic using site.lang
_includes/portrait.html Refactored portrait markup to change the clickable area for member names
_includes/header.html Updated header element classes
_data/members.yaml Updated member names and badges for consistency
Comments suppressed due to low confidence (1)

_data/members.yaml:41

  • [nitpick] Confirm that the updated member naming convention aligns with team standards and that any related references are updated accordingly.
- name: T.T. Nguyen NGUYEN -> + name: Nguyen NGUYEN

flex-direction: column;
margin: 20px;
width: 175px;
width: 100px;
Copy link

Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

[nitpick] Ensure the new width is intentional and consistent with the overall design requirements.

Suggested change
width: 100px;
width: var(--portrait-width, 100%);

Copilot uses AI. Check for mistakes.

Comment on lines +49 to +57
let dataBigTimeout;
window.addEventListener("scroll", () => {
const header = document.querySelector("header");
if (!header) return;
if (header.hasAttribute("data-big")) return;
header.classList.toggle("sticky", window.scrollY > 100);

const scrollY = window.scrollY;
// if at root
clearTimeout(dataBigTimeout);
dataBigTimeout = setTimeout(() => {
Copy link

Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using requestAnimationFrame for scroll event handling to achieve smoother UI updates.

Copilot uses AI. Check for mistakes.

Comment on lines +24 to 27
<div
class="portrait"
data-style="{{ include.style }}"
aria-label="{{ member.name | default: "member link" | regex_strip }}"
Copy link

Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

[nitpick] Review the removal of the wrapping anchor around the portrait image to ensure that the intended interactive area for users is preserved.

Suggested change
<div
class="portrait"
data-style="{{ include.style }}"
aria-label="{{ member.name | default: "member link" | regex_strip }}"
<a
class="portrait"
data-style="{{ include.style }}"
aria-label="{{ member.name | default: "member link" | regex_strip }}"
{% if member.url != nil %}
href="{{ member.url | relative_url | uri_escape }}"
{% endif %}

Copilot uses AI. Check for mistakes.

Copy link

github-actions bot commented May 9, 2025

PR Preview Action v1.4.7
🚀 Deployed preview to https://ais-lab.github.io/preview/pr-80/
on branch gh-pages at 2025-05-09 03:55 UTC

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.

2 participants