Skip to content

Conversation

@aelkiss
Copy link
Member

@aelkiss aelkiss commented Dec 12, 2025

@carylwyatt I think we could add a test for this along the same lines as the stuff that was done on #136 but I think we'll want that branch merged before trying to add the test. I'll leave this as draft until #136 is done but let me know what you think.

@aelkiss aelkiss requested a review from carylwyatt December 12, 2025 16:04
Copy link
Member

@carylwyatt carylwyatt left a comment

Choose a reason for hiding this comment

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

This looks good to me! Thanks :)

}
console.log(url.toString());
if (window.xyzzy) {
Copy link
Member

Choose a reason for hiding this comment

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

@aelkiss Do you happen to know what this xyzzy thing is about? I feel like I've seen this somewhere else before, but I'm not sure what it is. You removed it here, so I assume you know what it does (or doesn't do in this case)?

My guess is that it was some kind of debugging thing Roger used locally to stop the search from executing during development, but I don't really know.

Copy link
Member

Choose a reason for hiding this comment

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

I just confirmed my own suspicions by setting window.xyzzy = true in the browser. I bet that's what it was.

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 couldn't find any other references to xyzzy, so I went ahead and removed it. I had the same guess about what it was for.

@aelkiss
Copy link
Member Author

aelkiss commented Dec 15, 2025

I'm going to rebase this on ETT-827-advanced-search, then look at adding a storybook test for this case, then ask for re-review. I'll set to draft until #136 is merged.

@aelkiss aelkiss marked this pull request as draft December 15, 2025 20:47
@aelkiss aelkiss force-pushed the ETT-1154-adv-search-validation branch from 2c327d7 to 82bc9b2 Compare December 15, 2025 21:55
@aelkiss aelkiss changed the base branch from main to ETT-827-advanced-search December 15, 2025 21:55
@aelkiss aelkiss force-pushed the ETT-1154-adv-search-validation branch from 82bc9b2 to f4e7d17 Compare December 15, 2025 21:58
@aelkiss aelkiss requested a review from carylwyatt December 15, 2025 21:58
@aelkiss
Copy link
Member Author

aelkiss commented Dec 15, 2025

This is now based on ETT-827-advanced-search and has storybook tests; ready for re-review. I figure after #136 is merged we can rebase against main.

Base automatically changed from ETT-827-advanced-search to main December 16, 2025 14:15
@aelkiss aelkiss marked this pull request as ready for review December 16, 2025 14:18
@aelkiss
Copy link
Member Author

aelkiss commented Dec 16, 2025

@carylwyatt Ready for re-review

@carylwyatt
Copy link
Member

I figure after #136 is merged we can rebase against main.

I think this does need a rebase against main. The storybook is catching errors for things I already fixed in those a11y bugs I merged last week, and it's claiming the tests I wrote for Advanced Search are unreviewed... the whole thing is weird. I manually re-ran the chromatic build just in case there was a weird mis-match, but I think it just needs to be rebased.

* Ensure form isn't submitted
* Add storybook stories for invalid date & missing search
@aelkiss aelkiss force-pushed the ETT-1154-adv-search-validation branch from f4e7d17 to 2d96e3b Compare December 16, 2025 14:38
@aelkiss
Copy link
Member Author

aelkiss commented Dec 16, 2025

Rebased & force pushed.

Copy link
Member

@carylwyatt carylwyatt left a comment

Choose a reason for hiding this comment

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

Thanks for the rebase, that fixed the chromatic issues. This looks good!

@aelkiss aelkiss merged commit 4529a09 into main Dec 16, 2025
5 checks passed
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