-
Notifications
You must be signed in to change notification settings - Fork 324
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
Show error pop-up when failing to rename a project #6366
Conversation
4fed06f
to
cd96702
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.
Instead of reverting to an old name, the error should appear and the name should not be accepted, leaving the text field in the edit mode. If someone tried renaming the project to "really_long_and_complex name" and made a typo, reverting the name without giving the user the ability to fix the typo is a really bad UX.
@Procrat So, this would need checking it on our side (We cannot keep edit mode waiting for the engine's response). As the project's name must be a valid identifier, we could just check if it's parsed as Cons (Var also could be accepted, but I'm not sure). Reverting name when engine returned error should be still kept. |
@Procrat please update the PR description and the video with the new behavior. |
Done. |
app/gui/view/graph-editor/src/component/breadcrumbs/project_name.rs
Outdated
Show resolved
Hide resolved
* develop: Turn null into UnexpectedExpression when Union type is incomplete (#6415) Ensure that IO.println does not fail if `to_text` returned a non-Text value. (#6223) Improve inlining of `<|` on (GraalVM EE) (#6384) Feat: update templates styles and feature (#6071) 5127 Add Table.parse_to_columns to parse a single column to a set of columns. (#6383) URL handling (#6243) Exclude comparison operators from modifier logic (#6370) Better cleanup of project management test suite (#6392) Fix all eslint errors (#6267) Infer SQLite types locally (#6381) Vector Editor with List Editor and adding elements. (#6363) Add typechecks to Aggregate and Cross Tab (#6380) Forbid edits in read-only mode (#6342) Add Table.parse_text_to_table to convert Text to a Table. (#6294) Adding typechecks to Column Operations (#6298) Rollback cloud options groups (#6331) Project folder not renamed after project name change (#6369) Add `replace`, `trim` to Column. Better number parsing. (#6253) Read-only mode for controllers (#6259) Prevent default for all events, fixing multiple IDE bugs (#6364)
Good catch, @vitvakatu. I've found the reason: I had changed the pop-up's layer to the default layer of |
You can try it out on this branch: |
This is in the log:
It might be relevant, as I've never seen it come up before Edit: The bug always happens, this warning sometimes does not. Probably not related. |
It seems related to using multiple fonts in the same layer. If I remove |
I have found the problem. I'll have a fix ready later today. |
…-project-with-space-5065
It seems to work with the changes in #6477, so once that's merged, this PR should be good for another round of QA. |
@Procrat who is doing a QA here? can we merge it? |
I think Ilia is quite overloaded and will be later today, @mwu-tow or @MichaelMauderer can you do QA here? |
I can have a look today. |
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.
Sorry for the delay, QA passed. Next time please merge develop into this branch, it didn't work without fixes from there. I made a merge myself, please check for conflicts before merging this PR.
* develop: (28 commits) Add tests for Date.until, Date.next and Date.previous. (#6606) Improve `Non_Unique_Primary_Key` error, split file format detection into read/write, improve SQLite format detection (#6604) tokenize_to_columns or parse_to_columns results in a single column we shouldn't add the 1 (#6607) Fix node editing race condition (#6594) Add format to the in-memory Column (#6538) Fix dashboard issues (part 2) (#6511) Fix visualisation type selector artifacts rendered after node preview visualisation was closed. (#6575) Revert typescript CI Lint changes (#6602) Fix the Engine version check in GUI (#6570) Show error pop-up when failing to rename a project (#6366) Small changes from Book Club issues (#6533) "at_least_one" flag for tokenize_to_rows (#6539) Benchmark Engine job runs only engine, not Enso benchmarks (#6534) Catch 5813 and avoid crash (#6585) Fix opening links in desktop IDE (#6507) Identify SyntaxError exception and avoid printing a stack trace (#6574) Fix dashboard issues (#6502) Let ChangesetBuilder.invalidated search even container elements (#6548) Fix #5075: stop panning on full-screen visualisation (#6530) Only `Join_Kind.Inner` removes the common-named columns (#6564) ...
Pull Request Description
Closes #5065: when a project can't be renamed, it now shows an error pop-up and stays in edit mode.
space3.mp4
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Unit tests have been written where possible../run ide build
.