fix: textile artwork can no longer be mirrored
Some checks failed
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Integration suite on a real stack (push) Failing after 4m26s
Build and deploy / Publish images (push) Has been skipped

A textile transfer is pressed face down, so a mirrored one prints
backwards on the garment (Dropstar, 2026-10-21). The Site no longer offers
"Espelhar" on textile artwork and the server refuses a mirrored textile
layout. UV keeps the button until Dropstar decides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-22 16:23:41 -03:00
parent 289151214b
commit fe7bf4ef07
5 changed files with 60 additions and 6 deletions

View File

@@ -205,11 +205,11 @@ try{
await fill('[data-q]',9);layout=await packed(9);assert.equal(layout.height,92);
await click('[data-giro]');
await waitFor(()=>evaluate('lastLayout?.altura===24.5 && metros===0.245'),'rotation updates packing');
const beforeMirror=await evaluate(`$('vArea').querySelector('canvas').toDataURL()`);
await click('[data-esp]');
await waitFor(()=>evaluate(`$('vArea').querySelector('canvas').toDataURL()!==${JSON.stringify(beforeMirror)}`),'mirror updates pixels');
// A textile transfer is pressed face down: mirrored, it prints backwards on
// the garment. Textile has no mirror button (Dropstar, 2026-10-21).
assert.equal(await evaluate(`!!document.querySelector('[data-esp]')`),false,'textile has no mirror button');
assert.equal(await evaluate('metros'),0.245);
await waitFor(()=>evaluate(`itemAtual?.production?.sources[0]?.mirrored===true`),'transforms in production record');
await waitFor(()=>evaluate(`itemAtual?.production?.sources[0]?.mirrored===false`),'transforms in production record');
assert.deepEqual(await evaluate(`({rotation:itemAtual.production.sources[0].rotation_degrees,copies:itemAtual.production.sources[0].copies})`),
{rotation:90,copies:9});
await waitFor(()=>evaluate(`itemAtual?.qualityStatus==='rejected'`),'low resolution refusal');
@@ -323,6 +323,12 @@ try{
assert.equal(await evaluate('modo'),expected);
await fill('[data-cm]',10);await fill('[data-q]',4);await packed(4);
}
// UV keeps the mirror until Dropstar decides; it changes the pixels and the record.
const beforeMirror=await evaluate(`$('vArea').querySelector('canvas').toDataURL()`);
await click('[data-esp]');
await waitFor(()=>evaluate(`$('vArea').querySelector('canvas').toDataURL()!==${JSON.stringify(beforeMirror)}`),'mirror updates pixels');
await waitFor(()=>evaluate(`itemAtual?.production?.sources[0]?.mirrored===true`),'UV mirror in production record');
await click('[data-esp]');
// An older image load must not overwrite a newer edit, even before debounce.
// The packing loads each artwork's image through imagemDaArte.
await evaluate(`(()=>{window.realLoad=imagemDaArte;window.delayed=[];