Back to articles
Managing data update and cleanup from a local-first app
News

Managing data update and cleanup from a local-first app

via Dev.toZedTuX

While developing Beacon I had to face this data cleanup challenge: When an issue/MR is closed/merged, Beacon should not show it to the dev anymore since Beacon shows ongoing work, but removing would surprise the user and gives a bad experience. First, how is managed new data? You got assigned to an issue, and you pushed the sync button. As soon as the sync is over, the UI is refreshed and shows your new issue with a blue left border to highlight it: Second, how is managed data update? Now this issue got some new comments, labels and assignee have changed and you synchronized in Beacon. Here we need a different way to highlight that issue, a more discrete one that just tell to the user there are updates, but potentially not urgent to check now. I did this by adding a dot on the left of issue/MR title styled like a little blueish LED light which is "ON" when there are updates, or "OFF": And now, closed/merged issues/MRs Beacon shows them dimmed for 7 days, at the bottom of the panel with

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles