Skip to content

Commit 9cc4fd6

Browse files
authored
Upgrade to tailwindcss v4.0.13 (#4443)
``` npx @tailwindcss/upgrade ``` - Linked `./tailwind.config.js` to `./hypha/static_src/tailwind/main.css` - Migrated configuration file: `./tailwind.config.js` - Migrated templates for configuration file: `./tailwind.config.js` - Migrated stylesheet: `./hypha/static_src/tailwind/main.css` - Updated package: `tailwindcss` - Verifed the changes - it had modified some un-indented https://tailwindcss.com/docs/upgrade-guide fixes #4389
1 parent 1eceb82 commit 9cc4fd6

File tree

83 files changed

+1426
-1635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1426
-1635
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ indent_style = space
1010
insert_final_newline = true
1111
trim_trailing_whitespace = true
1212

13-
[*.{yml,yaml,js,json}]
13+
[*.{yml,yaml,js,json,css}]
1414
indent_size = 2
1515

1616
[*.md]

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ repos:
5959
- rustywind@latest
6060
entry: rustywind
6161
args: [--write]
62-
types_or: [html]
62+
types_or: [html, css]
6363

6464
- repo: https://github.com/biomejs/pre-commit
6565
rev: "v0.6.1"

biome.json

-5
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,5 @@
108108
"trailingCommas": "es5"
109109
},
110110
"globals": ["define", "htmx", "jQuery", "Alpine"]
111-
},
112-
"css": {
113-
"formatter": {
114-
"indentWidth": 4
115-
}
116111
}
117112
}

docs/assets/extra.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:root {
2-
--md-primary-fg-color: #1269a1;
2+
--md-primary-fg-color: #1269a1;
33
}
44

55
[dir="ltr"] .md-header__title {
6-
margin-left: 0.2rem;
6+
margin-left: 0.2rem;
77
}

hypha/apply/activity/templates/activity/partial_comment_message.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="flex flex-wrap gap-2 pb-2 mt-4 max-w-xl min-w-40">
1414
{% for attachment in attachments %}
1515
<a href="{{attachment.get_absolute_url }}"
16-
class="inline-flex items-center py-2 px-3 font-medium rounded border transition-colors bg-slate-50 hover:bg-slate-200"
16+
class="inline-flex items-center py-2 px-3 font-medium rounded-sm border transition-colors bg-slate-50 hover:bg-slate-200"
1717
target="_blank"
1818
rel="noopener noreferrer"
1919
title="{{ attachment.filename }}"

hypha/apply/activity/templates/activity/ui/activity-comment-item.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414
</div>
1515

16-
<div class="{% if activity.user == request.user %}border-cyan-300{% else %}border-gray-300{% endif %} flex-1 pb-2 bg-white border rounded target:ring-2 target:ring-cyan-500 scroll-m-2"
16+
<div class="{% if activity.user == request.user %}border-cyan-300{% else %}border-gray-300{% endif %} flex-1 pb-2 bg-white border rounded-sm target:ring-2 target:ring-cyan-500 scroll-m-2"
1717
id="communications--{{ activity.id }}">
1818
<header class="{% if activity.user == request.user %}bg-fuchsia-100{% else %}bg-slate-100{% endif %} flex flex-wrap items-center justify-between gap-2 px-3 py-2 rounded-t">
1919
<div>

hypha/apply/activity/templates/activity/ui/edit_comment_form.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
rows="10" name="message"
1919
>{{ activity.message }}</textarea>
2020

21-
<div id="wmd-preview-edit-comment-{{ activity.id }}" class="p-4 w-full max-w-none bg-gray-100 shadow-sm prose"></div>
21+
<div id="wmd-preview-edit-comment-{{ activity.id }}" class="p-4 w-full max-w-none bg-gray-100 shadow-xs prose"></div>
2222
</div>
2323

2424
<div class="flex gap-2">

hypha/apply/dashboard/templates/dashboard/applicant_dashboard.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ <h4 class="font-bold heading heading--no-margin"><a class="link" href="{{ invoic
8282
{% display_invoice_table_status_for_user invoice.status request.user as invoice_status %}
8383
<div class="flex-1 w-full"></div>
8484
<div class="w-full max-w-fit text-end">
85-
<p class="{{ invoice_status|invoice_status_bg_color }} text-base py-2 px-3 {{ invoice_status|invoice_status_fg_color }}">{{ invoice_status }}</p>
85+
<p class="{{ invoice_status|invoice_status_bg_color }} text-sm font-semibold py-2 px-3 rounded-sm shadow-xs {{ invoice_status|invoice_status_fg_color }}">
86+
{{ invoice_status }}
87+
</p>
8688
</div>
8789
</div>
8890
</div>

hypha/apply/dashboard/templates/dashboard/community_dashboard.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h3 class="mb-0 text-xl">{% trans "Submit a new application" %}</h3>
2121

2222
<div class="wrapper wrapper--bottom-space">
2323
<h2 class="mb-2 text-xl">
24-
{% trans "Community review submissions" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded me-2">{{ my_community_review_count }}</span>
24+
{% trans "Community review submissions" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded-sm me-2">{{ my_community_review_count }}</span>
2525
</h2>
2626

2727
{% if my_community_review.data %}

hypha/apply/dashboard/templates/dashboard/includes/my-tasks.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% if my_tasks.data %}
55
<h2 class="font-light text-center">{% trans "My tasks" %}</h2>
66

7-
<div class="border divide-y shadow-sm task--list">
7+
<div class="border divide-y shadow-xs task--list">
88
{% for task in my_tasks.data %}
99
{% include "todo/todolist_item.html" with button_type_class="button--transparent" %}
1010
{% endfor %}

hypha/apply/dashboard/templates/dashboard/includes/project_status_bar.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% load dashboard_statusbar_tags %}
2+
23
<div class="status-bar my-6 {{ class }}">
34
{% for status, text in statuses %}
45
{% if forloop.counter0 == current_status_index %}
@@ -13,6 +14,6 @@
1314

1415
<div class="mt-5 status-bar--mobile">
1516
<div class="status-bar__subheading status-bar__text">
16-
{{ current_status }}
17+
{{ current_status_name }}
1718
</div>
1819
</div>

hypha/apply/dashboard/templates/dashboard/includes/submissions-waiting-for-review.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% load i18n %}
33

44
<h2 class="mb-2 text-xl">
5-
<a href="{% url "apply:submissions:list" %}?query=reviewer:@me">{% trans "Submissions waiting for your review" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded me-2">{{ in_review_count }}</span></a>
5+
<a href="{% url "apply:submissions:list" %}?query=reviewer:@me">{% trans "Submissions waiting for your review" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded-sm me-2">{{ in_review_count }}</span></a>
66
</h2>
77

88
{% if my_review.data %}
@@ -17,7 +17,7 @@ <h2 class="mb-2 text-xl">
1717
{% endif %}
1818

1919
{% else %}
20-
<div class="py-10 px-2 w-full text-center bg-white border shadow-sm">
20+
<div class="py-10 px-2 w-full text-center bg-white border shadow-xs">
2121
<p class="my-2 text-base">{% trans "Nice! You're all caught up. 🎉" %}</p>
2222
<a class="button button--primary" href="{% url 'apply:submissions:list' %}" hx-boost='true'>{% trans "Find new applications to review" %}</a>
2323
</div>

hypha/apply/dashboard/templates/dashboard/partner_dashboard.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<div class="wrapper wrapper--bottom-space">
1919
<h4 class="heading heading--normal">
20-
{% trans "You are the partner of these submissions" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded dark:text-blue-300 dark:bg-blue-900 me-2">{{ partner_submissions_count }}</span>
20+
{% trans "You are the partner of these submissions" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded-sm dark:text-blue-300 dark:bg-blue-900 me-2">{{ partner_submissions_count }}</span>
2121
</h4>
2222

2323
{% if partner_submissions.data %}

hypha/apply/dashboard/templates/dashboard/reviewer_dashboard.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{% if my_flagged.count %}
2020
<div id="submissions-flagged" class="wrapper wrapper--bottom-space">
2121
<h3 class="mb-2 text-xl">
22-
<a href="{% url "apply:submissions:list" %}?query=flagged:@me">Your flagged submissions <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded me-2">({{ my_flagged.count }})</span></a>
22+
<a href="{% url "apply:submissions:list" %}?query=flagged:@me">Your flagged submissions <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded-sm me-2">({{ my_flagged.count }})</span></a>
2323
</h3>
2424

2525
{% include "submissions/partials/submissions-inline.html" with submissions=my_flagged.objects row_layout="table" %}
@@ -34,7 +34,7 @@ <h3 class="mb-2 text-xl">
3434

3535
{% if my_reviewed.count %}
3636
<div class="wrapper wrapper--bottom-space">
37-
<h3 class="mb-2 text-xl"><a href="{% url "apply:submissions:list" %}?query=reviewed-by:@me">{% trans "Your previous reviews" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded me-2">{{ my_reviewed.count }}</span></a></h3>
37+
<h3 class="mb-2 text-xl"><a href="{% url "apply:submissions:list" %}?query=reviewed-by:@me">{% trans "Your previous reviews" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded-sm me-2">{{ my_reviewed.count }}</span></a></h3>
3838

3939
{% include "submissions/partials/submissions-inline.html" with submissions=my_reviewed.objects row_layout="table" %}
4040

hypha/apply/dashboard/templates/dashboard/staff_dashboard.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@
2424
{% endif %}
2525

2626
<div class="stat-block">
27-
<a href="#submissions-awaiting-review" class="border shadow-sm stat-block__item">
27+
<a href="#submissions-awaiting-review" class="border shadow-xs stat-block__item">
2828
<p class="stat-block__number">{{ awaiting_reviews.count }}</p>
2929
<p class="stat-block__text">{% trans "Submissions waiting for your review" %}</p>
3030
{% if awaiting_reviews.count %}
3131
<div class="stat-block__view">{% trans "View" %}</div>
3232
{% endif %}
3333
</a>
3434
{% if PROJECTS_ENABLED %}
35-
<a href="#active-projects" class="border shadow-sm stat-block__item">
35+
<a href="#active-projects" class="border shadow-xs stat-block__item">
3636
<p class="stat-block__number">{{ projects.count }}</p>
3737
<p class="stat-block__text">{% trans "Live projects under your management" %}</p>
3838
{% if projects.count %}
3939
<div class="stat-block__view">{% trans "View" %}</div>
4040
{% endif %}
4141
</a>
42-
<a href="#active-invoices" class="border shadow-sm stat-block__item">
42+
<a href="#active-invoices" class="border shadow-xs stat-block__item">
4343
<p class="stat-block__number">{{ active_invoices.count }}</p>
4444
<p class="stat-block__text">{% trans "Requests for invoices requiring your attention" %}</p>
4545
{% if active_invoices.count %}
@@ -48,13 +48,13 @@
4848
</a>
4949
{% else %}
5050
{% if my_flagged.count %}
51-
<a href="#submissions-flagged" class="border shadow-sm stat-block__item">
51+
<a href="#submissions-flagged" class="border shadow-xs stat-block__item">
5252
<p class="stat-block__number">{{ my_flagged.count }}</p>
5353
<p class="stat-block__text">Your flagged submissions</p>
5454
</a>
5555
{% endif %}
5656
{% if my_reviewed.count %}
57-
<a href="#my-review" class="border shadow-sm stat-block__item">
57+
<a href="#my-review" class="border shadow-xs stat-block__item">
5858
<p class="stat-block__number">{{ my_reviewed.count }}</p>
5959
<p class="stat-block__text">{% trans "Your previous reviews" %}</p>
6060
</a>
@@ -70,7 +70,7 @@
7070
{% if my_flagged.count %}
7171
<div id="submissions-flagged" class="wrapper wrapper--bottom-space">
7272
<h3 class="mb-2 text-xl">
73-
<a href="{% url "apply:submissions:list" %}?query=flagged:@me">Your flagged submissions <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded me-2">{{ my_flagged.count }}</span></a>
73+
<a href="{% url "apply:submissions:list" %}?query=flagged:@me">Your flagged submissions <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded-sm me-2">{{ my_flagged.count }}</span></a>
7474
</h3>
7575

7676
{% include "submissions/partials/submissions-inline.html" with submissions=my_flagged.objects row_layout="table" %}
@@ -117,7 +117,7 @@ <h4 class="heading heading--normal">{% trans "Active Invoices" %}</h4>
117117

118118
{% if my_reviewed.count %}
119119
<div class="wrapper wrapper--bottom-space">
120-
<h3 class="mb-2 text-xl"><a href="{% url "apply:submissions:list" %}?query=reviewed-by:@me">{% trans "Your previous reviews" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded me-2">{{ my_reviewed.count }}</span></a></h3>
120+
<h3 class="mb-2 text-xl"><a href="{% url "apply:submissions:list" %}?query=reviewed-by:@me">{% trans "Your previous reviews" %} <span class="py-0.5 px-2.5 text-sm font-medium text-blue-800 bg-blue-100 rounded-sm me-2">{{ my_reviewed.count }}</span></a></h3>
121121
{% include "submissions/partials/submissions-inline.html" with submissions=my_reviewed.objects row_layout="table" %}
122122

123123
{% if my_reviewed.display_more %}

hypha/apply/dashboard/templatetags/dashboard_statusbar_tags.py

+6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@ def project_status_bar(current_status, user, author=False, css_class=""):
1717
if is_applicant:
1818
statuses = PROJECT_PUBLIC_STATUSES
1919

20+
# Get the display name for the current status
21+
current_status_name = dict(PROJECT_STATUS_CHOICES).get(
22+
current_status, current_status
23+
)
24+
2025
return {
2126
"statuses": statuses,
2227
"current_status_index": [status for status, _ in PROJECT_STATUS_CHOICES].index(
2328
current_status
2429
),
2530
"current_status": current_status,
31+
"current_status_name": current_status_name,
2632
"class": css_class,
2733
}

hypha/apply/determinations/templates/determinations/base_determination_form.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h2>{{ value }}</h2>
6161
{% endblock %}
6262
</form>
6363
{% for type, message in message_templates.items %}
64-
<div class="is-hidden" data-type="{{ type }}" id="determination-message-{{ type }}">
64+
<div class="hidden" data-type="{{ type }}" id="determination-message-{{ type }}">
6565
{{ message }}
6666
</div>
6767
{% endfor %}

hypha/apply/flags/templates/flags/flags.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<form class="flex gap-4 wrapper wrapper--sidebar-buttons" id="submission-flags">
33
{% with submission|flagged_by:user as is_flagged %}
44
<button
5-
class="button button--secondary flex items-center gap-4 !px-2 !py-3 w-full"
5+
class="button button--secondary flex items-center gap-4 px-2! py-3! w-full"
66
{% if submission.is_archive %}
77
disabled=true
88
{% else %}
@@ -28,7 +28,7 @@
2828
{% if request.user.is_apply_staff %}
2929
{% with submission|flagged_staff as is_flagged %}
3030
<button
31-
class="button button--secondary flex items-center gap-4 !px-2 !py-3 w-full whitespace-nowrap"
31+
class="button button--secondary flex items-center gap-4 px-2! py-3! w-full whitespace-nowrap"
3232
{% if submission.is_archive %}
3333
disabled=true
3434
{% else %}

hypha/apply/funds/templates/funds/applicationsubmission_admin_detail.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h5>{% trans "Reviews & assignees" %}</h5>
6565
<div class="flex gap-4 justify-between pb-4">
6666
<h5 class="m-0">{% trans "Reminders" %}</h5>
6767
<button
68-
class="flex items-center py-1 px-2 font-bold rounded transition-colors hover:bg-gray-100 text-dark-blue -me-2"
68+
class="flex items-center py-1 px-2 font-bold rounded-sm transition-colors hover:bg-gray-100 text-dark-blue -me-2"
6969
hx-get="{% url 'funds:submissions:create_reminder' pk=object.pk %}"
7070
hx-target="#htmx-modal"
7171
role="button"

hypha/apply/funds/templates/funds/applicationsubmission_confirm_delete.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% csrf_token %}
55

66
<div class="sm:flex sm:items-start">
7-
<div class="flex flex-shrink-0 justify-center items-center mx-auto w-12 h-12 bg-red-100 rounded-full sm:mx-0 sm:w-10 sm:h-10">
7+
<div class="flex justify-center items-center mx-auto w-12 h-12 bg-red-100 rounded-full sm:mx-0 sm:w-10 sm:h-10 shrink-0">
88
{% heroicon_outline "exclamation-triangle" class="w-6 h-6 text-red-600" stroke_width="1.5" aria_hidden="true" %}
99
{% comment %} <svg class="w-6 h-6 text-red-600" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
1010
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"></path>
@@ -37,11 +37,11 @@ <h3 class="text-base font-semibold leading-6 text-gray-900" id="modal-title">Del
3737
<button
3838
type="submit"
3939
x-bind:disabled="value !== 'delete'"
40-
class="inline-flex justify-center py-2 px-3 w-full text-sm font-semibold text-white bg-red-600 rounded-sm shadow-sm sm:ml-3 sm:w-auto hover:bg-red-500 disabled:opacity-50 disabled:cursor-not-allowed"
40+
class="inline-flex justify-center py-2 px-3 w-full text-sm font-semibold text-white bg-red-600 sm:ml-3 sm:w-auto hover:bg-red-500 disabled:opacity-50 disabled:cursor-not-allowed rounded-xs shadow-xs"
4141
>{% trans "Delete" %}</button>
4242
<button
4343
type="button"
44-
class="inline-flex justify-center py-2 px-3 mt-3 w-full text-sm font-semibold text-gray-900 bg-white rounded-sm ring-1 ring-inset ring-gray-300 shadow-sm sm:mt-0 sm:w-auto hover:bg-gray-50"
44+
class="inline-flex justify-center py-2 px-3 mt-3 w-full text-sm font-semibold text-gray-900 bg-white ring-1 ring-inset ring-gray-300 sm:mt-0 sm:w-auto hover:bg-gray-50 rounded-xs shadow-xs"
4545
@click="show = false"
4646
>{% trans "Cancel" %}</button>
4747
</div>

hypha/apply/funds/templates/funds/applicationsubmission_detail.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% block body_class %}{% endblock %}
88

99
{% block content %}
10-
<div class="admin-bar">
10+
<div class="pt-4 pb-0 admin-bar">
1111
<div class="admin-bar__inner">
1212

1313
{% if object.project %}
@@ -62,14 +62,14 @@ <h5>{% blocktrans with stage=object.previous.stage %}Your {{ stage }} applicatio
6262
{% else %}
6363
<article class="wrapper--sidebar--inner">
6464
{% if object.is_archive %}
65-
<div class="flex gap-2 justify-center items-center py-2 mb-4 font-semibold text-center text-white bg-red-600 rounded-sm">
65+
<div class="flex gap-2 justify-center items-center py-2 mb-4 font-semibold text-center text-white bg-red-600 rounded-xs">
6666
{% heroicon_outline "lock-closed" aria_hidden="true" size=16 stroke_width=2 class="inline align-baseline me-1" %}
6767
{% trans "This application has been archived. This is visible to the roles " %} {{ archive_access_groups|join_with_commas }}.
6868
</div>
6969
{% endif %}
7070

7171
{% if object.round.specific.is_sealed %}
72-
<div class="flex gap-2 justify-center items-center py-2 mb-4 font-semibold text-center text-white bg-red-600 rounded-sm">
72+
<div class="flex gap-2 justify-center items-center py-2 mb-4 font-semibold text-center text-white bg-red-600 rounded-xs">
7373
{% heroicon_outline "clock" aria_hidden="true" size=16 stroke_width=2 class="inline align-baseline me-1" %}
7474
{% trans "This application is sealed." %}
7575
</div>

hypha/apply/funds/templates/funds/comments.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% block title %}Comments: {{ object.title_text_display }}{% endblock %}
55

66
{% block content %}
7-
<div class="admin-bar">
7+
<div class="pt-4 pb-0 admin-bar">
88
<div class="admin-bar__inner">
99

1010
{% if object.project %}

0 commit comments

Comments
 (0)