-
Notifications
You must be signed in to change notification settings - Fork 393
Searchbox to filter notebook list #1383
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
base: master
Are you sure you want to change the base?
Conversation
Frontend-build fails with a strange error:
Can you please retry? I have no permissions for this. |
I guess the error is because i'm missing some permissions on the project, can you please check? |
/** Creates a rope from a character array. */ | ||
def apply(a: Array[Char]): Rope = | ||
if (a == null || a.isEmpty) { | ||
if (a == null || a.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.
Could you explain the reasoning behind this change?
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.
Polynote build fails in my environment on this point. As far as i understood isEmpty needs an implicit conversion, and there is a conflict in the implicit resolution with JDK15+, see also scala/bug#12172 and the proposed simple workaround scala/bug#12172 (comment).
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.
Gotcha - we develop internally with Polynote on JDK 8, which is probably the reason for this issue. Is it possible to try this out local on JDK 8? We'd prefer to not have to change this if possible, but I can also submit the change to your branch if not.
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.
Yes, this works on JDK 8, but JDK 8 is outdated in most of the customer environments i work. In my opinion a Polynote build should also work with current JDKs, but you can compile with compatibility settings for JDK 8, e.g. targetCompatibility 1.8. What do you think?
Hey @zzeekk! Thanks for the PR - definitely a needed feature. Could you include a screenshot of what this looks like now (or perhaps a quick demo video showing the filtering)? I'm not sure why the build is failing - I will look into it in a bit as we haven't seen this error pop up before. |
Hey @zzeekk! It looks like Jeremy has fixed the build errors - would you mind merging master into this branch? That should solve the build error. |
@omidmogasemi: Build works, again. Great! |
Thanks for the demo! It LGTM - thanks for making the search recursive as well down the branches. cc @jeremyrsmith @jonathanindig for thoughts on the UI. |
top: .1em; | ||
bottom: .1em; |
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.
Curious for the decision to remove these paddings - this a pretty fragile area of our CSS.
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.
Hi @omidmogasemi, to my knowlegde this part of css is only used in the header of notebook and kernel panel, and that's where we need flexbox layout to scale the search box properly
-> removing absolut positioning from right button and make searchbox using the free space shifts the right button again to the right.
As the buttons are no longer positioned absolute, in my opinion the alignment of the buttons has to just look nice again in end and be stable on different browsers and media queries. Thats what it does, see video below. Please check comment below to re-test on your side again...
.right-buttons { | ||
right: 0; | ||
text-align: right; | ||
padding-right: .25em; |
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.
Same here. I think making this display: flex
on line 1498 makes sense, but we do lose these area paddings, no?
Hi @omidmogasemi, we had a similar issue when upgrading from 0.4.x to 0.5 on some environments. It turned out to be a caching issue of style sheets of Polynote, means the browser used still old stylesheets together with HTML-code generated by the new code base. Can you retry to refresh Polynote in your browser with Shift-F5? This resolved the problems in our environments. Attached a small video how resizing looks like in my Chrome browser, but we also tried on Edge and others: |
Hello,
I have a implemented a small practical improvement in the frontend to filter the notebook list by a search box. It helps finding notebooks by name in large repositories.
It implements a case-insensitive filter on the path of the entries of the tree view.
It needed some CSS adaptions to make the searchbox in the ui-panel-header adapting its size.
Hope this fits with your idea and coding practices for Polynote, otherwise let me know.
Best, zzeekk