LEAD-UI-001.2 · Finish mobile/desktop lead layout
Отдельный файл отчёта для этой задачи не найден или не указан. Показан сохранённый результат задачи.
The responsive console is finished and python3 -m unittest tests.test_mobile_ui -v passes: 23 tests, 21 ran and 2 were skipped. The 2 skipped tests are the real-browser layout checks at 390px and desktop width, because puppeteer isn't installed. So no actual browser render was checked. The full suite has 1 failure, in an older test (details below).
Changes
- Long BASF ID:
- On desktop the Lead ID cell is cut to one line with an ellipsis, and the full ID shows on hover.
- The table scrolls sideways inside its box instead of stretching the page.
- On phone cards and the lead page, the full ID wraps instead of overflowing.
- The shortlist does the same: truncated on desktop, wrapped on phones.
- Phone vs desktop: at 390px the page shows company cards. Each card shows evidence, review and shortlist status, with the lead ID and details folded below. Desktop keeps the full 7-column table.
- Evidence and review: each evidence review form now sits in a fold called "Review this evidence". It is closed on phones and opens automatically on wide screens.
- The form's fields, the allowed status changes and the security token are unchanged.
- The lead verdict, notes and shortlist forms are not folded.
- Mobile search: the search box stays visible above the folded filters. It gets a "search" key on the iPhone keyboard and no auto-capitalisation, autocomplete or spellcheck.
Files
app/review_ui.py, app/static/app.css and app/static/app.js, edited in place rather than rewritten.tests/test_mobile_ui.py, the new tests:- Most render pages from a temporary database, with no server and no network.
- Two start the real app on 127.0.0.1 using the factory venv, load the pages, and save an evidence change with the security token.
- This folder is not a git repository, so nothing was committed. The changes are written up in
docs/mobile-ui-changes.md, and copies of the files from before the change are in /tmp/ui-backup/.
Full suite: 205 tests, 1 failure. tests/test_review_queue.py (HttpSmokeTests) sends form submissions without the security token, so the app answers 403 instead of the 400 the test expects. My changes didn't touch that check (app/auth.py), and I left that test alone because it is outside this task. The fix is to send the token, as the new HTTP test does.
I did not change Apache auth, app/auth.py or the scheduler, which stays off. Nothing was sent to anyone.
Материалы