Skip to content

New design generators#104

Merged
lorenzo merged 10 commits intocakephp:1.1from
midorikocak:new-design
Jun 10, 2015
Merged

New design generators#104
lorenzo merged 10 commits intocakephp:1.1from
midorikocak:new-design

Conversation

@midorikocak
Copy link
Copy Markdown
Contributor

I think I have to update tests too...

@markstory markstory added this to the 1.1 milestone May 30, 2015
@markstory
Copy link
Copy Markdown
Member

Looks like the tests do need to be updated. I would wait until the feedback rounds are done before updating the test to save some work.

@AD7six
Copy link
Copy Markdown
Member

AD7six commented May 30, 2015

You can auto-update the test expectations by temporarily modifying the string compare trait like so:

    public function assertSameAsFile($path, $result)
    {
        $path = $this->_compareBasePath . $path;
        file_put_contents($path, $result); // <-
        $expected = file_get_contents($path);
        $this->assertTextEquals($expected, $result);
    }

Then running the affected/failing tests, committing and pushing the changes to the tests folder.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation seems off.

@midorikocak
Copy link
Copy Markdown
Contributor Author

is there any cakephp 3 bundle for textmate?

@markstory
Copy link
Copy Markdown
Member

@mtkocak I'm not sure, I've not used textmate in years. However, you may be able to find a generic PHP bundle that supports PSR-2 formatting.

@midorikocak
Copy link
Copy Markdown
Contributor Author

I think I did it. I updated all tests manually and tested using phpunit. by the way @markstory what ide do you use?

@midorikocak
Copy link
Copy Markdown
Contributor Author

coverage/coveralls ? @AD7six

@AD7six
Copy link
Copy Markdown
Member

AD7six commented Jun 9, 2015

Coverage decreased (-0.2%)

You can ignore that @mtkocak - all the test files are missing a newline at the end of the file. Apart from that 👍 great work =).

@midorikocak
Copy link
Copy Markdown
Contributor Author

oh I see. I got coverage problem because I did not fetch 1.1 :P I am going to add new lines too

@markstory
Copy link
Copy Markdown
Member

@mtkocak Just vim with some config/plugins.

@midorikocak
Copy link
Copy Markdown
Contributor Author

@markstory thanks for the advice, I will try that.

@lorenzo
Copy link
Copy Markdown
Member

lorenzo commented Jun 10, 2015

Great job @mtkocak 👏

lorenzo added a commit that referenced this pull request Jun 10, 2015
@lorenzo lorenzo merged commit cdaed10 into cakephp:1.1 Jun 10, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that class templateTaskComments was already used earlier but it should be switched to dashed version for consistency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there ways to do away with the inline classes?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how you can do away with classes for column widths.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By using css (or sass or scss or less).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jhli What's wrong with existing css classes used?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not depending on whatever-framework-was used style.
being able to replace the presentation.
http://alistapart.com/article/separationdilemma
http://alistapart.com/column/no-good-can-come-of-bad-code

In this case the way without a preprocessor would be to copy the class attribute to css as a comment also refering to the franework utilized AND below create the very few selectors and include their properties.

I am very happy with the inprovement though as now it looks good!

@midorikocak midorikocak deleted the new-design branch June 11, 2015 14:54
@midorikocak
Copy link
Copy Markdown
Contributor Author

I am totally lost.

@ionas
Copy link
Copy Markdown
Contributor

ionas commented Jun 11, 2015

Don't worry. It got merged, it is tons better now. Thank you 👍 for making me love cake bake output visually again! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants