Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream-settings: Rearrange "General" tab.
Sahil Batra91c642c94e4e
diff --git a/web/src/stream_settings_components.ts b/web/src/stream_settings_components.tsindex 080609b259e..175331aa1cb 100644--- a/web/src/stream_settings_components.ts+++ b/web/src/stream_settings_components.ts@@ -367,7 +367,7 @@ export function set_up_folder_dropdown_widget(sub?: StreamSubscription): Dropdowif (sub !== undefined) {const $edit_container = stream_settings_containers.get_edit_container(sub);settings_components.save_discard_stream_settings_widget_status_handler(- $edit_container.find(".channel-folder-subsection"),+ $edit_container.find(".stream-settings-subsection"),stream_data.get_sub_by_id(sub.stream_id),);}diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.cssindex d93dda67e2a..1dff8dbe91d 100644--- a/web/styles/subscriptions.css+++ b/web/styles/subscriptions.css@@ -1171,7 +1171,6 @@ h4.user_group_setting_subsection_title {.group-description-wrapper,.stream-description {hyphens: auto;- margin-bottom: 5px;.no-description {font-style: italic;@@ -1179,6 +1178,14 @@ h4.user_group_setting_subsection_title {}}+ .group-description-wrapper {+ margin-bottom: 5px;+ }++ .stream-description {+ margin-bottom: 10px;+ }+.checkmark {display: none;margin-left: 5px;@@ -1225,17 +1232,14 @@ h4.user_group_setting_subsection_title {}}- .stream_details_box,+ .stream_details_box {+ margin: 0 0 10px; /* mimic paragraph spacing */+ }+.group_detail_box {- > .stream_details_subsection,> .group_details_box_subsection {margin: 0 0 10px; /* mimic paragraph spacing */}-- .stream_email_address_error {- vertical-align: top;- margin-left: 15px;- }}.loading_indicator_text {@@ -1335,17 +1339,20 @@ div.settings-radio-input-parent {padding-bottom: 4px;height: 1.4em;}+}- .default-stream {- margin: 20px 0;- width: fit-content;+#subscription_overlay .default-stream {+ width: fit-content;- .inline {- display: inline;- }+ .inline {+ display: inline;}}+#stream_creation_form .default-stream {+ margin: 20px 0;+}+.group-permissions .pill-container,.advanced-configurations-container .pill-container,.channel-permissions .pill-container {diff --git a/web/templates/creator_details.hbs b/web/templates/creator_details.hbsindex 053c62aeb4e..cbb0bc2c568 100644--- a/web/templates/creator_details.hbs+++ b/web/templates/creator_details.hbs@@ -18,3 +18,8 @@{{#*inline "z-date-created"}}{{date_created_string}}{{/inline}}{{/tr}}{{/if}}+{{#if stream_id}}+{{# tr}}+ Channel ID: {{stream_id}}.+{{/tr}}+{{/if}}diff --git a/web/templates/stream_settings/channel_folder.hbs b/web/templates/stream_settings/channel_folder.hbsindex dde864b46e9..c7128bcb9ba 100644--- a/web/templates/stream_settings/channel_folder.hbs+++ b/web/templates/stream_settings/channel_folder.hbs@@ -1,11 +1,4 @@-<div class="channel-folder-subsection {{#if is_stream_edit}}settings-subsection-parent{{/if}}">- <div class="channel-folder-title-container {{#if is_stream_edit}}subsection-header{{/if}}">- <h3 class="stream_setting_subsection_title">{{t "Folders"}}</h3>- {{#if is_stream_edit}}- {{> ../settings/settings_save_discard_widget section_name="stream-permissions" }}- {{/if}}- </div>-+<div class="channel-folder-subsection"><div class="input-group channel-folder-container">{{!-- This is a modified version of dropdown_widget_with_label.hbscomponent so that we can show dropdown button and button to creatediff --git a/web/templates/stream_settings/stream_settings.hbs b/web/templates/stream_settings/stream_settings.hbsindex 130434ba345..e4029e0894b 100644--- a/web/templates/stream_settings/stream_settings.hbs+++ b/web/templates/stream_settings/stream_settings.hbs@@ -75,35 +75,35 @@rendered_description=rendered_description}}</div>+ <div class="creator_details stream_details_box">+ {{> ../creator_details .}}+ </div>{{/with}}- <div class="stream_details_box settings-subsection-parent">- <div class="stream_details_box_header subsection-header">++ <div class="stream-settings-subsection settings-subsection-parent">+ <div class="subsection-header"><h3 class="stream_setting_subsection_title">- {{t "Channel details" }}+ {{t "Settings" }}</h3><div class="stream_email_address_error alert-notification"></div>- {{> ../settings/settings_save_discard_widget section_name="channel-details"}}- </div>- {{#with sub}}- <div class="creator_details stream_details_subsection">- {{> ../creator_details .}}+ {{> ../settings/settings_save_discard_widget section_name="channel-general-settings"}}</div><div class="default-stream">{{> ../settings/settings_checkboxprefix="id_"setting_name="is_default_stream"- is_checked=../check_default_stream+ is_checked=check_default_streamlabel=(t "Default channel for new users")help_link="/help/set-default-channels-for-new-users"}}</div>- <div class="stream_details_subsection">- {{t "Channel ID"}}<br/>- {{stream_id}}- </div>- {{/with}}+ {{> channel_folder .+ is_stream_edit=true+ channel_folder_widget_name="folder_id"+ }}+<div class="input-group stream-email-box"><label for="copy_stream_email_button" class="title inline-block">Email address</label><p class="field-hint">@@ -123,11 +123,6 @@</span></div></div>-- {{> channel_folder .- is_stream_edit=true- channel_folder_widget_name="folder_id"- }}</div><div id="personal-stream-settings" class="stream_section" data-stream-section="personal">