Skip to content

Quality of life updates to the inventory: barcode display, richer data table #1163

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

Merged
merged 6 commits into from
May 7, 2025

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented May 1, 2025

This PR improves the inventory table with:

  • barcode display
  • additional data table filtering and display

Also:

Copy link

codecov bot commented May 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.22%. Comparing base (20617b8) to head (48e58ff).
⚠️ Report is 97 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1163      +/-   ##
==========================================
+ Coverage   71.19%   71.22%   +0.02%     
==========================================
  Files          64       64              
  Lines        4236     4240       +4     
==========================================
+ Hits         3016     3020       +4     
  Misses       1220     1220              
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/routes/v0_1/items.py 83.59% <100.00%> (+0.20%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

cypress bot commented May 1, 2025

datalab    Run #3271

Run Properties:  status check passed Passed #3271  •  git commit 2dad2b7680 ℹ️: Merge 48e58ff7ce67df358983c4726d545fe424ee9e15 into 20617b8917167414470e24a59da3...
Project datalab
Branch Review ml-evs/inventory-qol
Run status status check passed Passed #3271
Run duration 07m 36s
Commit git commit 2dad2b7680 ℹ️: Merge 48e58ff7ce67df358983c4726d545fe424ee9e15 into 20617b8917167414470e24a59da3...
Committer Matthew Evans
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 504
View all changes introduced in this branch ↗︎

@ml-evs
Copy link
Member Author

ml-evs commented May 2, 2025

This is semi-blocked by #1124 (in that I want to use it to set the barcode to be a non-default column that user's can remember)

@ml-evs ml-evs added webapp For issues/PRs pertaining to the web interface polish features that aren't useful but add polish blocked labels May 2, 2025
@ml-evs ml-evs force-pushed the ml-evs/inventory-qol branch from 61f0b0b to da3b307 Compare May 4, 2025 14:46
@ml-evs ml-evs force-pushed the ml-evs/inventory-qol branch from 67f4cd0 to 4bba2df Compare May 7, 2025 12:08
BenjaminCharmes
BenjaminCharmes previously approved these changes May 7, 2025
Copy link
Contributor

@BenjaminCharmes BenjaminCharmes left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Everything is working perfectly.
Just a few minor comments.

@ml-evs
Copy link
Member Author

ml-evs commented May 7, 2025

LGTM 👍 Everything is working perfectly. Just a few minor comments.

Thanks! All fixed so I'll merge when the tests pass.

@ml-evs ml-evs force-pushed the ml-evs/inventory-qol branch 6 times, most recently from 9bef01a to 17753b4 Compare May 7, 2025 21:23
@ml-evs ml-evs force-pushed the ml-evs/inventory-qol branch from 17753b4 to 9b5a872 Compare May 7, 2025 21:23
ml-evs and others added 5 commits May 7, 2025 22:51
…nnable label

- Add ability to toggle whether modal is created in formatted barcodes/qrcodes

- Add ability to show barcodes in data tables

- Disable clickable barcode modal in dynamic data table

- Fixes from code review

    - Use data test ID rather than redundant CSS class
    - Fix icon alignment
    - Remove redundant code

Co-authored-by: Benjamin Charmes <BenjaminCharmes@users.noreply.github.com>
Add extra test case for search-items with types
@ml-evs ml-evs force-pushed the ml-evs/inventory-qol branch from 9b5a872 to 48e58ff Compare May 7, 2025 21:51
@ml-evs ml-evs merged commit 1f993b5 into main May 7, 2025
17 checks passed
@ml-evs ml-evs deleted the ml-evs/inventory-qol branch May 7, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked polish features that aren't useful but add polish webapp For issues/PRs pertaining to the web interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Requesting to create a sample with a given duplicate refcode silently succeeds /search-items endpoint is returning non-matching types
2 participants