๐ŸŽฌ Promedic1 โ€” 2026 08 23_1423_promedic bank pwa offline fix and manga guide pwa

ุญู„ู‚ุงุช ุจุดุฎุตูŠุงุช ุจูˆุฌู‡ ุตู…ู‘ุงุก ยท Promedic1 ยท 9 ุจุฑูˆู…ุจุช ุฌุงู‡ุฒ ู„ู„ู†ุณุฎ
automation-prompts โ€บ ุญู„ู‚ุงุช ุจุดุฎุตูŠุงุช ุจูˆุฌู‡ ุตู…ู‘ุงุก โ€บ Promedic1
prompt-1 โ€ฆ prompt-9

prompt-1

Prompt โ€” Phase 1 โ€” Manga guide PWA (local Mac)
prompt-1
1. Audited /Users/khaledahmedmohamed/Desktop/manga-episode-guide/index.html โ€” 425KB single-file app, 0 images, 0 external scripts/stylesheets โ†’ perfect PWA candidate. 2. Generated 4 icons with PIL (dark #171717 bg, white "M", red #ef4444 accent โ€” matches app theme). 3. Wrote manifest.webmanifest + sw.js (precache 7 files, cache-first, skipWaiting, old-cache cleanup). 4. Wired 9 head/meta lines + 5-line guarded SW registration into index.html. Zero design changes. 5. Verified live via Chrome MCP on http://localhost:8765: SW activated โ†’ offline reload โ†’ 11 sections, 27 copy buttons, copy flow Copyโ†’Copiedโ†’Copy, console clean.NEGATIVES โ€” apply to every frame and every image: no face features, no eyes, no eye circles, no pupils, no mask with eyes, no circles on the face, no eye-sockets, no eyebrows, no nose, no mouth, no lips, no teeth, no realistic human face, no face silhouette, and no facial shadows of any kind โ€” no nose shadow, no eye-socket shadow, no lip shadow; every head stays a clean smooth blank solid-void featureless shape; no watermark, no signature, no garbled or distorted text, no extra fingers, no deformed hands, no mutated limbs, no blurry frames, no low resolution, no dull desaturated colors. QUALITY: ultra-detailed, maximum color saturation, razor-sharp legible on-screen text, high-definition 4K, professional cinematic lighting, clean stable frames.

prompt-2

Prompt โ€” SW transition race (one-reload quirk)
prompt-2
Symptom: console showed inverted [Cache] Upgrading from v-bank-12 to v-bank-11 โ€” the OLD app.js executed under the NEW index.html. - Cause: during SW swap, the outgoing SW's matchAny(..., {ignoreSearch: true}) served the cached old /js/app.js?v=bank11 for the new ?v=bank12 URL. - Resolution: self-heals after one reload (new SW active). No code change needed โ€” documented as expected behavior.NEGATIVES โ€” apply to every frame and every image: no face features, no eyes, no eye circles, no pupils, no mask with eyes, no circles on the face, no eye-sockets, no eyebrows, no nose, no mouth, no lips, no teeth, no realistic human face, no face silhouette, and no facial shadows of any kind โ€” no nose shadow, no eye-socket shadow, no lip shadow; every head stays a clean smooth blank solid-void featureless shape; no watermark, no signature, no garbled or distorted text, no extra fingers, no deformed hands, no mutated limbs, no blurry frames, no low resolution, no dull desaturated colors. QUALITY: ultra-detailed, maximum color saturation, razor-sharp legible on-screen text, high-definition 4K, professional cinematic lighting, clean stable frames.

prompt-3

Prompt โ€” Immutable cache + precompressed .gz traps (deployment)
prompt-3
Caddy @static header: Cache-Control "public, max-age=31536000, immutable" on *.js โ†’ editing app.js WITHOUT bumping ?v= serves stale code for up to a year. - Caddy file_server { precompressed gzip br zstd } prefers <file>.gz โ†’ editing a file WITHOUT gzip -kf <file> keeps serving the old compressed twin. - Rule: edit โ†’ bump bankNN โ†’ gzip -kf โ†’ curl-verify live.NEGATIVES โ€” apply to every frame and every image: no face features, no eyes, no eye circles, no pupils, no mask with eyes, no circles on the face, no eye-sockets, no eyebrows, no nose, no mouth, no lips, no teeth, no realistic human face, no face silhouette, and no facial shadows of any kind โ€” no nose shadow, no eye-socket shadow, no lip shadow; every head stays a clean smooth blank solid-void featureless shape; no watermark, no signature, no garbled or distorted text, no extra fingers, no deformed hands, no mutated limbs, no blurry frames, no low resolution, no dull desaturated colors. QUALITY: ultra-detailed, maximum color saturation, razor-sharp legible on-screen text, high-definition 4K, professional cinematic lighting, clean stable frames.

prompt-4

Prompt โ€” False-negative test artifacts (verify honestly)
prompt-4
Virtual scroller renders only visible rows โ†’ document.querySelectorAll('main article').length = 0 even when the list is fine. Correct metric: the app's own Showing N in <Category> counter. - Synthetic dispatchEvent(click) on autocomplete items produced a stale errorState/"No drugs found" that real Chrome clicks never trigger. Lesson: verify golden paths with real browser clicks (Chrome MCP click), synthetic events only for probing.NEGATIVES โ€” apply to every frame and every image: no face features, no eyes, no eye circles, no pupils, no mask with eyes, no circles on the face, no eye-sockets, no eyebrows, no nose, no mouth, no lips, no teeth, no realistic human face, no face silhouette, and no facial shadows of any kind โ€” no nose shadow, no eye-socket shadow, no lip shadow; every head stays a clean smooth blank solid-void featureless shape; no watermark, no signature, no garbled or distorted text, no extra fingers, no deformed hands, no mutated limbs, no blurry frames, no low resolution, no dull desaturated colors. QUALITY: ultra-detailed, maximum color saturation, razor-sharp legible on-screen text, high-definition 4K, professional cinematic lighting, clean stable frames.

prompt-5

Prompt โ€” Remote (hetzner `ssh -i ~/.ssh/hetzner_dokploy root@46.62.228.173`)
prompt-5
/var/www/bank.promedic1.com/js/app.js โ€” fixed + version-bumped (bank12) - /var/www/bank.promedic1.com/js/app.js.gz โ€” regenerated - /var/www/bank.promedic1.com/sw.js โ€” version-bumped (v-bank-12) - /var/www/bank.promedic1.com/sw.js.gz โ€” regenerated - /var/www/bank.promedic1.com/index.html โ€” 13 version strings bumped (incl. VER marker line 557) - /var/www/bank.promedic1.com/index.html.gz โ€” regenerated - /var/www/bank.promedic1.com/_backups/pwa-fix/ โ€” pre-fix backups (index.html, js/app.js, sw.js) - /etc/caddy/sites/bank.promedic1.com.caddy โ€” read-only reference (unchanged; has @sw must-revalidate matcher) - Live URL: https://bank.promedic1.comNEGATIVES โ€” apply to every frame and every image: no face features, no eyes, no eye circles, no pupils, no mask with eyes, no circles on the face, no eye-sockets, no eyebrows, no nose, no mouth, no lips, no teeth, no realistic human face, no face silhouette, and no facial shadows of any kind โ€” no nose shadow, no eye-socket shadow, no lip shadow; every head stays a clean smooth blank solid-void featureless shape; no watermark, no signature, no garbled or distorted text, no extra fingers, no deformed hands, no mutated limbs, no blurry frames, no low resolution, no dull desaturated colors. QUALITY: ultra-detailed, maximum color saturation, razor-sharp legible on-screen text, high-definition 4K, professional cinematic lighting, clean stable frames.

prompt-6

Prompt โ€” prompt block
prompt-6
node --check js/app.js && node --check sw.js # JS SYNTAX OK gzip -kf index.html js/app.js sw.js # regenerate .gz twins โ€” REQUIRED curl -s https://bank.promedic1.com/sw.js | grep -m1 "v-bank-12" # LIVE SERVING v-bank-12NEGATIVES โ€” apply to every frame and every image: no face features, no eyes, no eye circles, no pupils, no mask with eyes, no circles on the face, no eye-sockets, no eyebrows, no nose, no mouth, no lips, no teeth, no realistic human face, no face silhouette, and no facial shadows of any kind โ€” no nose shadow, no eye-socket shadow, no lip shadow; every head stays a clean smooth blank solid-void featureless shape; no watermark, no signature, no garbled or distorted text, no extra fingers, no deformed hands, no mutated limbs, no blurry frames, no low resolution, no dull desaturated colors. QUALITY: ultra-detailed, maximum color saturation, razor-sharp legible on-screen text, high-definition 4K, professional cinematic lighting, clean stable frames.

prompt-7

Prompt โ€” prompt block
prompt-7
/Users/khaledahmedmohamed/Desktop/manga-episode-guide/manifest.webmanifest (created) /Users/khaledahmedmohamed/Desktop/manga-episode-guide/sw.js (created) /Users/khaledahmedmohamed/Desktop/manga-episode-guide/index.html (edited: +head tags, +SW registration) /Users/khaledahmedmohamed/Desktop/manga-episode-guide/icon-192.png (created, PIL) /Users/khaledahmedmohamed/Desktop/manga-episode-guide/icon-512.png (created) /Users/khaledahmedmohamed/Desktop/manga-episode-guide/icon-maskable-512.png (created) /Users/khaledahmedmohamed/Desktop/manga-episode-guide/apple-touch-icon.png (created, 180px)NEGATIVES โ€” apply to every frame and every image: no face features, no eyes, no eye circles, no pupils, no mask with eyes, no circles on the face, no eye-sockets, no eyebrows, no nose, no mouth, no lips, no teeth, no realistic human face, no face silhouette, and no facial shadows of any kind โ€” no nose shadow, no eye-socket shadow, no lip shadow; every head stays a clean smooth blank solid-void featureless shape; no watermark, no signature, no garbled or distorted text, no extra fingers, no deformed hands, no mutated limbs, no blurry frames, no low resolution, no dull desaturated colors. QUALITY: ultra-detailed, maximum color saturation, razor-sharp legible on-screen text, high-definition 4K, professional cinematic lighting, clean stable frames.

prompt-8

Prompt โ€” prompt block
prompt-8
// Service worker โ€” precache-first, fully offline app. const CACHE = "manga-guide-v1"; const ASSETS = [ "./", "./index.html", "./manifest.webmanifest", "./icon-192.png", "./icon-512.png", "./icon-maskable-512.png", "./apple-touch-icon.png" ]; self.addEventListener("install", (e) => { e.waitUntil( caches.open(CACHE).then((c) => c.addAll(ASSETS)).then(() => self.skipWaiting()) ); }); self.addEventListener("activate", (e) => { e.waitUntil( caches.keys() .then((keys) => Promise.all(keys.filter((k) => k !== CACHE).map((k) => caches.delete(k)))) .then(() => self.clients.claim()) ); }); self.addEventListener("fetch", (e) => { const url = new URL(e.request.url); if (e.request.method !== "GET" || url.origin !== self.location.origin) return; e.respondWith( caches.match(e.request, { ignoreSearch: true }).then((hit) => hit || fetch(e.request).then((res) => { const copy = res.clone(); caches.open(CACHE).then((c) => c.put(e.request, copy)).catch(() => {}); return res; }).catch(() => caches.match("./index.html")) ) ); });NEGATIVES โ€” apply to every frame and every image: no face features, no eyes, no eye circles, no pupils, no mask with eyes, no circles on the face, no eye-sockets, no eyebrows, no nose, no mouth, no lips, no teeth, no realistic human face, no face silhouette, and no facial shadows of any kind โ€” no nose shadow, no eye-socket shadow, no lip shadow; every head stays a clean smooth blank solid-void featureless shape; no watermark, no signature, no garbled or distorted text, no extra fingers, no deformed hands, no mutated limbs, no blurry frames, no low resolution, no dull desaturated colors. QUALITY: ultra-detailed, maximum color saturation, razor-sharp legible on-screen text, high-definition 4K, professional cinematic lighting, clean stable frames.

prompt-9

Prompt โ€” prompt block
prompt-9
.then(() => { this.dataFullyLoaded = true; + // Persist the COMPLETE set (priority + background) so offline users get all categories, not just the priority batch + const CACHE_VERSION = "v-bank-12"; + DrugUtils.IDBStorage.set(drugBankData${CACHE_VERSION}, this.allDrugs); + DrugUtils.IDBStorage.set(drugBankCacheTime${CACHE_VERSION}, Date.now()); this.updateLoadingProgress(100);NEGATIVES โ€” apply to every frame and every image: no face features, no eyes, no eye circles, no pupils, no mask with eyes, no circles on the face, no eye-sockets, no eyebrows, no nose, no mouth, no lips, no teeth, no realistic human face, no face silhouette, and no facial shadows of any kind โ€” no nose shadow, no eye-socket shadow, no lip shadow; every head stays a clean smooth blank solid-void featureless shape; no watermark, no signature, no garbled or distorted text, no extra fingers, no deformed hands, no mutated limbs, no blurry frames, no low resolution, no dull desaturated colors. QUALITY: ultra-detailed, maximum color saturation, razor-sharp legible on-screen text, high-definition 4K, professional cinematic lighting, clean stable frames.

ูˆุถุน ุงู„ู†ุณุฎ ุงู„ูŠุฏูˆูŠ

โœ… ุชู… ุงู„ู†ุณุฎ