Compare commits

..

4 Commits

Author SHA1 Message Date
Evy Kassirer
b7cf928615 scheduled_messages: Force save drafts of any length when scheduling.
Previously, if you wrote a two character message and attempted to
schedule it, there would be an assertion error on the draft_id
because we don't allow saving drafts with messages less than two
characters without force_save=true.
2025-10-08 17:06:12 -07:00
Evy Kassirer
796c0387a3 check_schemas: Update event.cjs file name. 2025-10-08 17:05:51 -07:00
Lauryn Menard
5b5292d138 templates: Remove unnecessary "margin" class from register template.
Removes the instances of the "margin" class from register.html and
the portico CSS rule. Doing so does not result in any visible
changes in the only place it was being applied the terms of service
checkbox on the page.
2025-10-08 17:05:28 -07:00
Shubham Padia
7bce6361b3 css: Do not use non-color values inside light-dark().
Non-color values are not permitted inside light-dark(). This commit
fixes that for --color-invalid-input-box-shadow.
2025-10-08 15:04:41 -07:00
8 changed files with 11 additions and 13 deletions

View File

@@ -169,9 +169,9 @@ Form is validated both client-side using jquery-validation (see signup.js) and s
{% if default_stream_groups %} {% if default_stream_groups %}
<hr /> <hr />
<div class="default-stream-groups"> <div class="default-stream-groups">
<p class="margin">{{ _('What are you interested in?') }}</p> <p>{{ _('What are you interested in?') }}</p>
{% for default_stream_group in default_stream_groups %} {% for default_stream_group in default_stream_groups %}
<div class="input-group margin"> <div class="input-group">
<label for="id_default_stream_group__{{ default_stream_group.id }}" <label for="id_default_stream_group__{{ default_stream_group.id }}"
class="inline-block checkbox"> class="inline-block checkbox">
<input class="inline-block" type="checkbox" <input class="inline-block" type="checkbox"
@@ -218,7 +218,7 @@ Form is validated both client-side using jquery-validation (see signup.js) and s
</div> </div>
{% endif %} {% endif %}
<div class="input-group margin terms-of-service"> <div class="input-group terms-of-service">
{% if terms_of_service %} {% if terms_of_service %}
<div class="input-group"> <div class="input-group">
{# {#

View File

@@ -106,7 +106,7 @@ def verify_fixtures_are_sorted(names: list[str]) -> None:
raise Exception( raise Exception(
f""" f"""
Please keep your fixtures in order within Please keep your fixtures in order within
your events.js file. The following your events.cjs file. The following
key is out of order key is out of order
{names[i]} {names[i]}

View File

@@ -435,6 +435,7 @@ function schedule_message_to_custom_date(): void {
no_notify: true, no_notify: true,
update_count: false, update_count: false,
is_sending_saving: true, is_sending_saving: true,
force_save: true,
}); });
assert(draft_id !== undefined); assert(draft_id !== undefined);

View File

@@ -1396,7 +1396,7 @@ input.invalid-input {
border-color: var(--color-invalid-input-border) !important; border-color: var(--color-invalid-input-border) !important;
&:focus { &:focus {
box-shadow: var(--color-invalid-input-box-shadow); box-shadow: var(--invalid-input-box-shadow);
} }
} }

View File

@@ -1019,9 +1019,10 @@
hsl(3deg 57% 33%), hsl(3deg 57% 33%),
hsl(3deg 73% 74%) hsl(3deg 73% 74%)
); );
--invalid-input-box-shadow: 0 0 2px var(--color-invalid-input-box-shadow);
--color-invalid-input-box-shadow: light-dark( --color-invalid-input-box-shadow: light-dark(
0 0 2px hsl(3deg 57% 33%), hsl(3deg 57% 33%),
0 0 2px hsl(3deg 73% 74%) hsl(3deg 73% 74%)
); );
--color-background-white-box: light-dark( --color-background-white-box: light-dark(
hsl(0deg 0% 100%), hsl(0deg 0% 100%),

View File

@@ -345,7 +345,7 @@
&:has(.new_message_textarea.invalid), &:has(.new_message_textarea.invalid),
&:has(.new_message_textarea.invalid:focus) { &:has(.new_message_textarea.invalid:focus) {
border-color: var(--color-invalid-input-border); border-color: var(--color-invalid-input-border);
box-shadow: var(--color-invalid-input-box-shadow); box-shadow: var(--invalid-input-box-shadow);
} }
} }

View File

@@ -232,7 +232,7 @@
&.invalid { &.invalid {
border-color: var(--color-invalid-input-border); border-color: var(--color-invalid-input-border);
box-shadow: var(--color-invalid-input-box-shadow); box-shadow: var(--invalid-input-box-shadow);
} }
} }

View File

@@ -898,10 +898,6 @@ input.new-organization-button {
} }
.input-group { .input-group {
&.margin {
margin: 10px 0;
}
.progress { .progress {
margin: 0; margin: 0;
margin-top: 5px; margin-top: 5px;