Skip to content

Indicate in-progress exports#45697

Merged
alxnddr merged 3 commits intomasterfrom
indicate-in-progress-exports
Jul 30, 2024
Merged

Indicate in-progress exports#45697
alxnddr merged 3 commits intomasterfrom
indicate-in-progress-exports

Conversation

@alxnddr
Copy link
Copy Markdown
Member

@alxnddr alxnddr commented Jul 17, 2024

Since I'm on vacation please merge the PR once it is approved

Closes #44686
Closes #41532

Description

Adds an in-progress indicator when users are exporting questions as CSV, JSON, or XLSX from the query builder or dashboards. We don't show it for PNG exports since they are essentially client-side and there is no meaningful delay.

It should be visible in all context: authenticated, public dashboards, embedded dashboards.

Even though this PR contains string changes we are still backporting it to v50
Slack thread on backporting

How to verify

Verify CSV, JSON, or XLSX downloads from query builder, dashboards including public and embedded show the loader.

Demo

Screenshot 2024-07-17 at 1 15 36 AM

Checklist

  • Tests have been added/updated to cover changes in this PR

@metabase-bot metabase-bot bot added the .Team/DashViz DEPRECATED Please use .Team/UXWest instead label Jul 17, 2024
@alxnddr alxnddr force-pushed the indicate-in-progress-exports branch 2 times, most recently from 97ab936 to ef0b788 Compare July 18, 2024 04:54
@alxnddr alxnddr requested a review from a team July 18, 2024 05:22
@alxnddr alxnddr marked this pull request as ready for review July 18, 2024 05:22
@alxnddr alxnddr added the backport Automatically create PR on current release branch on merge label Jul 18, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 18, 2024

Codenotify: Notifying subscribers in CODENOTIFY files for diff 4a7d51a...ffc7f83.

Notify File(s)
@ranquild frontend/src/metabase/status/components/DatabaseStatusSmall/DatabaseStatusSmall.tsx
frontend/src/metabase/status/components/DownloadsStatus/DownloadsStatus.tsx
frontend/src/metabase/status/components/DownloadsStatus/DownloadsStatus.unit.spec.tsx
frontend/src/metabase/status/components/DownloadsStatus/index.ts
frontend/src/metabase/status/components/DownloadsStatusLarge/DownloadsStatusLarge.stories.tsx
frontend/src/metabase/status/components/DownloadsStatusLarge/DownloadsStatusLarge.tsx
frontend/src/metabase/status/components/DownloadsStatusLarge/index.ts
frontend/src/metabase/status/components/DownloadsStatusSmall/DownloadsStatusSmall.tsx
frontend/src/metabase/status/components/DownloadsStatusSmall/index.ts
frontend/src/metabase/status/components/PublicStatusListing/PublicStatusListing.styled.tsx
frontend/src/metabase/status/components/PublicStatusListing/PublicStatusListing.tsx
frontend/src/metabase/status/components/PublicStatusListing/index.ts
frontend/src/metabase/status/components/StatusLarge/StatusLarge.tsx
frontend/src/metabase/status/components/StatusListing/StatusListing.tsx
frontend/src/metabase/status/components/StatusListing/StatusListing.unit.spec.tsx
frontend/src/metabase/status/components/utils/downloads.ts
frontend/src/metabase/status/components/utils/status.ts
frontend/src/metabase/status/hooks/use-check-active-downloads-before-unload.ts
frontend/src/metabase/status/hooks/use-status-visibility.ts

@replay-io
Copy link
Copy Markdown

replay-io bot commented Jul 18, 2024

Status Complete ↗︎
Commit 16f5c18
Results
⚠️ 3 Flaky
2824 Passed

@alxnddr alxnddr force-pushed the indicate-in-progress-exports branch from 4ca4054 to 6c75447 Compare July 18, 2024 16:57
@cdeweyx
Copy link
Copy Markdown

cdeweyx commented Jul 23, 2024

@alxnddr I think we can close #41532 too... what do you think?

@alxnddr alxnddr requested review from a team and EmmadUsmani July 29, 2024 14:58
@alxnddr alxnddr force-pushed the indicate-in-progress-exports branch from 16f5c18 to ffc7f83 Compare July 29, 2024 18:30
@alxnddr alxnddr enabled auto-merge (squash) July 29, 2024 23:42
@alxnddr alxnddr merged commit da6fe86 into master Jul 30, 2024
@alxnddr alxnddr deleted the indicate-in-progress-exports branch July 30, 2024 00:01
alxnddr added a commit that referenced this pull request Jul 30, 2024
* indicate in-progress exports

* specs, public dashboards

* add onbeforeunload hook when uploads are in-progress
alxnddr added a commit that referenced this pull request Jul 31, 2024
* Indicate in-progress exports (#45697)

* indicate in-progress exports

* specs, public dashboards

* add onbeforeunload hook when uploads are in-progress

* fix resolving conflicts

---------

Co-authored-by: Aleksandr Lesnenko <alxnddr@users.noreply.github.com>
Co-authored-by: Aleksandr Lesnenko <alxnddr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Automatically create PR on current release branch on merge .Team/DashViz DEPRECATED Please use .Team/UXWest instead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Visual indicator that a download is happening No visible alert for users when downloads fail

3 participants