luckyframework / luckyframework/lucky

Restore scroll position after crystal build reloads

Open Beginner friendly
#2,039 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Crystal
Stars
2.7k
Forks
172
PR merge metrics
No merged PRs in 30d

Description

The reload script for Bun restores the previous scroll position after a full reload, but Lucky's reload script does not. It's just a few lines of code to add that and it's a nice QOL improvement.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/lucky/tags/bun_reload_tag.cr at lines 19-23 to understand how the Bun reload script restores scroll position, then locate Lucky's corresponding reload script. Add equivalent scroll restoration and verify that a full reload preserves the previous scroll position.

Written by the indexing model from the issue text.

Assessment

Tech stack
crystal
Domain
web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.