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

IBX-492: As an Editor, I want to see redesigned tables #1831

Merged
merged 13 commits into from
Aug 10, 2021

Conversation

@tischsoic tischsoic added Work in progress Doc needed The changes require some documentation labels Jul 27, 2021
@tischsoic tischsoic self-assigned this Jul 27, 2021
@tischsoic tischsoic force-pushed the IBX-492-as-editor-i-want-to-see-redesigned-tables branch from 0e64142 to 27e4183 Compare July 27, 2021 13:38
@@ -803,7 +803,7 @@ export default class SubItemsModule extends Component {
* @param {Object} rawPlaceholdersMap
*/
handleBulkOperationFailedNotification(failedItems, modalTableTitle, notificationMessage, rawPlaceholdersMap) {
const failedItemsData = failedItems.map((content) => ({
const failedItemsData = failedItems.map(({ content }) => ({
Copy link
Contributor Author

@tischsoic tischsoic Jul 28, 2021

Choose a reason for hiding this comment

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

Note: This fixes the broken bulk-delete-failed modal.

src/bundle/Resources/public/js/scripts/admin.table.js Outdated Show resolved Hide resolved
src/bundle/Resources/public/js/scripts/admin.table.js Outdated Show resolved Hide resolved
.replace('{{ content_name }}', contentName)
.replace('{{ content_type_name }}', contentTypeName)
.replace('{{ published_date }}', formatShortDateTime(item.ContentInfo.Content.publishedDate))
.replace('{{ order }}', selectedItems.length + index + 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add selectedItems.length + index + 1 to a variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just refactored the template. IMO it is outside the scope of this task.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no idea what the author meant.

src/bundle/Resources/public/scss/_tables.scss Outdated Show resolved Hide resolved
src/bundle/Resources/public/scss/_tables.scss Outdated Show resolved Hide resolved
src/bundle/Resources/public/scss/_tables.scss Outdated Show resolved Hide resolved
src/bundle/Resources/public/scss/_tables.scss Outdated Show resolved Hide resolved
{% set col_raw %}
{% for language_code in system_url.languageCodes %}{{ ez_admin_ui_config.languages.mappings[language_code].name }}<br>{% endfor %}
{% endset %}
{% set body_row_cols = body_row_cols|merge([{
Copy link
Contributor

@GrabowskiM GrabowskiM Aug 3, 2021

Choose a reason for hiding this comment

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

empty line before? To match previous ones (or remove from line 7 and 11)

Also in other places

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't add an empty line here to signify that this merge is related to col_row above.

@sonarcloud
Copy link

sonarcloud bot commented Aug 4, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.8% 0.8% Duplication

@tischsoic tischsoic force-pushed the IBX-612-as-editor-i-want-to-see-redesigned-input-field-in-all-states branch 2 times, most recently from 9ca8189 to fec2b02 Compare August 4, 2021 11:30
Comment on lines -106 to -110
.table &--name {
max-width: calculateRem(350px);
text-overflow: ellipsis;
overflow: hidden;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: deleted because it seems that it has never worked - checked on eZ Platform 3.4.

@tischsoic tischsoic force-pushed the IBX-492-as-editor-i-want-to-see-redesigned-tables branch from cc1bd3e to e49f9a2 Compare August 4, 2021 17:41
@tischsoic tischsoic changed the base branch from IBX-612-as-editor-i-want-to-see-redesigned-input-field-in-all-states to master August 4, 2021 17:44
@DominikaK DominikaK removed the Doc needed The changes require some documentation label Aug 5, 2021
@tischsoic tischsoic force-pushed the IBX-492-as-editor-i-want-to-see-redesigned-tables branch from e4a493e to 6496f5b Compare August 5, 2021 15:03
&__sort-column {
position: relative;
cursor: pointer;
display: inline-block;
Copy link
Contributor Author

@tischsoic tischsoic Aug 5, 2021

Choose a reason for hiding this comment

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

Note: this one display: inline-block; is important, it fixes arrow position for multiline header cell:

before after
Screenshot 2021-08-05 at 16 59 27 Screenshot 2021-08-05 at 16 59 19

@tischsoic tischsoic force-pushed the IBX-492-as-editor-i-want-to-see-redesigned-tables branch from 742153f to 16c84d2 Compare August 9, 2021 09:51
@sonarcloud
Copy link

sonarcloud bot commented Aug 9, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.9% 0.9% Duplication

@dew326 dew326 merged commit d5da1f1 into master Aug 10, 2021
@dew326 dew326 deleted the IBX-492-as-editor-i-want-to-see-redesigned-tables branch August 10, 2021 11:03
mnocon pushed a commit that referenced this pull request Oct 20, 2021
Co-authored-by: Marek Nocoń <mnocon@users.noreply.github.com>

(cherry picked from commit d5da1f1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
6 participants