tanishq2520/Algo-Visualizer

ux: Remove 'Generate frames' and trigger visualization on input

Open

#4 opened on Oct 12, 2025

 (1 comment) (0 reactions) (1 assignee)Python (10 forks)auto 404
help wantedrefactorstreamlitux

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

Description

The current workflow requires the user to input an array and then scroll down to a separate "Generate frames" button. This is inefficient. The visualization should be triggered directly from the input area.

Proposed Solution (using Streamlit Forms):

Wrap the st.text_input for the array and a new "Visualize!" button inside an st.form.

When the user either clicks the "Visualize!" button OR presses Enter after typing in the input field, the form will be submitted, and the frame generation logic should run.

This will completely remove the need for the old, separate "Generate frames" button, making the UI much cleaner.

Contributor guide