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

add link to create new variant if none #5902

Closed
wants to merge 2 commits into from

Conversation

zachariah-at-msupply
Copy link
Contributor

Fixes Part 1 of #5554

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

Adds a create new variant link on the catalogue>item>variants tab, if there are no variants present.

Screenshot 2024-12-30 at 09 02 38

πŸ’Œ Any notes for the reviewer?

The capitalisation seems a bit dodgy. It seems all the 'create a new one' links will be similar. Using a function called toLocaleLowerCase() in the NothingHere.tsx file can solve this - should I create an issue to do that?

πŸ§ͺ Testing

  • log in to your open mSupply central server
  • go to cataogue>item page and then click on an item that has no variants to see its detail view
  • go to the variants tab
  • see if the link that says 'create a new one' functions the same as the 'add variant' button on the top right of the variants tab page.

πŸ“ƒ 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 bug Something is borken feature: GAPS Team Korimako LachΓ©, Aimee, Noel John, and Zachariah 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
4.99 MB 4.99 MB 67 B (0.00%)

@zachariah-at-msupply zachariah-at-msupply deleted the 5554-item-variant-usability branch December 29, 2024 21:33
@zachariah-at-msupply
Copy link
Contributor Author

I have closed this PR and deleted the branch in order to make a branch for each part of issue 5554, and make PRs for them separately, since this was requested in the discussion of the original issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is borken feature: GAPS Team Korimako LachΓ©, Aimee, Noel John, and Zachariah
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant