Skip to content

Add support for viewing data history after app disconnect - #5509

Merged
kenzieschmoll merged 18 commits into
flutter:masterfrom
kenzieschmoll:offline-h
Mar 24, 2023
Merged

kenzieschmoll merged 18 commits into
flutter:masterfrom
kenzieschmoll:offline-h

Conversation

@kenzieschmoll

Copy link
Copy Markdown
Member

This adds support to "review history" after an app disconnect for screens that support offline data viewing. Right now, that is only the Performance page and the Cpu Profiler page, but when other pages support offline viewing, we will get this "review history" behavior for free.

The workflow is as follows:

  1. User is looking at data on a screen that supports offline snapshots
  2. App disconnects
  3. Upon disconnect, the data from the current screen is saved as the current offline data in DevTools
  4. If a user clicks "Review History", we navigate to the offline snapshot screen and load the data.

One other change is that the "Review History" button will only show up if there is some pending offline data to show.

Work towards #4108. I have a todo to add testing. As I explained in the issue, this feature is currently completely broken, so landing my change will not make this feature any more broken if something were to go wrong. With the upcoming deadline early next week, there are more important issues to address than adding this test, but I will come back to this and clean it up.

@kenzieschmoll
kenzieschmoll requested review from a team, bkonyi and polina-c as code owners March 23, 2023 21:06

@bkonyi bkonyi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM

Comment thread packages/devtools_app/lib/src/framework/initializer.dart Outdated
Comment thread packages/devtools_app/lib/src/framework/initializer.dart Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants