Skip to content

fix(windows): add AppX tile assets to resolve Microsoft Store cert 10.1.1.11 - #4

Merged
itsbkm merged 1 commit into
FreeOpenSourcePOS:mainfrom
khaira777:main
Jun 11, 2026
Merged

itsbkm merged 1 commit into
FreeOpenSourcePOS:mainfrom
khaira777:main

Conversation

@khaira777

Copy link
Copy Markdown
Contributor

Problem

The Microsoft Store rejected Flo Cafe 1.6.7 with certification failure 10.1.1.11 On Device Tiles — all tile icons were showing as the default placeholder image.

Root cause: assets/icon.png was a plain blue square (852 bytes). electron-builder uses this as the base to auto-generate AppX tiles when no build/appx/ folder exists, resulting in generic, unbranded tiles in the submitted .appx.

Changes

build/appx/ — 30 branded tile assets (new)

All required AppX tile types × 5 DPI scale variants, sourced from assets/icon-512.png (the actual Flo brand identity):

Tile Sizes
StoreLogo 50px × 5 scales
Square44x44Logo 44px × 5 scales
SmallTile 71px × 5 scales
Square150x150Logo 150px × 5 scales
Wide310x150Logo 310×150px × 5 scales
LargeTile 310px × 5 scales

electron-builder automatically picks up build/appx/ without any package.json changes needed.

assets/icon.png — fixed

Replaced the 852-byte blue square placeholder with the real Flo logo (sourced from assets/icon-256.png). Used for the system tray icon on all platforms.

Platform impact

  • Windows AppX/MSIX: Fixes cert failure ✅
  • Windows NSIS installer: No change
  • macOS (DMG/MAS): Unaffected — uses icon.icns explicitly
  • Linux: Tray icon slightly improved (real logo vs blue square)

- Added build/appx/ with all 30 required tile assets (6 types × 5 scales)
  sourced from assets/icon-512.png (actual Flo brand identity)
- Fixed assets/icon.png which was a plain blue square placeholder;
  replaced with the real Flo logo (copied from icon-256.png)
- Tile assets: StoreLogo, Square44x44Logo, SmallTile, Square150x150Logo,
  Wide310x150Logo, LargeTile — all scale variants (100%-400%)
@itsbkm
itsbkm merged commit c9c6795 into FreeOpenSourcePOS:main Jun 11, 2026
khaira777 added a commit that referenced this pull request Jul 5, 2026
…ts/discounts/tax/loyalty)

Integration tests (7 files, 123 assertions):
- Happy path: order→discount→bill→payment→completed
- Tax correctness: India GST calculation and recalculation
- Payment integrity: split payments, wallet double-spend, zero-amount rejection
- Order lifecycle: status transitions, cancel with PIN
- Bill reconciliation: discount sync, add-items sync
- Loyalty points: cashback, idempotency, wallet balance
- Discount edge cases: combined discounts, max limits, addon prices

Bug fixes:
- #3: Add-items filters cancelled items from total recalculation
- #4: Add-items syncs bill after updating order total
- #5: Cancel/restore round-off formula corrected
- #6: Discount endpoint wrapped in withTxn (race condition)
- #7: Infinity passes validation (NaN/isFinite check)
- #8: Missing amount defaults to remaining balance
- #9: Amount capped at remaining balance
- #11: Removing discount restores original tax
- #12: Add-items preserves order-level discount
- #13: Cancel/restore preserves order-level discount
- #14: Item-level discount checks max settings
- #15: Item-level discount syncs to bill
- #17: Cancel/restore wrapped in withTxn
- #20: Cashback calculated on discounted subtotal
- #23: Quantity/price validation on order creation

Shared test helper (tests/helpers/test-setup.ts):
- Extracts 40 lines of boilerplate per test file
- Provides: initTestDb, createApp, startServer, seed helpers, assert utilities

Co-Authored-By: Claude <[email protected]>
khaira777 pushed a commit that referenced this pull request Jul 6, 2026
fix(windows): add AppX tile assets to resolve Microsoft Store cert 10.1.1.11
itsbkm added a commit that referenced this pull request Jul 6, 2026
fix: prevent layout shift and re-render jank in POS customer search
itsbkm added a commit that referenced this pull request Aug 9, 2026
… legacy digest tests

Issue #220 item #3 (High, supply chain): canonical/setup-lxd@main was
a mutable ref used in a workflow with write permissions. Pinned to
8c6a87b (tag v1).

Issue #220 item #8 (Low): `on.push.tags: '[0-9]*'` is a glob, not a
version pattern — it matches any tag starting with a digit. Every
downstream step reads VERSION from package.json rather than the
pushed tag, so a malformed or mismatched tag could silently create a
release titled after whatever package.json says. Added a validation
step that rejects a tag that isn't strict X.Y.Z or doesn't equal
package.json's version, before anything is built.

Issue #220 item #4 (Medium): added a real, generated fixture frozen
at schema v56 (the parent version of the tax-registration-number
rename migration) and a test asserting that migration against a real
pre-existing install's shape, not just a fresh createSchema() DB.

Issue #220 item #9 (Medium): recovered the actual pre-removal
official-india/official-thailand pack JSON from git history (the
commit a51e828 removed the files but kept only their digests) and
added a test proving the real historical bytes hash to exactly the
digests LEGACY_TRUSTED_PACK_DIGESTS documents — previously only a
synthetic stand-in pack exercised this path.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
richanonymous22 referenced this pull request in richanonymous22/FloCafe Aug 13, 2026
Milestone 2, Part 1+2. Finishes the work Phase 2A flagged as its natural next
step: POST /orders/:id/items now goes through SaleService, and the per-item
loop that used to be duplicated between order creation and item addition is
one implementation with two callers.

## Shared line engine

createSale and addSaleItems used to carry two near-identical copies of the
per-item loop: product lookup, stock guard, price/quantity validation, addon
subtotal, tax calculation, insert, addon insert, stock decrement. Both now
call the internal persistSaleLine() for that work. What still differs between
them is aggregation, and that difference is preserved deliberately:
createSale sums per-line results as it goes (nothing else exists on a brand
new sale); addSaleItems re-derives totals from every ACTIVE line in the
database afterwards, because it may be adding to a sale that already has
items, some of which may be cancelled — the inherited "BUG #3 FIX".

One direct benefit of consolidation: items added via addSaleItems now receive
a ULID uid, same as items from createSale. The old add-items route never
populated it — an artifact of Phase 2A only having migrated one of the two
paths.

## addSaleItems

Behaviour-preserving extraction of the second half of
docs/PHASE_2A_SALE_FLOW.md. All four inherited "BUG #N FIX" comments in the
original handler are preserved and each has an explicit test: cancelled-line
exclusion from recalculated totals (#3), order-level discount rescaling when
a percentage discount meets a changed subtotal (#12), re-fetching the order
under the transaction lock to catch a concurrent completion/cancellation
(#175), and re-syncing an existing unpaid bill so it doesn't go stale (#4).

Two guard clauses stay in the route rather than moving into the service, and
the reasoning is written down at both ends (the route handler and the
addSaleItems docstring): the bills.split_group_id lock is a simple,
self-contained check with nothing to share, and the waiter-ownership check is
an HTTP-layer authorization decision tied to the caller's role — it belongs
beside requireRole, not inside a service with no Express dependency. Both run
in the same relative order as before, so no response code changes for any
input. actorUserId is threaded through for audit attribution only; it plays
no part in either check.

One new audit event type, sale.items_added, recorded inside the same
transaction as the items it describes — added to the AuditEventType union
introduced in Phase 1.

## Verification

Extended tests/plemmo-sale-service.test.ts with 45 new checks (84 -> 129):
shared-engine wiring (uid on newly added lines, stock decrement for
post-creation additions), every rejection path with its exact status,
rollback (a failure on line 2 of an add leaves no line, no audit event, and
an unchanged subtotal), the four BUG-fix behaviours above with dedicated
assertions, idempotent replay, the specialInstructions presence-vs-absence
distinction (needed a typed { value } wrapper since `undefined` alone can't
tell "leave untouched" apart from "clear the notes"), and a tableless counter
sale proving the retail shape works for a multi-call flow, not just creation.

Targeted regression: integration-happy, integration-tax,
integration-reconciliation, integration-discount, issue-122 (exercises
POST /orders/:id/items addon-quantity validation directly, exact 400s),
issue-125, issue-24, order-item-addons, orders-authz, authz-phase3,
tax-pack-management — all pass unchanged.

Full npm test suite green (exit 0, 42 suites reporting 0 failed, zero
assertion errors). Build clean, lint 0 errors.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011HjBK8R8ArAjzGRLS7gjUj
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.

2 participants