Skip to content

Modernize the demo + fix some important issues - #25

Merged
krjakbrjak merged 19 commits into
masterfrom
VNI-modernize
Aug 7, 2026
Merged

Modernize the demo + fix some important issues#25
krjakbrjak merged 19 commits into
masterfrom
VNI-modernize

Conversation

@krjakbrjak

Copy link
Copy Markdown
Owner

No description provided.

Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
* Replaces webpack with vite in library mode
* jest becomes vitest, and typescript moves to 7
* The eslint setup is replaced by oxlint. typescript-eslint does not
  support typescript 7
* react-bootstrap is now external rather than bundled.
* The babel toolchain, the testing-library packages and sinon are removed
  as unused
* Prettier is added, which accounts for the reformatting across src.

Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
VirtualTable tracked the selected row internally and never exposed it, so
consumers could only infer a selection from a handler inside their own
rendered item. That misses rows clicked before their page has loaded: the
row highlights, but the skeleton carries neither item nor index.

Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
That ensures that there is no division by 0.

Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
The scrollbar came from a full-size div layered over the rows, so it
swallowed every pointer event: content inside a row could not be clicked,
text could not be selected, and the row under the cursor had to be worked
out from clientY and a click synthesised onto it.

The rows now live inside the scroll container, positioned within a spacer
the height of the whole collection.

Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
@krjakbrjak
krjakbrjak merged commit 1be0745 into master Aug 7, 2026
1 check passed
@krjakbrjak
krjakbrjak deleted the VNI-modernize branch August 7, 2026 12:49
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.

1 participant