Skip to content

Conversation

@jrjohnson
Copy link
Member

We had a bug here that would break re-render when the network was down. This almost certainly only broke in development, but the fix is to wait a moment before doing anything. I also fixed up the style in multiple viewports so it's prettier.

Test by loading ilios and the running off your network. You should get the banner and some other nice features.

@netlify
Copy link

netlify bot commented Aug 18, 2025

Deploy Preview for ilios-frontend ready!

Name Link
🔨 Latest commit 5418f00
🔍 Latest deploy log https://app.netlify.com/projects/ilios-frontend/deploys/68a61585ca634b000813fae5
😎 Deploy Preview https://deploy-preview-8775--ilios-frontend.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 54 (🟢 up 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 90 (no change from production)
View the detailed breakdown and full score reports

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

@jrjohnson jrjohnson marked this pull request as ready for review August 18, 2025 19:28
});

reconnect = restartableTask(async (force) => {
await timeout(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why this is needed, as re-rendering seems fine without it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if it's only in development, wasn't able to reproduce it In another way,
Steps:
pnpm start
Load ilios, disconnect network
make a change to any file that would cause a rebuild (js/gjs)
when the auto refresh happens you get an error

Copy link
Contributor

Choose a reason for hiding this comment

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

I like the new look and feel, and the only addition I would make is the "Unable to Reconnect" message < 768px. It's not vertically centered.

Copy link
Member Author

Choose a reason for hiding this comment

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

Easy fix, good catch. ✅

Copy link
Contributor

@michaelchadwick michaelchadwick left a comment

Choose a reason for hiding this comment

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

A few quibbles.

@michaelchadwick michaelchadwick added the run ui tests Run the expensive UI tests label Aug 19, 2025
We had a bug here that would break re-render when the network was down.
This almost certainly only broke in development, but the fix is to wait
a moment before doing anything. I also fixed up the style in multiple
viewports so it's prettier.
@michaelchadwick michaelchadwick merged commit 8a4864b into ilios:master Aug 20, 2025
41 of 43 checks passed
@jrjohnson jrjohnson deleted the connection-lost branch August 21, 2025 00:12
@jrjohnson jrjohnson added a11y PRs and issues related to making Ilios more accessi and removed run ui tests Run the expensive UI tests labels Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a11y PRs and issues related to making Ilios more accessi

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants