Adjustments to .anvil_editor.yaml
New forms for creating ballots have been added (forms.routes.ballot.Create). The order of forms.routes.ballot.Index and forms.routes.ballot.Read has been altered for better usage flow.
Removal of unused files and code
Certain Python files and form templates used for ballot creation (client_code/forms/routes/ballot/Create/Candidate/__init__.py and client_code/forms/routes/ballot/Create/Candidate/form_template.yaml) have been deleted to enhance code cleanliness.
Code cleanup in ballot creation
Within the ballot creation file (client_code/forms/routes/ballot/Create/__init__.py), unused import and functions have been removed, promoting more efficient code.
Form template modification
The ballot creation form template (client_code/forms/routes/ballot/Create/form_template.yaml) has been adjusted. Component sizes have been changed, and several components including label_4, flow_panel_2, add_candidate_button, and tabulator have been removed for an easier-to-use interface.
Styling changes in ballot reading form
The ballot reading form (client_code/forms/routes/ballot/Read/form_template.yaml) has experienced minor styling adjustments to improve visual aesthetics.
Updates to Ballot class
The Ballot class in client_code/model.py now includes a candidate_group_id attribute, aiding in better group identification.
Code improvements in storage services
Debugging print statements have been removed from client_code/services/storage.py for cleaner output. The candidate_group_id is now included when a ballot is registered, providing more detailed information.
PR Summary
Adjustments to .anvil_editor.yaml New forms for creating ballots have been added (
forms.routes.ballot.Create
). The order offorms.routes.ballot.Index
andforms.routes.ballot.Read
has been altered for better usage flow.Removal of unused files and code Certain Python files and form templates used for ballot creation (
client_code/forms/routes/ballot/Create/Candidate/__init__.py
andclient_code/forms/routes/ballot/Create/Candidate/form_template.yaml
) have been deleted to enhance code cleanliness.Code cleanup in ballot creation Within the ballot creation file (
client_code/forms/routes/ballot/Create/__init__.py
), unused import and functions have been removed, promoting more efficient code.Form template modification The ballot creation form template (
client_code/forms/routes/ballot/Create/form_template.yaml
) has been adjusted. Component sizes have been changed, and several components includinglabel_4
,flow_panel_2
,add_candidate_button
, andtabulator
have been removed for an easier-to-use interface.Styling changes in ballot reading form The ballot reading form (
client_code/forms/routes/ballot/Read/form_template.yaml
) has experienced minor styling adjustments to improve visual aesthetics.Updates to Ballot class The
Ballot
class inclient_code/model.py
now includes acandidate_group_id
attribute, aiding in better group identification.Code improvements in storage services Debugging print statements have been removed from
client_code/services/storage.py
for cleaner output. Thecandidate_group_id
is now included when aballot
is registered, providing more detailed information.