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
Add multiple files per snippet #43
Conversation
Hello @vavgustov, Have you had the time to review my PR? Let me know if I can improve something :) |
hi @GWillmann , I apologize for the delay, I have very limited time now. I'll check your PR at 04/21. |
…snibox into Kinoba-pr/add-files-to-snippets
@see: chromedriver-helper was deprecated at https://github.com/flavorjones/chromedriver-helper
- 1. Readd title attribute to Snippet model and makes description optional - 2. `Add snippet file` button was renamed to `Add file` and only one occurence of the button was kept - 3. Snippet files are now callapsible in show and edit mode - 4. Remove `delete` button in show mode for snippet files - 5. Move labels above snippet files in create/edit mode Adds tests for snippet files callapsible capability
Hi @vavgustov, thanks for your feedback! I have taken them into account in my PR. Quick info: Commit 98779e6Removes Commit bf4d058
I also added tests for snippet files callapsible capability Finally I am not sure I understood correctly your comment:
Could you rephrase it please? |
…snibox into Kinoba-pr/add-files-to-snippets
…rimental UI improvements for show mode.
awesome, thanks! don't worry about 6, I'll take care of it. also I'll make some experiments with existing UI soon and commit them directly to your PR (few small changes already added). |
…clipboard for collapsed files.
@GWillmann can you replace e.g. Exception: requests to backend, e.g. it's ok to have: for PS don't forget to pull the changes for this PR :) |
Thanks for your feedbacks @vavgustov! I have changed made the changes you requested. Do you think you will be able to merge this PR soon? 🙂 |
thanks! |
…saved. Fixed issues for create/update -> cancel workflow.
…t of files. Cleanup.
ok I added some changes and merged to master. I would like to make more but don't have a time as usual 😃. Thanks for your efforts! |
What an awesome project Snibox is! I hope my contribution make it even better.
This PR adds support of multiple files per snippet.
We needed this kind of feature at Kinoba and I saw that several people wanted it also
I added the following model:
SnippetFile
which belong_to aSnippet
.Also I was inspired by GitHub's snippet system and I replace the Snippet title by a description.
I also changed the tests according to the new structure and added new ones:
I am not extremely happy with the design I came up when one edits a
Snippet
, if you guys have some suggestions I'd be happy to change it.