Notifio 作者檢查活動記錄,發現綠色標示常把「沒有新物件」當成重要通知
Our activity log paints three lines green that mean nothing happened, and the word the highlighter really wants only exists on our homepage
重點導讀
Notifio 的活動記錄會把含有特定字詞的內容標成綠色,但「沒有新物件」也會因為包含「new listing」而被標亮,讓人誤以為有新訊息。
- 作者檢查了程式裡 38 個記錄位置,發現有一個關鍵字從未出現在真正的記錄中,另外幾種綠色訊息其實表示沒有寄出通知。
- 作者建議由送出記錄的程式直接標明事件類別,讓顏色依照事件意思決定,也指出官網示範文字和桌面程式的訊息彼此不一致。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
信源出處dev.to
Our activity log paints three lines green that mean nothing happened, and the word the highlighter really wants only exists on our homepage
本文為 888news 精選之重點導讀。若需閱讀作者完整原文、技術細節與官方討論,請前往原始網站。
來源: Dev.to Top Tech (dev.to)
開啟原文