Skip to content

feat: add gnome sort visualization#5

Merged
gian-gg merged 1 commit intomainfrom
sort/gnome
Mar 7, 2026
Merged

feat: add gnome sort visualization#5
gian-gg merged 1 commit intomainfrom
sort/gnome

Conversation

@gian-gg
Copy link
Member

@gian-gg gian-gg commented Mar 7, 2026

Description

Adds Gnome Sort as a new implemented sorting algorithm and wires it into routing/navigation.

Summary of changes:

  • Added gnome-sort to the sorting algorithms list (positioned after counting-sort).
  • Added route handling for /algorithms/gnome-sort.
  • Implemented GnomeSortPage with:
    • frame-by-frame Gnome Sort animation logic
    • playback controls (play/pause/reset/randomize/step)
    • stats and algorithm details panel
    • sound integration consistent with existing sorting pages

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have checked that my commit message follows conventional commits

Preview

gnome-sort-preview.mov

@gian-gg gian-gg merged commit 6cf2de7 into main Mar 7, 2026
1 check passed
@gian-gg gian-gg deleted the sort/gnome branch March 7, 2026 16:12
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