• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 12186277236
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: refactor-subsequences-2025
DEFAULT BRANCH: master
Ran 05 Dec 2024 07:35PM UTC
Jobs 1
Files 608
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Dec 2024 06:59PM UTC coverage: 80.383%. Remained the same
12186277236

push

github

web-flow
feat(organizations): update usage limits modals and banners TASK-996 (#5249)

### 💭 Notes

- The full idea behind some of the changes is to improve translation
process, converting broken down texts to longer sentences with context
and formatting where needed.
- At first a simpler markdown parser was implemented, but after some
discussion in [its PR](https://github.com/kobotoolbox/kpi/pull/5257)
we've decided to use `react-markdown` instead.
- We could now consider updating the places in Kobo where we're using
HTML and it could be dangerous, so @magicznyleszek created a task for
that refactor:
[TASK-1257](https://www.notion.so/kobotoolbox/Refactor-some-dangerouslySetInnerHTML-code-to-use-react-markdown-13e7e515f65480c5a95ec9b1a7a7477c?pvs=4)
🙇đŸģ

### đŸ“Ŗ Summary

Usage limits modal and banner descriptions were changed to reflect the
individual, organization or team subscription.

### 📖 Description

Information for usage limits modal and banner was changed:
- The subject changes between "you", "your organization" and "your team"
depending on the user subscription
- Texts were updated to fix translation problems, isolated in longer
sentences (even if it makes the code look a bit redundant)
- A Bug was fixed where the warning limits would be displayed repeated
times. (Was already fixed for non-warning messages)
- The `react-markdown` library was added to format markdown-like strings

### 👀 Preview steps

1. â„šī¸ have an account and a project
2. have Stripe
[setup](https://www.notion.so/kobotoolbox/Setting-Up-Stripe-9a958a84d6324ec8a4ca887b820eb8cf)
2. Reach the usage limit or get close to the usage limit. Easiest way is
to override values in
[useUsage.hook.ts](https://github.com/kobotoolbox/kpi/blob/3ede0c8fc/jsapp/js/account/usage/useUsage.hook.ts)
3. Open projects view.
4. đŸŸĸ Banner should show up informing about the usage limit. The message
will vary depending on the `is_mmo` flag from the organization and on
the `shouldUseTeam... (continued)

5751 of 9232 branches covered (62.29%)

21968 of 27329 relevant lines covered (80.38%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12186277236.1 05 Dec 2024 07:35PM UTC 608
80.38
Source Files on build 12186277236
  • Tree
  • List 608
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 3fe8e448 on github
  • Prev Build on main (#12185541495)
  • Next Build on main (#12186633926)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc