Skip to content

Release v0.1.0 - #43

Merged
roncodes merged 22 commits into
mainfrom
release/v0.1.0
Nov 17, 2026
Merged

roncodes merged 22 commits into
mainfrom
release/v0.1.0

Conversation

@roncodes

@roncodes roncodes commented Nov 6, 2026

Copy link
Copy Markdown
Member

Release v0.1.0: the Laravel 12 release, for fleetbase/fleetbase release/v0.8.0.

This branch already sets the version in composer.json, package.json and extension.json, starts RELEASE.md with the line release.yml checks, and runs CI on pull requests into release/v* and dev-v*.

Merge into release/v0.1.0 first

Then finish RELEASE.md with anything else that lands here.

Tag after

Composer can't resolve these until they are tagged, so CI on this PR stays red until then.

Do not merge or tag until the PRs above are merged and green.

Pest ^2.33 brings PHPUnit 10, which is needed before the Laravel 12 step.
Migrate phpunit.xml.dist to the PHPUnit 10 format. Test tooling only.
php-code-coverage 10 counts each match arm on its own line, and no driver method sends DELETE. Also correct the Pest 1 note in the runner.
Pins every diffIn* call as an explicit absolute or signed integer so results read the same on Carbon 2 and 3. Carbon 2 values are unchanged; tests pin direction and type at the priority sites.
Doctrine preserved char on ledger_gateway_transactions.currency; native changes
would turn it into varchar.
The public pay route accepted draft invoices, which the public page
already hides. Refuse them.

With an active cash gateway, anyone with an invoice link could mark it
fully paid. Add a staff_confirm_only gateway setting that refuses this.
It is off by default, so existing gateways keep working as they do.

Add GET ledger/v1/customers/orders/{id}/invoice, so a rider's app can
find the invoice for their own order and pay it through the public routes.
…e ride

- When Fleet-Ops buys a ride's final fare (`meta.fare.final` on the order), the new invoice is sent straight away, so the rider can pay it.
- A paid invoice for a ride sets `meta.paid_at` on the order, which lets the rider book again after a card trip.
- The rider's invoice route returns `payment_url`, the hosted invoice page, and leaves out void and canceled invoices.
Set the version in composer.json, package.json and extension.json, start
RELEASE.md, and run CI on pull requests into release/v* and dev-v*.
feat!: move to Laravel 12 and core-api 2.0
fix(invoices): stop public payment of drafts and add a cash setting
feat(invoices): bill a ride's final fare and record its payment
…ayment

- An invoice is sent straight away when its order has `fare_finalized_at`, instead of reading `meta.fare.final`.
- A paid invoice marks its order paid through `Order::markPaid()` (`MarkOrderPaid`, renamed from `MarkRideInvoicePaid`), instead of writing `meta.paid_at`. A Fleet-Ops version without `markPaid()` is left alone.
…s release ships

Revert to the job as it was before the release, using fleetbase's api-contract.yml with no stack.
…rough order config triggers

- A paid invoice settles the order's transaction (SettleOrderTransaction)
  instead of calling the removed Order::markPaid().
- The purchase-rate observer no longer sends invoices for a final fare;
  an order config's new send_invoice trigger action does it instead.
- Rider wording out of the tests.
…stack

Remove the stack after this release ships.
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e93eadc) to head (1cf4749).

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #43   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity      1253      1320   +67     
===========================================
  Files             74        77    +3     
  Lines           6990      7059   +69     
===========================================
+ Hits            6990      7059   +69     
Flag Coverage Δ
backend 100.00% <100.00%> (ø)

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.

…nvoice lookups

Codecov's patch check on the v0.1.0 release wants 100%. The existing tests
replaced these classes' database lookups, so the real queries never ran.
These tests run them against SQLite.
test: cover send invoice, order transaction settlement and customer invoice lookups
@roncodes
roncodes merged commit 70c75c6 into main Nov 17, 2026
11 checks passed
@roncodes
roncodes deleted the release/v0.1.0 branch November 17, 2026 06:04
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