Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dashboards): Indicate 404/400/500 properly #21853

Merged
merged 7 commits into from
Apr 26, 2024
Merged

Conversation

Twixes
Copy link
Member

@Twixes Twixes commented Apr 25, 2024

Problem

Following #21822, we've been showing nonexistent dashboards as loading errors instead of 404 (the inverse of the issue we had before). We just need UI snapshots, since there's some logic involved.

Changes

Fixed the logic and added stories.

@Twixes Twixes requested a review from webjunkie April 25, 2024 15:15
@@ -142,7 +142,7 @@ export const dashboardLogic = kea<dashboardLogicType>([
}),

actions({
loadDashboardItems: (payload: { refresh?: boolean; action: string }) => payload,
Copy link
Member Author

Choose a reason for hiding this comment

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

This was some really legacy naming, from back when this literally had to load every dashboard item individually

Copy link
Contributor

github-actions bot commented Apr 25, 2024

Size Change: 0 B

Total Size: 1.04 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.04 MB

compressed-size-action

@Twixes Twixes force-pushed the dashboard-error-pages branch from 8415dec to 0553bd5 Compare April 26, 2024 09:40
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@Twixes Twixes merged commit c26b2e3 into master Apr 26, 2024
103 checks passed
@Twixes Twixes deleted the dashboard-error-pages branch April 26, 2024 16:27
fuziontech added a commit that referenced this pull request Apr 26, 2024
* master: (28 commits)
  fix: refactor update animation to do less (#21901)
  fix(plugin-server): add time component to person.force_upgrade (#21899)
  fix(dashboards): Indicate 404/400/500 properly (#21853)
  fix: recording exports (#21900)
  feat: Update SLAs, remove GitHub buttons (#21818)
  chore: Removed feature flag for heatmaps (#21886)
  fix(data-warehouse): Added an error message for empty data source files (#21843)
  feat(surveys): allow to stop surveys once reached enough responses (#21528)
  fix: patch missing pause method in rrweb (#21898)
  fix(hogql): make funnels fast again (#21890)
  fix: Explicitly call out readonly user fields (#21889)
  chore(dev): Allow mypy to run in VS Code extension (#21891)
  feat: Small heatmap UI fixes (#21849)
  feat: Improve Heatmaps UI and notices (#21887)
  fix: Redirection to keep query params (#21881)
  fix: hot path is cooler now (#21888)
  feat(data-warehouse): Moved the table model creation to the data pipeline activity (#21817)
  fix: snapshot response timings (#21885)
  chore(deps): Update posthog-js to 1.130.0 (#21884)
  feat(debug): tabs + better view for non-hogql-query nodes (#21867)
  ...
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.

3 participants