Skip to content

fix: clarify -refresh instructions and default the curl file path#15

Merged
eshaffer321 merged 1 commit into
mainfrom
fix/refresh-instructions
Jul 2, 2026
Merged

fix: clarify -refresh instructions and default the curl file path#15
eshaffer321 merged 1 commit into
mainfrom
fix/refresh-instructions

Conversation

@eshaffer321

Copy link
Copy Markdown
Owner

Summary

  • The -refresh prompt said "go to your orders page" and "find any getOrder request", but getOrder only fires from an individual order's detail view, not the list page, and it's easy to miss in an unfiltered Network tab.
  • Rewrote the prompt with exact click-by-click steps (open orders page → click "View details" → filter Network tab search box by getOrder).
  • Default the curl file path to ./curl.txt (already gitignored) so pressing Enter uses it instead of requiring the user to type a path every time.

Test plan

  • make fmt && make lint && go test -v -race ./... all pass locally
  • go build -o walmart-cli ./cmd/walmart builds clean
  • Manually ran ./walmart-cli -refresh, confirmed new prompt renders correctly and default path resolves to an absolute path
  • End-to-end verified against itemize: followed the new instructions, refreshed cookies, ran itemize walmart -dry-run successfully (previously failing with HTTP 456)

The old prompt said "go to your orders page" and "find any getOrder
request", which doesn't work: getOrder only fires from an individual
order's detail view, not the orders list, and it's easy to miss in an
unfiltered Network tab. Spell out clicking into an order and searching
the Network tab for "getOrder". Also default the curl file path to
./curl.txt (already gitignored) so the common case is just pressing
Enter instead of typing a path.
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.04%. Comparing base (58729e0) to head (c5120c5).

Files with missing lines Patch % Lines
client.go 0.00% 29 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
- Coverage   56.00%   55.04%   -0.97%     
==========================================
  Files           9        9              
  Lines         857      872      +15     
==========================================
  Hits          480      480              
- Misses        335      350      +15     
  Partials       42       42              
Flag Coverage Δ
unittests 55.04% <0.00%> (-0.97%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
client.go 28.87% <0.00%> (-3.42%) ⬇️

Continue to review full report in Codecov by Harness.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eshaffer321
eshaffer321 merged commit 609663f into main Jul 2, 2026
9 of 10 checks passed
@eshaffer321
eshaffer321 deleted the fix/refresh-instructions branch July 2, 2026 02:43
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.

1 participant