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

[B5] Project Limits view migration #35459

Merged
merged 4 commits into from
Dec 3, 2024
Merged

Conversation

jingcheng16
Copy link
Contributor

@jingcheng16 jingcheng16 commented Nov 29, 2024

Product Description

Before
image

After
image

Technical Summary

Ticket: https://dimagi.atlassian.net/browse/SAAS-16335

project_limits.html don't have any todo comments
project_limits_table.html only have 2 todo comments
inline style is still required for progress bar according to [b5 doc] (https://getbootstrap.com/docs/5.3/components/progress/#how-it-works):

The .progress-bar requires an inline style, utility class, or custom CSS to set its width.

Thus I dismissed the {# todo B5: inline-style#}

I have migrated both templates, but project_limits_table.html is also referenced by /Users/jingcheng/commcare-hq/corehq/apps/hqadmin/templates/hqadmin/global_thresholds.html thus can not be mark as complete.

Feature Flag

Safety Assurance

Safety story

This page is for internal admin usage only.

Automated test coverage

QA Plan

No

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

@jingcheng16 jingcheng16 force-pushed the jc/b5-domain-project-limits branch from 526e925 to 2cfb950 Compare November 29, 2024 18:44
@jingcheng16 jingcheng16 marked this pull request as ready for review December 2, 2024 17:40
@jingcheng16 jingcheng16 added the product/admin Change affects admin pages only visible to super users / staff label Dec 2, 2024
@@ -23,8 +23,8 @@ <h1>{{ header }}</h1>
<td>{{ rate_info.key }}</td>
<td>
{{ rate_info.percent_usage }}%
<div class="progress"> {# todo B5: css-progress #}
<div class="progress-bar progress-bar-striped" style="width: {{ rate_info.percent_usage }}%"></div> {# todo B5: inline-style #}
<div class="progress" role="progressbar" aria-label="Percent Usage" aria-valuemin="0" aria-valuemax="100">
Copy link
Contributor

Choose a reason for hiding this comment

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

Should "Percent Usage" be translated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The comment in the template explained it is just for internal use so it won't be translated

@jingcheng16 jingcheng16 merged commit f2911d0 into master Dec 3, 2024
13 checks passed
@jingcheng16 jingcheng16 deleted the jc/b5-domain-project-limits branch December 3, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/admin Change affects admin pages only visible to super users / staff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants