test(phase-2): perf and DOM regression tests + delete 300 lines of dead CSS

Seven feature tests covering:
- the per-card edit modal is gone (id="editVideoModal{slug}" and the
  .cute-edit-modal class),
- owner sees Edit/Delete and no Report/Not-interested,
- non-owner sees Report/Not-interested and no Edit/Delete,
- card thumbnail img carries width/height and loading="lazy",
- feedMore returns JSON with items + next_cursor + has_more,
- feedMore rejects unknown filters by returning an empty slice,
- comments component ships the reply <template>, not inline forms.

While wiring these up I also deleted the 300-line .cute-edit-modal CSS
block that was still shipping in card-styles.blade.php even though its
markup was removed in the previous commit — the CSS was pointing at
IDs that no longer exist.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
ghassanandClaude Opus 4.7 committed 2026-10-21 00:54:55 +03:00
1 parent 8aa08e705a
commit fa4e09ad62
3 files changed
+178 -304

No files matched your search

@@ -312,9 +312,8 @@ function stopVideo(element) {
element.classList.remove('audio-playing');
}
// openEditVideoModal + the type/privacy/thumbnail/submit handlers that used
// to live here were removed with the per-card modal — the singleton at
// layouts/partials/edit-video-modal.blade.php owns the global function and
// handles its own event bindings.
// Edit-modal open/close + its form handlers live in the singleton at
// layouts/partials/edit-video-modal.blade.php (not here) — see the
// removed-markup note above the dropdown for why.
</script>
@endonce