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

Required multiselects and timezone configuration during cli install #9798

Closed
wants to merge 4 commits into from

Conversation

ghermans
Copy link
Contributor

@ghermans ghermans commented May 14, 2024

Description

This PR makes the multiselect for Currencies and Locales required during the installation.

image

It also gives the site owner the option to configure the timezone
image

Branch Selection

  • Target Branch: master

@ghermans ghermans changed the title Required multiselect Required multiselects and timezone configuration during cli install May 14, 2024
@@ -427,6 +448,7 @@ protected function allowedChoice(string $question, array $choices)
$selectedValues = multiselect(
label: $question,
options: array_values($choices),
required: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ghermans ,

If no options are selected in the "Allowed Currencies" and "Allowed Locales" sections, the default currency and locales will be automatically applied. Therefore, it is not necessary to make this a required step. If there are specific reasons for making this mandatory, please provide an explanation.

Comment on lines +181 to +184
$defaultTimezone = $this->updateEnvSuggest(
'APP_TIMEZONE',
date_default_timezone_get()
'Please select the application timezone',
$timezones
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can manage this action using the existing updateEnvChoice method. Adding a new method for a single action is unnecessary.

@amit-webkul amit-webkul added the Change Request if need any changes on PR label May 24, 2024
@ghermans ghermans closed this May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Change Request if need any changes on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants