brackets-response icon indicating copy to clipboard operation
brackets-response copied to clipboard

Merge repository into original repository

Open ikbenben opened this issue 11 years ago • 3 comments

This brackets-response repository is a copy of the Response-for-brackets repository but instead of creating a fork of the original repository, a brand new repository was created. This has resulted into two code bases with the code deviating from each other and possibly duplicate work being done.

We should merge the code back into the Response-for-brackets and delete this repository.

There are a number of issues that have been addressed on the Response-for-brackets repository now and a new "Response for Brackets - original" extension has been uploaded to the extension manager which is based on the brimelow Response-for-brackets repository with all the fixes found in https://github.com/ikbenben/Response-for-Brackets/tree/all-fixes

Can we discuss how we can achieve this goal? I have time to work on it at the moment

ikbenben avatar Dec 01 '14 17:12 ikbenben

You can send pull request here. ref. #19

kidwm avatar Dec 02 '14 03:12 kidwm

I disagree. It's great that you have done some work but you should not have created a new repository. Instead you should have forked Lee's original repository so there is one code base. If you read Lee's post that you reference (which was posted as a result of this confusion and me talking with him), you will see that he intends to merge your code back into his repository.

We should get the code merged back into Lee's code base. Why would we want 2 code bases and duplicate the effort?

I've been fixing code on a fork of Lee's code base.

The question is how we do it.

My first thought is to review the list of open and closed issues that have been opened in this repository and determine which ones are still valid in Lee's repository. The valid issues can then be duplicated over to Lee's repository and then merge any code fixes for the issues that have been closed in this repository.

Additionally, it would be good for you to highlight what features you have added if any.

ikbenben avatar Dec 02 '14 09:12 ikbenben

I've done an analysis of the commits in your repository. I've listed each commit below with comments for us to discuss. I've highlighted commits that require action with 5 asterixes (*****)

  • 68dd3bf (origin/master, origin/HEAD) use Live Preview Base URL from Project Settings *****
    • not sure what the point of this is. the previewPath being created in kidwm is using the ProjectManager.getBaseUrl property if it is set but it is not using the filename of the current loaded html file. To me this is confusing. needs some discussion on the implementation details
  • 8ab989a (HEAD, myfork/master, master) fix path handling for Windows *****
    • this code is no longer used in original. it is now using Filesystem.resolve as part of the fix to not overwriting media-queries on subsequent loads. But do have a concern as the code to create the media-queries.css is not using a utf8 flag so not sure what charset original is creating the file in.
  • 86fcde4 fix for brackets 0.44, close #9
    • no changes required. update for selecting triangle but this is commented out in original.
  • 1cb3a5a add some checks to prevent error *****
    • does some error handling for triangle / triangleOffset but this is all commented out in original. will remove the triangle code from original so the code is cleaner
    • in kidwm, there is a check to see if inspectButton is already set and if so, then it just returns. not sure how the user can turn of the inspect then as you can no longer 'toggle'. on the first toggle to turn on inspect it will turn on. but when the user clicks on the inspect toggle again to turn it off, then the code to turn off inspect will never run. won't implement this change
  • cd55706 fix version in package.json, close #1
    • no changes required
  • b56dda5 Create package.json
    • package.json has already been created in original
  • 2832fac Create README.md
    • readme already exists in original but needs to be updated to reflect current status
  • 4c96391 add indicator of frame width *****
    • not implemented yet. but it should be enhanced to be an editable label so users can use that to specify the width as an alternative to using the slider. It should all be positioned beside the + button from a UX perspective
  • 03b8126 add a button to exit responsive mode
    • not required in original as the toolbar icon can be used to open and close the responsive view following the same behaviour of other toolbar features like photoshop preview and live edit
  • f6323d8 Only activate inline editor in responsive mode
    • already address but using a more robust solution. Original doesn't just stop the inline editor from loading. Instead it fallsback to the original editor
  • b2b9ceb Prevent creating UI more than once
    • already addressed but using a more robust solution to allow responsive mode to be turned off and on using toolbar icon. However there needs some futher enhancements as it is not possible to leave responsive mode if viewing a non-html document. Need to handle switching between documents better on the whole.
  • e4a7dc9 move temp.css to memory *****
    • why do we have temp.css? this seems to be partially implemented in original. ResponseInlieEdit.js is setting this.doc to be a InMemoryFile called temp-response.css but main.js doesn't have the appropriate changes. kidwm version has updated main.js to use the InMemoryFile
  • d803c76 fix inline editor
    • already addressed but in a different manner. in kidwm, ResponseInlineEdit.js is still creating the div.inlineEditorHolder on load but then appends the inlinemark to div.inline-text-editor instead. div.inlineEditorHolder is not used at all. In original, the inlinemark is still appended to div.inlineEditorHolder but the css has been updated to display it properly. I think we can leave as is
  • c2448ef remove using getPropertyShorthand()
    • no changes required. already implemented
  • 66e6f94 add priority of inline editor provider
    • no changes required. already implemented
  • f66c1ab add files
    • no changes required. already implemented

ikbenben avatar Dec 02 '14 14:12 ikbenben