Skip to content

Conversation

maze-runnar
Copy link
Contributor

Fixes #5462

scrnli_11_3_2020_11-07-59 AM

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@vercel
Copy link

vercel bot commented Nov 3, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/3k61ezqy9
✅ Preview: https://open-event-frontend-git-sponsor-box.eventyay.vercel.app

@codecov
Copy link

codecov bot commented Nov 3, 2020

Codecov Report

Merging #5466 (bd334e2) into development (7d49a44) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #5466      +/-   ##
===============================================
+ Coverage        23.71%   23.75%   +0.04%     
===============================================
  Files              498      498              
  Lines             5255     5246       -9     
  Branches            44       44              
===============================================
  Hits              1246     1246              
+ Misses            4003     3994       -9     
  Partials             6        6              
Impacted Files Coverage Δ
app/controllers/events/view/index.js 0.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d49a44...6b6aa49. Read the comment docs.

@iamareebjamal iamareebjamal changed the title enh: simplify sponsor box fix: simplify sponsor box Nov 3, 2020
@auto-label auto-label bot added the fix label Nov 3, 2020
Copy link
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

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

Screenshot from 2020-11-03 11-46-56

  • Please use the same spacing to the box edge for the "Edit" button as in other boxes
  • Please decrease the space between previous/next button and the above table

<div class="header">{{t 'Event sponsors'}}</div>
</div>
<div class="content">
<div class="content" style="width:94%;margin-left:3%;">
Copy link
Member

Choose a reason for hiding this comment

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

Why the need for inline styles?

// @action
// editSponsor() {
// this.transitionToRoute('events.view.edit.sponsors');
// }
Copy link
Member

Choose a reason for hiding this comment

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

Delete the commented lines please

@iamareebjamal
Copy link
Member

@maze-runnar Please check the comments from @mariobehling and me about spacing and inline styles. Please try to reduce request review cycles

@iamareebjamal
Copy link
Member

I know it is for overriding CSS, but it shouldn't be needed

@iamareebjamal
Copy link
Member

Code looks good to me. Please resolve conflicts

@mariobehling
Copy link
Member

Let's try to standardize the design.

  • Please make the table width the same width as the table in the above box.
  • Please use the entire width of the table
    • expand the width of the sponsor names
    • move Type and Level to the right
  • Reduce the space of the previous/next buttons to the above table

Screenshot from 2020-11-06 22-19-11

@mariobehling
Copy link
Member

I see the non-functional search box we already got rid of is back. It seems like you are working on different versions, cause I do not see it in your screenshot.

@maze-runnar
Copy link
Contributor Author

  • Please make the table width the same width as the table in the above box.

@iamareebjamal i have already used 15 wide column class, now for this I have to add width css.

@iamareebjamal
Copy link
Member

Go ahead

@maze-runnar
Copy link
Contributor Author

Reduce the space of the previous/next buttons to the above table

@iamareebjamal what about this? the space is kind of fix for every table.

@maze-runnar
Copy link
Contributor Author

maze-runnar commented Nov 7, 2020

  • Reduce the space of the previous/next buttons to the above table this is remaining to do.But it will change it in every place
    scrnli_11_7_2020_6-14-44 PM

@iamareebjamal
Copy link
Member

Yes, reduce it for every table please

@iamareebjamal
Copy link
Member

Screenshot? Also I think the only thing which was needing change was pagination padding, what effect does changing table padding have in other sections of the site?

@maze-runnar
Copy link
Contributor Author

scrnli_11_8_2020_2-09-55 PM
scrnli_11_8_2020_2-09-06 PM

@mariobehling
Copy link
Member

According to your screenshots you are working with outdated code, which is confusing for me when I review it. So, I am updating the branch.

Copy link
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

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

There are few small issues. Maybe it is difficult for you to see it, but usually from a design perspective across all boxes the spacing of the heading and text should be the same. Below table spacing should be the same as the spacing of the heading. I tried to show it in my previous screenshot. I do not know how to make it clearer.

Could you also please do the following, please:

  • Delete the column "Level" (sorry for the addition, but looking over it carefully, it does not really seem necessary here)
  • Make the "Name" column wider. We have lots of space left on the right-hand side.
  • Ensure the list really only shows the number of sponsors that are chosen: Here it shows "10", but 11 sponsors are shown in the box. There is an error somewhere.

Screenshot from 2020-11-10 13-17-35

@iamareebjamal
Copy link
Member

@mariobehling Are you talking about the space between the navigation panel and the end of the table? That is part of the table UI and independent of the sponsors section. The space was already reduced and can be reduced further, but it'll stay independent of the space above the table, and for example, look different in other parts of the UI. So, we can make it look equal here but then it'll make it look unequal in other parts of the UI wherever the table is used, so it's a question of trade-off and we can only use a constant spacing in the component.

About the 11 sponsors, that is another issue but can be taken in this as well, but it is not a UI change mentioned in the issue or something which broke due to these changes.

@mariobehling
Copy link
Member

@iamareebjamal I will file a separate issue later about standardization of design on dashboard. Thanks for taking in things that were not in the original issue! Appreciate it.

@iamareebjamal iamareebjamal merged commit 91a069b into fossasia:development Nov 18, 2020
@maze-runnar maze-runnar deleted the sponsor-box branch November 18, 2020 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Event Dashboard: Fix and Enhance Sponsorbox
3 participants