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

[WIP] Fix button saying server offline after it comes back. #3213

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

psybers
Copy link
Contributor

@psybers psybers commented Aug 7, 2024

This is an alternate fix for #3128. See #3164 for another approach.

@actual-github-bot actual-github-bot bot changed the title Fix button saying server offline after it comes back. [WIP] Fix button saying server offline after it comes back. Aug 7, 2024
Copy link

netlify bot commented Aug 7, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 2f2b259
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/6757b8c6092e310007f0ee06
😎 Deploy Preview https://deploy-preview-3213.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@psybers psybers changed the title [WIP] Fix button saying server offline after it comes back. Fix button saying server offline after it comes back. Aug 7, 2024
Copy link
Contributor

github-actions bot commented Aug 7, 2024

Bundle Stats — desktop-client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
10 5.46 MB → 5.46 MB (+177 B) +0.00%
Changeset
File Δ Size
src/components/LoggedInUser.tsx 📈 +60 B (+2.15%) 2.73 kB → 2.79 kB
src/components/Titlebar.tsx 📈 +117 B (+1.42%) 8.02 kB → 8.13 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/index.js 3.44 MB → 3.44 MB (+177 B) +0.00%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/workbox-window.prod.es5.js 5.69 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/AppliedFilters.js 21.32 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/useAccountPreviewTransactions.js 1.63 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/narrow.js 82.96 kB 0%
static/js/wide.js 241.09 kB 0%
static/js/ReportRouter.js 1.52 MB 0%

Copy link
Contributor

github-actions bot commented Aug 7, 2024

Bundle Stats — loot-core

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
1 1.32 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.js 1.32 MB 0%

@MikesGlitch MikesGlitch added the ⚠️ Changes requested Pull Request needs changes before it can be reviewed again label Aug 7, 2024
@psybers
Copy link
Contributor Author

psybers commented Aug 9, 2024

@MikesGlitch What changes were requested? I see no review.

Copy link
Contributor

@MikesGlitch MikesGlitch left a comment

Choose a reason for hiding this comment

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

Apologies, I don't think you were able to see the comments because I didn't click the button 🤦‍♂️

style?: CSSProperties;
color?: string;
};
export function LoggedInUser({
hideIfNoServer,
syncState,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice. This component is also used on the ManagementApp.jsx screen - can we pass the syncState from there too?

test2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I should be able to do this there as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok so after looking into this area of the code, it definitely won't work.

This is making me rethink how that button works in general, and the approach used. Perhaps the button needs its own logic to determine the state instead of relying on other components.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is currently working in the latest master so if we merge this branch we'd be breaking it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, like I said it probably needs reworked.

@MikesGlitch MikesGlitch removed the ⚠️ Changes requested Pull Request needs changes before it can be reviewed again label Aug 13, 2024
@github-actions github-actions bot removed the Stale label Oct 15, 2024
Copy link
Contributor

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions bot added the Stale label Oct 22, 2024
@github-actions github-actions bot removed the Stale label Oct 23, 2024
Copy link
Contributor

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions bot added the Stale label Oct 30, 2024
@github-actions github-actions bot removed the Stale label Oct 31, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions bot added the Stale label Nov 8, 2024
@github-actions github-actions bot removed the Stale label Nov 9, 2024
Copy link
Contributor

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions bot added the Stale label Nov 16, 2024
@github-actions github-actions bot removed the Stale label Nov 17, 2024
Copy link
Contributor

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions bot added the Stale label Nov 24, 2024
@github-actions github-actions bot removed the Stale label Nov 25, 2024
Copy link
Contributor

github-actions bot commented Dec 2, 2024

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions bot added the Stale label Dec 2, 2024
@github-actions github-actions bot removed the Stale label Dec 3, 2024
Copy link
Contributor

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions bot added the Stale label Dec 10, 2024
@github-actions github-actions bot removed the Stale label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants