-
Notifications
You must be signed in to change notification settings - Fork 0
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
adding iterators #83
adding iterators #83
Conversation
c6dba71
to
9be7ca4
Compare
grid-template-columns: 300px auto; | ||
grid-template-columns: 275px auto; | ||
height: 100vh; | ||
overflow: hidden; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was able to simplify the CSS grid stuff a bit.
padding-top: 20px; | ||
} | ||
.list-file-title { | ||
padding-bottom: 20px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`; | ||
} | ||
_handleBackClick() { | ||
this._updateSearchParams({ file: undefined, test: undefined }); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and _handleListTestClick
didn't end up being necessary due to the <a href>
doing the same thing -- it was actually firing things twice.
@@ -312,6 +306,7 @@ class App extends LitElement { | |||
return renderTabButtons('browser results', tabs, index => { | |||
this._selectedBrowserIndex = index; | |||
this.shadowRoot.querySelector('.tab-panels').scrollTo(0, 0); | |||
this.requestUpdate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_selectedBrowserIndex
isn't a reactive state property anymore since we modify it ourselves. But in this case they've selected a new tab so we force a re-render.
this._selectedBrowserIndex = Math.max( | ||
browsers.findIndex((b) => browserResults.get(b.name) < tests.length), | ||
0 | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to remember the index we automatically pick for them so that it stays as they iterate.
9be7ca4
to
b729d4c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those chevrons are huge lol!
Haha I know... they're our "tier 2" chevrons but could maybe use some slimming eh. |
Haha yeah I wasn't too worried about it for that reason, but they do look much better! |
🎉 This PR is included in version 0.20.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
You can now iterate between test files or tests within files. The "Home" button is now a breadcrumb on the left, and I made a few other minor stylistic tweaks.