Skip to content
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

Optimize address form layout to improve page length #9708

Closed
wants to merge 6 commits into from

Conversation

ghermans
Copy link
Contributor

Description

This pull request addresses the issue of long page length by rearranging the positions of form control groups. By doing so, we aim to improve the overall user experience and make the page more manageable.

Changes Made

  • Rearranged the positions of form control groups to optimize page length.
  • Ensured the logical flow and accessibility of form elements remain intact.

Screenshots

Add address

image

Edit form

image

How To Test This?

  1. Login as a customer
  2. Go to the account settings -> Addresses
  3. Add a new address and try to edit it.

@ghermans ghermans changed the title Improved address creation and edit form control groups positions Optimize address form layout to improve page length Apr 23, 2024
Comment on lines 34 to 36
<x-shop::form.control-group.control type="text" name="company_name" :value="old('company_name')"
:label="trans('shop::app.customers.account.addresses.company-name')"
:placeholder="trans('shop::app.customers.account.addresses.company-name')" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break attributes into multiple lines

Comment on lines 49 to 51
<x-shop::form.control-group.control type="text" name="vat_id" :value="old('vat_id')"
:label="trans('shop::app.customers.account.addresses.vat-id')"
:placeholder="trans('shop::app.customers.account.addresses.vat-id')" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break attributes into multiple lines

Comment on lines 166 to 167
<x-shop::form.control-group.control type="text" name="postcode"
rules="{{ core()->isPostCodeRequired() ? 'required' : '' }}|numeric" :value="old('postcode')"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break attributes into multiple lines

Comment on lines 185 to 187
rules="{{ core()->isCountryRequired() ? 'required' : '' }}" v-model="country"
aria-label="trans('shop::app.customers.account.addresses.country')"
:label="trans('shop::app.customers.account.addresses.country')">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break attributes into multiple lines

Comment on lines 207 to 210
<x-shop::form.control-group.control type="select" id="state" name="state"
rules="{{ core()->isStateRequired() ? 'required' : '' }}" v-model="state"
:label="trans('shop::app.customers.account.addresses.state')"
:placeholder="trans('shop::app.customers.account.addresses.state')">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break attributes into multiple lines

</template>

<template v-else>
<x-shop::form.control-group.control type="text" name="state" :value="old('state')"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break attributes into multiple lines

Comment on lines 237 to 239
<x-shop::form.control-group.control type="text" name="phone" rules="required|integer" :value="old('phone')"
:label="trans('shop::app.customers.account.addresses.phone')"
:placeholder="trans('shop::app.customers.account.addresses.phone')" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break attributes into multiple lines

@shivendra-webkul
Copy link
Collaborator

Hi @ghermans, Please break input field attributes into multiple lines in both the edit and create files. Please refer to other files for reference.

@devansh-webkul
Copy link
Member

@ghermans Any update?

@ghermans
Copy link
Contributor Author

@devansh-webkul yes i will push the update during the night

@ghermans
Copy link
Contributor Author

@devansh-webkul the required changes have been pushed

@ghermans
Copy link
Contributor Author

Pen test keep failing on this PR, i'm closing this one since its not a high prio change

@ghermans ghermans closed this May 15, 2024
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.

None yet

3 participants