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

4672-Header-Alignment-on-all-things #4715

Closed
wants to merge 1 commit into from

Conversation

inane-pixel
Copy link

@inane-pixel inane-pixel commented Oct 9, 2024

Resolves #4672

Description

Match header alignment to the contents on all tables to make contents easier to read.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

###Edited

  • Purchases → All Purchases (Quantity of items, variety of items, amount spent, FMV, purchased date – Right Aligned)
  • Inventory → items & inventory (Quantity Per Individual, Fair Market Value (per item) – Right Aligned)
  • Inventory → Inventory Adjustments (Created – Center aligned)
    Screenshot 2024-10-08 154909
    Screenshot 2024-10-08 161357
    Screenshot 2024-10-09 155342

###Checked:

  • Requests
  • Distributions
  • Partner agencies → all partners
  • Partner agencies → partner announcement
  • Inventory → Kits
  • Inventory → Barcode Items
  • Inventory → Storage Locations
  • Inventory → Transfer
  • Community → Donation Site
  • Community → All Product Drive
  • Community → New Product Drive
  • Community → Product Drive Participants
  • Community → Manufacturers
  • Community → Vendors
  • Reports → History
  • Reports → Distributions- By Country
  • Reports → Distributions- Itemized
  • Reports → Donations- Itemized

@cielf
Copy link
Collaborator

cielf commented Oct 10, 2024

Hey @inane-pixel - Thank you for doing all this checking! It might take a day or two before this gets reviewed.

One thing for future -- it's good practice to create a new branch when you are going to be submitting a PR to a project.

Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

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

Hey @inane-pixel -- I made a couple of suggestions. I'm realizing that we need to update some of the numeric columns to be right-justified, but we'll handle that overall in another issue.

<th>Amount spent</th>
<th class= "text-right">Quantity of Items</th>
<th class = "text-right">Variety of Items</th>
<th class = "text-right">Amount spent</th>
<th>FMV</th>
Copy link
Collaborator

Choose a reason for hiding this comment

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

FMV Should be aligned right

@@ -8,14 +8,14 @@
<tr>
<th>Category</th>
<th>Name</th>
<th>Quantity Per Individual</th>
<th>Fair Market Value (per item)</th>
<th class = "text-right">Quantity Per Individual</th>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree that Quantity Per Individual should be aligned right, but the information in the column isn't, so it looks weird. It'd be fine if you wanted to go into the _item_row.html.erb and make the item_row.distribution_quantity aligned right as well.

@cielf
Copy link
Collaborator

cielf commented Oct 11, 2024

Closing this pull request, as another has been opened in its place.

@cielf cielf closed this Oct 11, 2024
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.

Header Alignment -- on all things
2 participants