HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • Write
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- tags: cofacts --- [Spec] 最新查核訊息(需複查列表) ===== ## Updated // 可能可以用點擊一次展開,第二次進入的方式 (quora) ## 前情提要 討論: https://hackmd.io/dfAkGHLCShacnOoruGxr0w?view ## 功能列表 https://www.figma.com/file/5qegqv1g0fxCYkzNz3jVA6/Wireframe-Need-to-Review-Page?node-id=0%3A1 ### Query 定義 顯示已有查核的可疑訊息及對應查核回應列表,預設依照最新的查核時間排序。 Elastic Search ``` filter articles WHERE article.articleReplies.counts > 0 SORT by max(articleReply.createdTime) ``` :::info Elastic Search DB map https://hackmd.io/@mrorz/SyinqvMQL Related Issue https://github.com/cofacts/rumors-api/issues/35 ::: ### 排序選項: *預設 | 中文 | English | Elastic Search 定義 | | -------- | -------- | -------- | | *最近被查核 | Most Recently replied | max(articleReply.createdTime) | | 最近被詢問 | Most Recently Asked | article.lastRequestedAt | | 最多人想知道 | Most People want to know | article.replyRequestCount | | 最少人查核 | Least fact-checked | article.normalArticleReplyCount | ### 過濾選項: | 中文 | English | Elastic Search 定義 | | -------- | -------- | -------- | | 時間區間 | Time Range | article.articleReplies.createdAt | | 我查核過 | replied by me | article.articleReplies.userId == 'me' | | 還未有有效查核 | have yet to have a useful reply | **filter** <br/> 沒有任何 normal articleReply 符合「正feedback>負feedback && status」 | | 熱門回報 | Asked many times | **filter** <br/> `article.replyRequestCount >= N (default N = 2)` | | 熱門討論 | Relied many times | **filter** <br/> `article.normalArticleReplyCount >= N (default N = 3)` | | 回應中有「含有真實資訊」and「含有不實資訊」and「非文章」 (多選) | ... | `article.articleReplies.replyType == ...` | | 主題 | Topic | https://docs.google.com/spreadsheets/d/1rw3Dzpmec-6lHgAgMPhW7ccPFzNlPp9YqpUJVxnYezw/edit#gid=484232713 | --- And in graphql resolver ``` # in filtered aritcles articles.map(article => ({ article, replies: article.articleReplies.filter( articleReply => date.now() - articleReply.createdTime < N ).slice(0, K) })) ``` 目前先以 N = 3 days, K = 5 開始。 :::info Elasticsearch 的 script in nested 可以用於 filter, 但不能 sorted,導致我們只能在 resolver 做 replies 處理 ::: ## 列表介面註解 - 可疑訊息希望能做能顯示 __2__ 行,最後 ellipsis。 - 對應回應希望能做能顯示 __3__ 行,最後 ellipsis。 - 可疑訊息原文能被展開,被展開前將斷行換成全形空格,緊縮排在一起。 - 對應回應能被展開 - 對應回應能直接被展開後(如果能被展開),能直接被 upvote/ downvote - 點擊 downvote 跳出輸入框 modal,讓使用者填理由 - 列表使用 infinite scroll 去讀取下一頁內容 > [color=#ff728c] CSS 上可能有點麻煩 > - 從最新查核訊息點擊到訊息頁的排版會 highlight 相關回覆,詳細待詳情頁設計,但請在 url 帶 query string 指定哪些 replies 要 highlight。 - 每一頁顯示 15 條訊息 - 回報時間 Hover 規範 https://www.figma.com/file/Hvx0OId2kGdX3ldvb0MUJY/Component-Time-Tooltip?node-id=1%3A6 ### 回應標頭文案 針對回應的原案或是引用,分別用 - A 認為含有真實訊息 - B 引用 A 的查核認為認為含有真實訊息 ## 成效追蹤 多少瀏覽量比例 UV / All UV 多少人直接對回應 upvote/downvote 各 Sort 被使用次數 各 Filter 被使用次數 從此頁去到詳情頁添加回覆的數量

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

Sign in via GitHub

New to HackMD? Sign up

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions

Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.