-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat: Add toggle for editor line length per user #6569
base: main
Are you sure you want to change the base?
feat: Add toggle for editor line length per user #6569
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Hi @azri-cs 👋 Looks like this is your first PR to text. 🎉 ❤️ Thanks a lot for contributing! I hope we can walk you through finalizing this. First of all, let's check in with @nextcloud/designers to hear if the ui matches their expectations. In the meantime we can try and address the failing tests: DCOThe DCO check is complaining about your signoff message in the commits like this: If you use git on the command line you can add a signoff message to the last commit with Lint PHP-csAt first sight this looks like it's mostly about indentation. Can you see the error message the workflow printed? It has a detailed diff of what needs to be changed. PsalmThis also looks related: I hope these are helpful pointers to address these. If you get stuck feel free to ask. I will also take a first look at the code to see if I find something to comment upon. |
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.
Code wise this looks good.
I noticed that you added a string config setting - but I think a boolean would do. If I read #4024 correctly it's either full width or default line length.
Upon reading back the requirements, yes I agree boolean is better since it's a checkbox and there are only 1 option and 1 default. My latest push have implemented this. |
Dear @azri-cs Thanks for changing the approach and using a boolean. That looks good to me. The linters are still not quite happy. They mostly disagree about the use of whitespace here and there. For php i'm less familiar but my understanding is that you will need to run |
Sorry for the inconvenience caused. I've followed your advice to use |
Hey @azri-cs Could you squash the commits? |
236e15d
to
e67590a
Compare
No worries. I've squashed my commits into one commit. Thanks a lot, I've learnt a lot. |
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.
Very nice contribution @azri-cs! :) I only have 1 feedback: I would expect a setting like this to be in the collapsed part of the toolbar along with these other more info/settings like items, as the "people" menu is more focused on collaboration and sharing.
(Also, this setting is disabled by default, right?)
@jancborchardt I'm considering this as a follow up, as I scoped the task for @azri-cs to put it explicitly in that menu in the beginning. |
@juliusknorr @azri-cs sure, doing it as a follow-up is fine for me too. :) My remark does make sense though right, or would you still prefer your originally suggested placement? |
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.
The code looks good and works like a charm. Let's get this in as a first iteration and I'll file follow up issues for polishing.
I'm undecided on that part as currently all the menu items are just buttons and having a global toggle there seems out of place a bit, but I also see that the "collaborator" menu is not ideal as well. |
@azri-cs Thanks for the fixes as well. Seems we have a conflicting file meanwhile. Could you rebase your changes against the latest main branch and resolve the conflict? |
Collected follow up topics in the pr description to file in separate issues after merging the first step |
Head branch was pushed to by a user without write access
Sorry @juliusknorr , I'm facing few issues:
Are these okay? If not, what should I do? |
Would be great if you could rebase and squash it into one commit locally. Unfortunately GitHub doesn't allow that with the conflict reduction web ui |
dda40d0
to
5856b02
Compare
Signed-off-by: Azri Adam <[email protected]>
5856b02
to
9f0b406
Compare
Hi Julius, Is this correct? How can I resolve the new conflicting files as I did not receive the conflict files locally to solve even when running |
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Looks like something with the earlier squash went wrong. Now the branch includes commits that have already been on main branch etc. The last good commit seems to have been e67590a (before #6569 (comment)) So I suggest you start again from there. Could you try if this works for you: git reset --hard e67590af683d7d85c9c7c49023aa4cea8abd4e0e It does not work for me - but that might be because I do not have that commit in my own git repo as it only was on your repo. |
One additional hint your origin remote is probably your fork with is behind the upstream repository. Mabye also try updating your fork with the latest changes on the main branch at https://github.com/azri-cs/text |
📝 Summary
Fixes #4024
After some direct alignment with designers, we basically want to offer a per user setting to allow users changing between a full line length and a compact line length display mode.
🖼️ Screenshots
B | A
🏁 Checklist
npm run lint
/npm run stylelint
/composer run cs:check
)Follow up