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

kobotoolbox / kpi / 26875904941 / 3
59%
master: 76%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 03 Jun 2026 09:32AM UTC
Files 878
Run time 34s
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

03 Jun 2026 09:26AM UTC coverage: 44.929% (-1.4%) from 46.318%
26875904941.3

push

github

web-flow
refactor(formMedia): tsify, functional component, add stories DEV-2175 (#7093)

### 💭 Notes

Form Media was moved to different directory area and modernized to
TypeScript with a functional component, while keeping the same user
workflow for adding, listing, and deleting attached files.

Changes here:
- Component migration:
- Moved Form Media from legacy modal-forms location to the Project
feature area.
  - Converted class component to functional TypeScript component.
- Kept existing media behavior and data flow through current media
actions to avoid a risky backend flow change in this PR.
- UI and structure:
- Replaced BEM component wrappers in this feature with regular JSX and
Mantine layout primitives where practical.
- Preserved warning messages, upload states, URL upload flow, and delete
flow.
- Storybook and testability:
  - Added dedicated Form Media story with a play test that covers:
    - initial list rendering
    - adding media by URL
    - deleting media
- Added dedicated form media mocks and factory helpers for stable story
data.
- Stabilized delete-step assertion by checking media row controls
instead of counting all links on the page.
- Typing and maintainability:
  - Added missing media action typings so actions.media is fully typed.
- Removed duplicated type declarations and reused a single canonical
media action type source.
- Added targeted JSDoc and inline comments to help junior contributors
follow intent and flow.
- Endpoint consistency:
- Updated mocks to use shared endpoint constants from the central
endpoints definition.

### 👀 Preview steps
1. Sign in and open any project that you can edit.
2. Go to Project → Settings → Form Media.
3. Confirm you can see the Attach files area and the existing Attached
files list.
4. Add a file using drag and drop.
5. Add another item using a URL in Paste URL here, then select Add.
6. Delete one attached item using the trash button.
7. Confirm the list updates correctly after each action.
8. O... (continued)

3627 of 12028 branches covered (30.15%)

16201 of 36059 relevant lines covered (44.93%)

0.45 hits per line

Source Files on job 26875904941.3
  • Tree
  • List 878
  • Changed 24
  • Source Changed 0
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 26875904941
  • 10435f87 on github
  • Prev Job for on main (#26871739809.3)
  • Next Job for on main (#26887165824.9)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc