-
Notifications
You must be signed in to change notification settings - Fork 4
add and delete sections #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add and delete sections #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds functionality to add and delete sections in the web viewer interface. It introduces UI controls for managing sections dynamically, including an autocomplete field for adding new sections and a delete button for removing existing ones.
- Adds a new top row layout with edit mode switch and section addition controls
- Implements backend handlers for adding and deleting sections with proper state management
- Updates the section dropdown visibility logic to handle cases where main and selected sections differ
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/fourc_webviewer/gui_utils.py | Adds _top_row function with add section controls, moves edit mode switch, adds delete section button, and updates dropdown visibility logic |
| src/fourc_webviewer/fourc_webserver.py | Implements click_delete_section_button and change_add_section handlers with state initialization for the add section feature |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
dragos-ana
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I added some suggestions, feel free to ask if something is unclear
b0f7dba to
60b6483
Compare
bf97e4f to
deaf3c9
Compare
No description provided.