Skip to content

fix: resolve duplicate and incorrect numbering in student profile rep…#1457

Open
Premshaw23 wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
Premshaw23:fix/student-profile-repeater-indexing
Open

fix: resolve duplicate and incorrect numbering in student profile rep…#1457
Premshaw23 wants to merge 1 commit into
SAPTARSHI-coder:mainfrom
Premshaw23:fix/student-profile-repeater-indexing

Conversation

@Premshaw23
Copy link
Copy Markdown
Contributor

Pull Request Description

This PR resolves the visual indexing bug in the student profile repeater by:

Introducing a helper function reindexBlocks(container, labelPrefix) that iterates through all remaining block cards in the section container.
Dynamically updating their data-index attributes and updating the block header texts (e.g. Project #1, Project #2) to maintain continuous and accurate numbering.
Calling reindexBlocks immediately upon the completion of a block deletion transition.
This fixes visual duplicate numbering while maintaining all user inputs intact since we only modify attributes and text headers of the existing DOM nodes.

closes #1456


Type of Change

  • ✨ New animation / hover effect
  • 🧩 New component
  • 📝 Documentation improvement
  • 🐛 Bug fix in an existing submission
  • Other (describe below)

Submission Checklist

⚠️ PRs that fail this checklist will be closed without review.

  • All changes are inside submissions/examples/your-feature-name/
  • Includes demo.html — self-contained, opens in browser with no server
  • Includes style.css — raw CSS for the proposed feature
  • Includes README.md — what it does, how to use it, why it fits EaseMotion CSS
  • No changes to core/
  • No changes to components/
  • One feature per PR (no bundled unrelated changes)

Feature Description

What does this add?

How does a developer use it?

<!-- Show the class usage in HTML -->

Why does it fit EaseMotion CSS?


Demo

  • Demo added (demo.html works by opening directly in a browser)

Browser Testing

  • Chrome
  • Firefox
  • Edge
  • Safari (optional but appreciated)

Notes for Maintainer


Reminder: Only the repository maintainer may merge pull requests.
Do not self-merge, even if you have write access.
Maximum 2 active assigned issues per contributor — unassign extras before opening a PR.

Copilot AI review requested due to automatic review settings June 5, 2026 08:01
Copy link
Copy Markdown

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

✅ Submission Validation Passed!

Great job! All required files are present.

📁 Folder: submissions/examples/student-profile-repeater

Files found:

  • demo.html
  • style.css
  • README.md

🚀 Next Steps:

  • The maintainer will review your PR
  • Respond to any feedback if requested
  • Once approved, your contribution will be merged!

Thank you for contributing to EaseMotion CSS! 🎉

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.

Inconsistent and Duplicate Card Numbering in Student Profile Repeater

2 participants