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

kobotoolbox / kpi / 12784691324
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 15 Jan 2025 09:27AM UTC
Jobs 1
Files 623
Run time 10min
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

15 Jan 2025 08:50AM UTC coverage: 80.482% (+0.008%) from 80.474%
12784691324

push

github

web-flow
refactor(frontend): Mantine Component Library PoC (#5344)

### 💭 Notes

Please read the PR commit-by-commit, here's a guide.

1.
[3105f47](https://github.com/kobotoolbox/kpi/pull/5344/commits/3105f47b0)
Setup Mantine Component Library. Please install the new dependencies,
and add recommended VSCode extensions.
2.
[453f2c1](https://github.com/kobotoolbox/kpi/pull/5344/commits/453f2c186)
Here's a preview that Mantine in general works, and API for the example
Button is different but generally similar.

| our button | Mantine default button |
|--------|--------|
|
![image](https://github.com/user-attachments/assets/1f3e5736-c5eb-4cbf-a56e-a393dab561d3)
|
![image](https://github.com/user-attachments/assets/c8f2a9dc-cf1a-44c3-881a-ff05da433060)
|


![image](https://github.com/user-attachments/assets/e2abe407-3113-4900-9027-43186137ce13)

3.
[d782e38](https://github.com/kobotoolbox/kpi/pull/5344/commits/d782e38a9)
Example of custom styled component, Button. IMHO achieves pixel-perfect
match in storybook and example above, except for line breaks, spinner
and hover animations. Click animation matches out of box. Icon-only
buttons are omitted because Mantine uses a different component
`IconAction` for those.

| Original on left / Mantine implementation on right | 
| --- | 
|
![image](https://github.com/user-attachments/assets/9a58b7af-3ff4-4b18-995c-6c57ff4264cb)
|


5.
[eaf45e3](https://github.com/kobotoolbox/kpi/pull/5344/commits/eaf45e3d3)
Wrapped Button to add support for inbuilt Tooltip. No idea if we want to
move forward with these two coupled, but I found it useful for
comparison by re-implementing part of old Button behavior that's
represented in storybook.

| Original | Mantine implementation | 
| --- | --- |
|
![image](https://github.com/user-attachments/assets/7bf2a504-902b-4801-a... (continued)

5824 of 9325 branches covered (62.46%)

22262 of 27661 relevant lines covered (80.48%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12784691324.1 15 Jan 2025 09:27AM UTC 623
80.48
Source Files on build 12784691324
  • Tree
  • List 623
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • bc56f8fa on github
  • Prev Build on main (#12783895750)
  • Next Build on main (#12800479341)
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

© 2025 Coveralls, Inc