alleyinteractive / alleyinteractive/wp-seo

Add mobile/desktop toggle to the search engine preview modal

Đang mở
#182 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
45
Fork
13
Merge trung bình
12 ngày 16 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### Description

The search engine live preview shipped in #137 (`components/open-graph/PreviewModal.tsx` → `SearchPreview.tsx`) renders a single, generic result-snippet layout. Issue #161's MVP requirements call for the preview to support both mobile and desktop views, since search result snippet truncation and layout differ between the two.

### Use Case

Editors want to see how a page will actually appear in search results on both mobile and desktop before publishing, since title/description truncation lengths differ meaningfully between the two surfaces.

### Proposed Solution

Add a toggle (e.g. tabs similar to the existing Search/Social tabs) to `SearchPreview.tsx` that switches between a mobile-style and desktop-style rendering of the snippet, using the appropriate truncation lengths/layout for each.

### Related

- #161 (parent MVP tracking issue)
- #137 (original search/social preview implementation)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start with components/open-graph/PreviewModal.tsx and the SearchPreview.tsx component it renders. Compare the existing Search/Social tab behavior mentioned in the issue, then add a mobile/desktop switch in SearchPreview.tsx. Done means the search preview can show distinct mobile-style and desktop-style snippet layouts with appropriate truncation differences.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
react, typescript, wordpress
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
72/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.