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

Item total values #5906

Merged
merged 5 commits into from
Jan 3, 2025
Merged

Item total values #5906

merged 5 commits into from
Jan 3, 2025

Conversation

mark-prins
Copy link
Collaborator

@mark-prins mark-prins commented Dec 29, 2024

Fixes #5903

πŸ‘©πŸ»β€πŸ’» What does this PR do?

Required a bit more change than I was hoping for. This was a quick fix to make the labels consistent and it's taken a few more changes than expected.

Changes

  • Don't make the sort by text on column headers lowercase
  • Change the item list view to show total stock for SOH and MOS values
  • Change the item detail view toolbar stats to show total stock for SOH and MOS values
  • Update titles and column headers as needed
  • Left nav shows 'Outbound Shipments' ( when not selected )
  • The ghost column in the stock view is fixed ( no header label )

Side quest

this bothers me:
Screenshot 2024-12-30 at 10 43 21β€―AM

So I've done a quick fix ( we intend to rework the left nav, so no reason to spend a long time on it )

Screenshot 2024-12-30 at 11 10 38β€―AM Screenshot 2024-12-30 at 11 10 43β€―AM

Side quest

The stock view is showing a column with no label:

Screenshot 2024-12-30 at 9 07 07β€―AM

Perhaps due to the pack variant changes? I've fixed

πŸ’Œ Any notes for the reviewer?

Please check the Russian translation for 'Stock on Hand' I've had to remove 'available' from translations and that one I wasn't sure about

πŸ§ͺ Testing

  • Item list view shows total SOH and MOS
  • Item detail view shows total SOH and MOS
  • Left nav shows full 'Outbound Shipments'
  • Pack Qty in stock list view has a header
  • Sort by [column name] shows without lowercasing

πŸ“ƒ Documentation

  • Part of an epic: documentation will be completed for the feature as a whole
  • No documentation required: no user facing changes or a bug fix which isn't a change in behaviour
  • These areas should be updated or checked:
    1.
    2.

@github-actions github-actions bot added this to the v2.5.0 milestone Dec 29, 2024
@github-actions github-actions bot added enhancement New feature or request needs triage labels Dec 29, 2024
Copy link

github-actions bot commented Dec 29, 2024

Bundle size difference

Comparing this PR to main

Old size New size Diff
5.1 MB 5.1 MB 0 B (0.00%)

Copy link
Contributor

@roxy-dao roxy-dao left a comment

Choose a reason for hiding this comment

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

Thanks Mark~ just gotta fix the paths and it's all gucci (:

@@ -1712,12 +1714,12 @@
"title.repack-details": "Repack Details",
"title.sensor-details": "Sensor Details",
"title.stock-line-details": "Stock Line Details",
"title.stock-on-hand": "Available Stock",
"title.stock-on-hand": "Stock on Hand",
Copy link
Contributor

Choose a reason for hiding this comment

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

Since our-soh says Our available Stock on Hand should this also say available stock on hand? πŸ€”

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, this is correct. it's only used by the item stats panel and that's now showing total soh and not available soh.

Comment on lines 5 to 6
import { ReasonOptionRowFragmentDoc } from '../../../../../packages/system/src/ReasonOption/api/operations.generated';
import { NameRowFragmentDoc } from '../../../../../packages/system/src/Name/api/operations.generated';
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix the paths?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks. the gql generation threw a few curve balls.. it's still not totally reliable

@mark-prins mark-prins merged commit 8e084a1 into develop Jan 3, 2025
4 of 5 checks passed
@mark-prins mark-prins deleted the 5903-item-total-values branch January 3, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Item to show total values not available
2 participants