Skip to content
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

Temp8 Fix for #4011 #4560

Merged
merged 30 commits into from
Apr 2, 2019
Merged

Temp8 Fix for #4011 #4560

merged 30 commits into from
Apr 2, 2019

Conversation

nielslyngsoe
Copy link
Member

Cleaned up ui-state variables so they are not part of data.
Plus fixed #4011

@ghost ghost assigned nielslyngsoe Feb 13, 2019
Copy link
Contributor

@Shazwazza Shazwazza left a comment

Choose a reason for hiding this comment

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

@nielslyngsoe Please remember to review your changes when submitting PRs, we should not be shipping console.log or commented out code, there are a bunch of places in this PR where this exists.

Also if you can please describe some testing notes since I'm really unsure about what this is fixing and what I'm supposed to be testing. I understand it helps fix #4011 but what else?

@bergmania
Copy link
Member

It almost works as expected. But the Image and Embed block types have some issues in splitview

image

@nielslyngsoe
Copy link
Member Author

Hi @bergmania, please review again. I have implemented the feedback and made a solution to the problems with Embed and Media.

@bergmania
Copy link
Member

@nielslyngsoe, the changes fixes the issues :)

@ghost ghost assigned bergmania Feb 18, 2019
@bergmania bergmania removed their assignment Feb 18, 2019
@ghost ghost assigned Shazwazza Feb 19, 2019
Copy link
Contributor

@Shazwazza Shazwazza left a comment

Choose a reason for hiding this comment

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

I can verify that the #4011 issue is resolved but i still don't understand all of the changes in this PR.

Like my other comment suggests (see #4560 (review)) we need testing notes, how do I know all of these changes are doing what they are supposed to do?

There are other changes in here that don't relate to the original issue too, please try keeping PRs limited to specific scope otherwise it's hard to know what to test.

I've left notes in here about binding to methods in angular which we should avoid.

@nielslyngsoe
Copy link
Member Author

Please see latest version for corrections of the PR based on the comments.

@nul800sebastiaan nul800sebastiaan changed the base branch from temp8 to dev-v8 February 19, 2019 15:04
@nielslyngsoe nielslyngsoe requested a review from Shazwazza March 5, 2019 13:28
@nielslyngsoe nielslyngsoe dismissed Shazwazza’s stale review March 5, 2019 13:29

These are corrected now

# Conflicts:
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js
Copy link
Contributor

@Shazwazza Shazwazza left a comment

Choose a reason for hiding this comment

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

There's still a lot of disgrete instead of discrete in the .less files ;) and this PR is adding more of them

Apart from that all testing looks good. I can merge if we are able to fix up the spelling

border-style: dashed;
border-color: @gray-8;
border-color: @ui-action-disgrete-border;
Copy link
Contributor

Choose a reason for hiding this comment

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

This word disgrete is showing up again in quite a few places in this PR. This is also in the main repo too, see https://github.com/umbraco/Umbraco-CMS/search?q=disgrete&unscoped_q=disgrete

Can we fix this up to be discrete (assuming that's what it supposed to be?)

@@ -1,10 +1,10 @@
<div ng-controller="Umbraco.PropertyEditors.Grid.EmbedController">

<div class="umb-editor-placeholder" ng-click="setEmbed()" ng-if="trustedValue === null">
<div class="umb-editor-placeholder" ng-click="setEmbed()" ng-if="hasEmbed() === false">
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be a function call, it should be control.value !== null, function calls in views are expensive

Copy link
Member

Choose a reason for hiding this comment

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

Turns out, it has to be control.value === null. The hasEmbed is negated.

@zpqrtbnk zpqrtbnk changed the base branch from dev-v8 to v8/dev March 30, 2019 10:26
Stephan and others added 5 commits March 30, 2019 12:13
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/common/directives/components/grid/grid.rte.directive.js
#	src/Umbraco.Web.UI.Client/src/views/components/grid/grid-rte.html
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js
#	src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.html
@bergmania
Copy link
Member

The "disgrete" vs "discrete" is fixed and merged here: #4961

@ghost ghost assigned bergmania Apr 2, 2019
@bergmania bergmania merged commit 06bee12 into v8/dev Apr 2, 2019
@bergmania bergmania deleted the temp8-4011 branch April 2, 2019 07:47
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.

V8: Issue with inherited Grid in splitview
4 participants