gitpoint / gitpoint/git-point

UX: RepositoryListItem should truncate description

未关闭
#760 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
assigned enhancement good for beginners
主要语言
JavaScript
星标
4.8k
派生
770
PR 合并指标
30 天内没有已合并 PR

描述

| Question | Response |
| ---------------- | ----------- |
| Version? | v1.4.1 |
| Devices tested? | iPhone 7 |

---

## What Currently Happens?

If you search for the user "vhicxs", and check his repositories list, you will notice a weird 3 blank pages scrolling in the "vhcixs/repository"

screen shot 2018-03-31 at 1 03 26 pm

This is because the repository description is a big HTML chunk: https://github.com/vhicxs/google

## What Do You Expect To Happen?

The HTML tags should be displayed, and the description should be truncated at some point. (GitHub limit seems to be 350 chars, we seems pretty fair)

## My Reproduction Steps

1. Open the application
1. Navigate to search
1. Click "Users"
1. Search for "vhcixs"
1. Click the search result corresponding to "vhcixs" to go to the user profile
1. Click on the repositories number

贡献指南

打开贡献指南

调研方向

首先定位用户仓库列表中使用的 RepositoryListItem 组件,并使用 vhicxs 账户重现该问题。检查仓库描述的渲染方式,然后验证长 HTML 描述是否会被截断,并且不再创建空白滚动页面。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react-native
领域
mobile
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。