Inital Version
8
design-concepts/01-copper-observatory.html
Normal file
BIN
design-concepts/01-copper-observatory.png
Normal file
|
After Width: | Height: | Size: 506 KiB |
8
design-concepts/02-olive-fieldwork.html
Normal file
BIN
design-concepts/02-olive-fieldwork.png
Normal file
|
After Width: | Height: | Size: 514 KiB |
8
design-concepts/03-graphite-studio.html
Normal file
BIN
design-concepts/03-graphite-studio.png
Normal file
|
After Width: | Height: | Size: 399 KiB |
8
design-concepts/04-plum-atlas.html
Normal file
BIN
design-concepts/04-plum-atlas.png
Normal file
|
After Width: | Height: | Size: 512 KiB |
8
design-concepts/05-parchment-instrument.html
Normal file
BIN
design-concepts/05-parchment-instrument.png
Normal file
|
After Width: | Height: | Size: 512 KiB |
25
design-concepts/README.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# AstroFrame design concepts
|
||||
|
||||
Open `index.html` to compare the five alternatives. Each numbered HTML file is self-contained, with all images embedded, and can be opened directly in a browser without a server or internet access. Each also has a 1680×1000 PNG for sharing or comparing. The layouts scale uniformly to fit a browser window; they are visual desktop concepts rather than functional applications.
|
||||
|
||||
| File | Direction | Main difference |
|
||||
|---|---|---|
|
||||
| `01-copper-observatory` | Copper Observatory | Warm charcoal, copper, familiar sidebar/graph/table/inspector layout |
|
||||
| `02-olive-fieldwork` | Olive Fieldwork | Smoked green and linen, centered frame with analysis to its right |
|
||||
| `03-graphite-studio` | Graphite Studio | Neutral silver, horizontal session tabs and a full-width exposure table |
|
||||
| `04-plum-atlas` | Plum Atlas | Muted plum, exposure queue / preview / decision evidence columns |
|
||||
| `05-parchment-instrument` | Parchment Instrument | Light ivory and espresso, compact instrument tables and dark preview canvas |
|
||||
|
||||
All alternatives omit Inspect stars, Open project, standalone Manifest, note editing, a dedicated second flux graph and the repeated verdict above the exposure. The stretch thumb is fully contained in a dedicated control row. The space image is confined to the top header; work surfaces have no scattered decorative dots. The application itself, including the reported stretch-bar defect, has not been edited during this concept round.
|
||||
|
||||
The photo is the real `Light_NGC 1432_30.0s_IRCUT_20260919-235146.fit` preview reconstructed from its saved linear display cache. The graph uses all 490 saved measurements from the first Pleiades session. Counts reflect current persisted overrides as well as automatic decisions, so they can differ from an earlier screenshot. Sidebar thumbnails in the light theme use actual lights from their corresponding session. Measurements and thumbnails are read; originals, caches and project files are not written.
|
||||
|
||||
`build_concepts.py`, `render_mockups.cjs` and `make_gallery.py` generate the standalone files, render them in one sequential headless browser, and check that controls fit, the stretch thumb is contained, images load, text encoding is intact, and each design has one graph. `qa-results.json` records those checks. `application-unchanged.json` verifies the source, published Windows binary and saved project files against the baseline hashes captured before creating the concepts.
|
||||
|
||||
## Decorative image provenance
|
||||
|
||||
The image-generation skill's **built-in image generation mode** created `assets/space-header.png`. No generated typography, graphs or scientific images are used. The scene is decorative concept artwork, not an actual survey image. The generated original was copied without modifying it; per-theme filters are display styling inside the standalone concepts.
|
||||
|
||||
Final image prompt:
|
||||
|
||||
> Use case: photorealistic-natural. Asset type: a photographic deep-space header background for standalone desktop UI design mockups. Generate ONLY the background image, absolutely no UI, letters, logos, buttons, planets, spacecraft or foreground horizon. Very wide panoramic 3:1 composition. A detailed natural Milky Way star field: recognizably luminous star clusters, wisps of pale warm interstellar dust and softly structured charcoal-blue nebulae, distinct fine points of starlight. Professional observatory astrophotograph, understated natural tones, no cyan neon, no dramatic lens flares, no magical sparkles or graphic constellations. The header will be cropped to a shallow strip, so place the interesting mottled star-cloud detail across the central horizontal band. Strong enough texture to read as space rather than screen dirt, while remaining dark enough for white interface text. Darker far-left and far-right edges for title and window controls. This is a decorative concept asset and must not look like scientific analysis data.
|
||||
2
design-concepts/View designs.cmd
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
@echo off
|
||||
start "" "%~dp0index.html"
|
||||
5
design-concepts/application-unchanged.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"checkedFiles": 35,
|
||||
"changedFiles": [],
|
||||
"scope": "App source, Windows executable and DLL, and both saved projects."
|
||||
}
|
||||
BIN
design-concepts/assets/space-header.png
Normal file
|
After Width: | Height: | Size: 2.7 MiB |
138
design-concepts/build_concepts.py
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
"""Create standalone visual alternatives. Read saved measurements; never edit the app."""
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
import base64, hashlib, html, io, json, math, struct, zlib
|
||||
import numpy as np
|
||||
from PIL import Image
|
||||
|
||||
HERE=Path(__file__).resolve().parent
|
||||
ROOT=HERE.parent
|
||||
project=json.loads((ROOT/'projects/Sample Survey/project.json').read_text(encoding='utf-8'))
|
||||
frames=project['Frames']
|
||||
selected=next(f for f in frames if f['Path'].endswith('20260919-235146.fit'))
|
||||
session=[f for f in frames if f['Session']==selected['Session']]
|
||||
session.sort(key=lambda f:f['Timestamp'] or '')
|
||||
css=(HERE/'mockups.css').read_text(encoding='utf-8')
|
||||
def esc(s):return html.escape(str(s))
|
||||
def state(f):return (f['Override'] or f['Automatic']).lower()
|
||||
def stamp(f):return datetime.fromisoformat(f['Timestamp'].replace('Z','+00:00')).strftime('%H:%M:%S')
|
||||
def data_uri(path):return 'data:image/'+('png' if path.suffix=='.png' else 'jpeg')+';base64,'+base64.b64encode(path.read_bytes()).decode()
|
||||
header=data_uri(HERE/'assets/space-header.png')
|
||||
icon=data_uri(ROOT/'src/AstroFrame.Desktop/Assets/astroframe.png')
|
||||
|
||||
def real_preview(f):
|
||||
raw=(ROOT/'projects/Sample Survey/previews'/(f['Id']+'-display3.bin')).read_bytes()
|
||||
magic,length,modified,w,h=struct.unpack('<iqqii',raw[:28]);assert magic==0x41504633
|
||||
a=np.frombuffer(zlib.decompress(raw[28:],-15),dtype='<f4').reshape(h,w)
|
||||
median=float(np.median(a));noise=max(.001,float(np.median(np.abs(a[:,1:]-a[:,:-1])))/.953872)
|
||||
black=median-2.8*noise;white=max(float(np.quantile(a,.9995)),median+30*noise)
|
||||
mid=(median-black)/(white-black);t=.18;m=mid*(t-1)/((2*t-1)*mid-t)
|
||||
v=np.clip((a-black)/(white-black),0,1);out=np.clip(255*(m-1)*v/((2*m-1)*v-m),0,255).astype(np.uint8)
|
||||
b=io.BytesIO();Image.fromarray(out).save(b,format='PNG')
|
||||
return 'data:image/png;base64,'+base64.b64encode(b.getvalue()).decode()
|
||||
preview=real_preview(selected)
|
||||
clear=real_preview(next(f for f in session if f['Path'].endswith('20260919-235652.fit')))
|
||||
|
||||
DESIGNS=[
|
||||
dict(slug='01-copper-observatory',name='Copper Observatory',layout='classic',description='Warm charcoal and copper. Familiar session sidebar, graph and table, with a larger inspector.',palette={'bg':'#181714','panel':'#201e1a','raised':'#2a2721','line':'#403a30','faint':'#302c25','text':'#eee8dc','muted':'#b0a693','accent':'#d1a277','on-accent':'#211810','keep':'#a6c3a2','review':'#d1ba7a','reject':'#df9690','selected':'#3b3026','track':'#645c4e','radius':'4px','sky-opacity':'.88','sky-filter':'sepia(.6) saturate(.72)'}),
|
||||
dict(slug='02-olive-fieldwork',name='Olive Fieldwork',layout='fieldwork',description='Smoked green and linen. A frame-first workspace with the image in the center and analysis to the right.',palette={'bg':'#131a16','panel':'#1b241e','raised':'#273128','line':'#3a493d','faint':'#2b382e','text':'#e4e8d8','muted':'#a4b2a1','accent':'#b7c095','on-accent':'#1b2516','keep':'#a9c4a1','review':'#d8c18e','reject':'#dea095','selected':'#303d2b','track':'#5c6b5a','radius':'3px','sky-opacity':'.9','sky-filter':'sepia(.25) saturate(.5) hue-rotate(28deg)'}),
|
||||
dict(slug='03-graphite-studio',name='Graphite Studio',layout='studio',description='Neutral graphite and silver. Horizontal session tabs, image and graph above a full-width exposure table.',palette={'bg':'#151617','panel':'#1e2021','raised':'#292b2d','line':'#3b3e40','faint':'#2e3032','text':'#e6e7e7','muted':'#a2a5a7','accent':'#d3d5d4','on-accent':'#191b1b','keep':'#a8bfb0','review':'#d5bf91','reject':'#dba2a6','selected':'#343638','track':'#606467','radius':'2px','sky-opacity':'.92','sky-filter':'grayscale(1)'}),
|
||||
dict(slug='04-plum-atlas',name='Plum Atlas',layout='atlas',description='Aubergine and dusty rose. Exposure list on the left, uninterrupted preview in the middle, evidence on the right.',palette={'bg':'#1a161d','panel':'#241e28','raised':'#322a37','line':'#493c4d','faint':'#342b38','text':'#ece4ed','muted':'#b5a6b9','accent':'#c8a4b9','on-accent':'#281a25','keep':'#adc5b6','review':'#d7c095','reject':'#e4a0ac','selected':'#453344','track':'#705d73','radius':'6px','sky-opacity':'.8','sky-filter':'saturate(.62) hue-rotate(22deg)'}),
|
||||
dict(slug='05-parchment-instrument',name='Parchment Instrument',layout='instrument',description='Warm ivory and espresso. A light instrument-panel alternative with compact tables and a dark image canvas.',palette={'bg':'#eeeae1','panel':'#f7f5ef','raised':'#e5dfd3','line':'#c9bfae','faint':'#dcd5c9','text':'#332c23','muted':'#766958','accent':'#806447','on-accent':'#fffaf2','keep':'#446448','review':'#896c26','reject':'#a44c43','selected':'#d9cebc','track':'#bdb29f','radius':'1px','sky-opacity':'.95','sky-filter':'sepia(.65) saturate(.4)'}),
|
||||
]
|
||||
|
||||
def button(text,klass=''):return f'<button type="button" class="button {klass}">{text}</button>'
|
||||
def selector(text):return f'<span class="select">{text}</span>'
|
||||
def topbar():
|
||||
controls='<span class="caption-button"><svg viewBox="0 0 12 12"><path d="M1 6h10" fill="none" stroke="currentColor"/></svg></span><span class="caption-button"><svg viewBox="0 0 12 12"><path d="M2 2h8v8H2z" fill="none" stroke="currentColor"/></svg></span><span class="caption-button"><svg viewBox="0 0 12 12"><path d="m2 2 8 8M10 2l-8 8" fill="none" stroke="currentColor"/></svg></span>'
|
||||
return f'<header class="sky-header"><div class="sky-photo" style="background-image:url({header})"></div><div class="sky-shade"></div><div class="chrome"><div class="brand"><img src="{icon}" alt="">AstroFrame</div><div class="caption-buttons">{controls}</div></div><div class="banner"><div class="project-label"><div><h1>Sample Data</h1><small>2,067 lights · 6 observing sessions</small></div></div><div class="toolbar">{button("Analyze lights","primary")}{button("Export accepted")}</div></div></header>'
|
||||
def totals():
|
||||
counts={s:sum(state(f)==s for f in session) for s in ['keep','review','reject']}
|
||||
items=[]
|
||||
for s in counts:
|
||||
minutes=sum(f['Exposure'] for f in session if state(f)==s)/60
|
||||
duration=f'{minutes/60:.1f} h' if minutes>=60 else f'{minutes:.1f} min'
|
||||
items.append(f'<div class="total"><b class="{s}">{counts[s]}</b><span>{s}</span><small>{duration}</small></div>')
|
||||
items.append('<div class="total"><b>3.0 h</b><span>Accepted time</span><small>of 4.1 h</small></div>')
|
||||
return '<div class="totals">'+''.join(items)+'</div>'
|
||||
def scope():return '<div class="scope"><div class="target-info"><h2>NGC 1432</h2><span>Pleiades</span><small>20 Sep 2026 · 490 lights · 30 s · IRCUT</small></div>'+totals()+'</div>'
|
||||
def sessions(compact=False,thumbs=False):
|
||||
rows='<div class="session"><strong>All sessions</strong><small>2,067 lights · 17.2 h</small></div>'
|
||||
for key in dict.fromkeys(f['Session'] for f in frames):
|
||||
group=[f for f in frames if f['Session']==key];parts=key.split(' · ');active=key==selected['Session']
|
||||
representative=selected if active else min((f for f in group if state(f)=='keep'),key=lambda f:abs(group.index(f)-len(group)/2),default=group[0])
|
||||
photo=f'<img class="session-thumb" src="{real_preview(representative)}" alt="">' if thumbs else ''
|
||||
rows+=f'<div class="session {"active" if active else ""}">{photo}<div><strong>{esc(parts[0])}</strong><small>{esc(parts[1][:10])} · {len(group)} lights</small><small class="meta">{sum(f["Exposure"] for f in group)/3600:.1f} h · {esc(parts[-1])}</small></div></div>'
|
||||
return f'<aside class="side sessions {"compact" if compact else ""} {"thumbnails" if thumbs else ""}"><div class="side-heading">Sessions</div>{rows}</aside>'
|
||||
def ribbon():
|
||||
rows=[]
|
||||
for key in dict.fromkeys(f['Session'] for f in frames):
|
||||
parts=key.split(' · ');group=[f for f in frames if f['Session']==key]
|
||||
rows.append(f'<div class="ribbon-item {"active" if key==selected["Session"] else ""}">{esc(parts[0])}<small>{esc(parts[1][:10])} · {len(group)} lights</small></div>')
|
||||
return '<nav class="session-ribbon">'+''.join(rows)+'</nav>'
|
||||
def chart_svg(width,height):
|
||||
left,right,top,bottom=56,width-18,26,height-39
|
||||
vals=[f['CloudSignificance'] for f in session];high=float(np.quantile(vals,.99))*1.12;low=0
|
||||
y=lambda v:bottom-min(1,max(0,(v-low)/(high-low)))*(bottom-top)
|
||||
x=lambda i:left+(right-left)*i/(len(session)-1)
|
||||
shapes=[]
|
||||
for n in range(4):
|
||||
yy=top+(bottom-top)*n/3;value=high*(1-n/3)
|
||||
shapes.append(f'<path class="plot-grid" d="M{left} {yy:.1f}H{right}"/><text class="plot-text" x="{left-9}" y="{yy+4:.1f}" text-anchor="end">{value:.0f}</text>')
|
||||
chosen=session.index(selected);shapes.append(f'<path class="plot-selection" d="M{x(chosen):.1f} {top}V{bottom}"/>')
|
||||
for i,f in enumerate(session):
|
||||
shapes.append(f'<circle class="plot-marker {state(f)}" cx="{x(i):.1f}" cy="{y(f["CloudSignificance"]):.1f}" r="{4.3 if f is selected else 2.1}"/>')
|
||||
shapes.append(f'<text class="plot-text" x="{left}" y="{height-15}">{stamp(session[0])}</text><text class="plot-text" x="{right}" y="{height-15}" text-anchor="end">{stamp(session[-1])}</text><text class="plot-text" x="{left}" y="15">Reference scatter</text>')
|
||||
return f'<svg viewBox="0 0 {width} {height}" preserveAspectRatio="none" aria-label="Real cloud-structure measurements for 490 exposures">'+''.join(shapes)+'</svg>'
|
||||
def graph(width=870,height=266):
|
||||
legend='<div class="chart-legend"><span class="keep"><i class="dot"></i>Keep</span><span class="review"><i class="dot"></i>Review</span><span class="reject"><i class="dot"></i>Reject</span></div>'
|
||||
return f'<section class="panel graph"><div class="panel-head"><h3>Quality</h3><div class="right">{legend}{selector("Cloud structure")}</div></div><div class="chart-body">{chart_svg(width,height)}</div></section>'
|
||||
def table(dense=False,narrow=False,limit=6):
|
||||
rows=[];start=max(0,session.index(selected)-1);shown=session[start:start+limit]
|
||||
headers='<th class="time-col">Time (UTC)</th><th class="dec-col">Decision</th>'
|
||||
if not narrow:headers+='<th class="filecol">Exposure</th>'
|
||||
headers+='<th class="num-col num">Stars</th><th class="num-col num">FWHM</th>'
|
||||
for f in shown:
|
||||
file=Path(f['Path']).name
|
||||
cells=f'<td>{stamp(f)}</td><td class="decision {state(f)}">{state(f).upper()}</td>'
|
||||
if not narrow:cells+=f'<td>30 s<span class="file">{esc(file)}</span></td>'
|
||||
cells+=f'<td class="num">{f["StarCount"]:,}</td><td class="num">{f["Fwhm"]:.2f}</td>'
|
||||
rows.append(f'<tr class="{"chosen" if f is selected else ""}">{cells}</tr>')
|
||||
head='<div class="right">'+selector('All decisions')+(selector('Capture time') if not narrow else '')+'</div>'
|
||||
return f'<section class="panel table-panel"><div class="panel-head"><h3>Exposures <span class="muted" style="font-weight:400;font-size:11px">490</span></h3>{head}</div><div class="table-body"><table class="frame-table"><thead><tr>{headers}</tr></thead><tbody>{"".join(rows)}</tbody></table></div><div class="table-caption">FWHM in original pixels · UTC capture order</div></section>'
|
||||
def decisions():return '<div class="decision-controls">'+button('Keep','keep')+button('Review','review')+button('Reject','reject')+button('Reset','flat reset')+'</div>'
|
||||
def stretch():return '<div class="stretch" data-qa="stretch"><div class="stretch-title"><span>Preview stretch</span><span>0.18</span></div><div class="slider-line"><div class="slider-area"><div class="slider-rail"><div class="slider-fill"></div><span class="slider-knob" data-qa="knob"></span></div></div>'+button('Reset','tiny flat')+'</div></div>'
|
||||
def caption():return '<div class="exposure-caption"><span class="filename">'+esc(Path(selected['Path']).name)+'</span><span class="reject">REJECT</span> · '+stamp(selected)+' UTC</div>'
|
||||
def switches():return '<div class="view-controls">'+selector('Frame view')+'<div class="check-options"><span><i class="check"></i>Overlay</span><span><i class="check"></i>Compare</span></div></div>'
|
||||
def image():return f'<div class="preview-stage"><img src="{preview}" alt="Actual selected Seestar light frame"></div>'
|
||||
def inspector(order='classic'):
|
||||
head='<div class="inspector-head"><h3>Exposure preview</h3><span class="muted" style="font-size:11px">2 / 490</span></div>'
|
||||
if order=='fieldwork':body=head+switches()+image()+caption()+stretch()+decisions()
|
||||
elif order=='atlas':body=head+switches()+image()+stretch()+caption()+decisions()
|
||||
else:body=head+decisions()+switches()+image()+stretch()+caption()+'<div class="details-toggle">Frame details <span class="muted">⌄</span></div>'
|
||||
return '<section class="inspector">'+body+'</section>'
|
||||
def evidence(full=False):
|
||||
reason='<div class="reason"><div class="eyebrow">Decision evidence</div><h3>Likely cloud / transparency loss</h3><div class="reason-line">Upper-left stellar flux: 58% of reference</div><div class="reason-line">Transient sky structure covers 86% of overlap</div><div class="reason-line">Star count: 1,151 vs 1,666 reference</div></div>'
|
||||
if not full:return '<section class="panel">'+reason+'</section>'
|
||||
rows=[('Cloud structure','103.31','—'),('Cloud area','85.6%','—'),('Star count','1,151','1,666'),('Stellar flux','0.856','0.975'),('FWHM','3.51 px','3.37 px'),('Ellipticity','0.19','0.11')]
|
||||
metrics='<div class="measurements"><div class="measure-header"><span>MEASUREMENT</span><span>FRAME / REFERENCE</span></div>'+''.join(f'<div class="measure-row"><span>{a}</span><b>{b} <span> / {c}</span></b></div>' for a,b,c in rows)+'</div>'
|
||||
return '<section class="panel">'+reason+metrics+'</section>'
|
||||
def studio():
|
||||
view='<section class="inspector"><div class="inspector-head"><h3>Selected exposure · '+stamp(selected)+' UTC</h3>'+selector('Frame view')+'</div>'+image()+'<div class="studio-bottom">'+decisions()+stretch()+'</div></section>'
|
||||
reasons='<section class="panel reason"><div style="display:flex;justify-content:space-between"><h3>Likely cloud / transparency loss</h3><span class="reject" style="font-size:11px">REJECT</span></div><p>Upper-left stellar flux is 58% of reference; transient sky structure covers 86% of overlap.</p><div class="reason-grid"><div class="measure-row"><span>Detected stars</span><b>1,151 / 1,666</b></div><div class="measure-row"><span>FWHM</span><b>3.51 / 3.37 px</b></div><div class="measure-row"><span>Stellar flux</span><b>0.856 / 0.975</b></div><div class="measure-row"><span>Ellipticity</span><b>0.19 / 0.11</b></div></div></section>'
|
||||
return '<div class="content studio">'+view+'<div class="right-stack">'+graph(800,285)+reasons+'</div>'+table(dense=True,limit=3)+'</div>'
|
||||
def layout(kind):
|
||||
if kind=='studio':return ribbon()+scope()+studio()
|
||||
if kind=='classic':inner=sessions()+'<div class="center-stack">'+graph()+table()+'</div>'+inspector()
|
||||
elif kind=='fieldwork':inner=sessions(compact=True)+inspector('fieldwork')+'<div class="right-stack">'+graph(585,260)+table(narrow=True,limit=4)+evidence()+'</div>'
|
||||
elif kind=='atlas':inner=table(narrow=True,limit=9)+inspector('atlas')+'<div class="right-stack">'+graph(540,294)+evidence(full=True)+'</div>'
|
||||
elif kind=='instrument':inner=sessions(compact=True,thumbs=True)+'<div class="center-stack">'+graph(820,277)+table(dense=True)+'</div>'+inspector()
|
||||
return scope()+f'<div class="content {kind}">'+inner+'</div>'
|
||||
|
||||
for design in DESIGNS:
|
||||
variables=':root{'+''.join('--'+k+':'+v+';' for k,v in design['palette'].items())+'}'
|
||||
content=topbar()+layout(design['layout'])+'<div class="footer"><span>490 lights · NGC 1432 · 20 Sep 2026</span><span>30 s exposures · IRCUT</span></div>'
|
||||
page='<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>AstroFrame — '+design['name']+'</title><style>'+variables+css+'</style></head><body><main id="app">'+content+'</main><script>function fit(){const s=Math.min(innerWidth/1680,innerHeight/1000);document.getElementById("app").style.transform="scale("+s+")";}addEventListener("resize",fit);fit();</script></body></html>'
|
||||
(HERE/(design['slug']+'.html')).write_text(page,encoding='utf-8')
|
||||
(HERE/'concepts.json').write_text(json.dumps([{k:v for k,v in d.items() if k!='palette'} for d in DESIGNS],indent=2),encoding='utf-8')
|
||||
print('Created five standalone mockups using one real exposure and session metrics.')
|
||||
32
design-concepts/concepts.json
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
[
|
||||
{
|
||||
"slug": "01-copper-observatory",
|
||||
"name": "Copper Observatory",
|
||||
"layout": "classic",
|
||||
"description": "Warm charcoal and copper. Familiar session sidebar, graph and table, with a larger inspector."
|
||||
},
|
||||
{
|
||||
"slug": "02-olive-fieldwork",
|
||||
"name": "Olive Fieldwork",
|
||||
"layout": "fieldwork",
|
||||
"description": "Smoked green and linen. A frame-first workspace with the image in the center and analysis to the right."
|
||||
},
|
||||
{
|
||||
"slug": "03-graphite-studio",
|
||||
"name": "Graphite Studio",
|
||||
"layout": "studio",
|
||||
"description": "Neutral graphite and silver. Horizontal session tabs, image and graph above a full-width exposure table."
|
||||
},
|
||||
{
|
||||
"slug": "04-plum-atlas",
|
||||
"name": "Plum Atlas",
|
||||
"layout": "atlas",
|
||||
"description": "Aubergine and dusty rose. Exposure list on the left, uninterrupted preview in the middle, evidence on the right."
|
||||
},
|
||||
{
|
||||
"slug": "05-parchment-instrument",
|
||||
"name": "Parchment Instrument",
|
||||
"layout": "instrument",
|
||||
"description": "Warm ivory and espresso. A light instrument-panel alternative with compact tables and a dark image canvas."
|
||||
}
|
||||
]
|
||||
BIN
design-concepts/gallery-preview.png
Normal file
|
After Width: | Height: | Size: 778 KiB |
3
design-concepts/index.html
Normal file
18
design-concepts/make_gallery.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
from pathlib import Path
|
||||
import base64,hashlib,html,json
|
||||
|
||||
here=Path(__file__).resolve().parent
|
||||
designs=json.loads((here/'concepts.json').read_text(encoding='utf-8'))
|
||||
cards=[]
|
||||
for i,d in enumerate(designs,1):
|
||||
slug=d['slug'];png=here/(slug+'.png');picture='data:image/png;base64,'+base64.b64encode(png.read_bytes()).decode()
|
||||
cards.append(f'<article><div class="heading"><span class="number">{i}</span><h2>{html.escape(d["name"])}</h2></div><a href="{slug}.html" aria-label="Open {d["name"]}"><img src="{picture}" alt="{d["name"]} full desktop mockup"></a><p>{html.escape(d["description"])}</p><div class="links"><a href="{slug}.html">Open standalone mockup ↗</a><a href="{slug}.png">Full-size image ↗</a></div></article>')
|
||||
page='''<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>AstroFrame design concepts</title><style>
|
||||
*{box-sizing:border-box}body{margin:0;background:#141414;color:#e9e6df;font-family:'Segoe UI',Arial,sans-serif;padding:40px;line-height:1.5}main{max-width:1800px;margin:auto}header{margin-bottom:32px;display:flex;justify-content:space-between;align-items:end;gap:24px}h1{font-size:28px;margin:0;font-weight:500}header p{color:#a5a19a;font-size:14px;margin:8px 0 0}.tag{color:#bbb4a6;border:1px solid #49453e;padding:6px 12px;border-radius:3px;white-space:nowrap;font-size:12px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}article{min-width:0}.heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}h2{font-size:18px;font-weight:500;margin:0}.number{color:#c9b79d;font-size:12px;border:1px solid #5a4e3d;border-radius:3px;display:grid;place-items:center;width:25px;height:25px}img{width:100%;display:block;border:1px solid #3e3b36;border-radius:4px}a{color:#d1bea3;text-decoration:none}a:hover{text-decoration:underline}article p{font-size:13px;color:#aaa59b;margin:10px 0}.links{display:flex;justify-content:space-between;font-size:12px;margin-top:12px}.notes{align-self:center;padding:34px;border-left:1px solid #494238}.notes h2{margin-bottom:12px}.notes p{font-size:14px;margin:8px 0;color:#b7b1a6}.notes a{font-size:13px}footer{margin-top:40px;color:#878279;font-size:12px}@media(max-width:1000px){.grid{grid-template-columns:1fr}.notes{border-left:0;border-top:1px solid #494238}body{padding:22px}header{display:block}.tag{display:inline-block;margin-top:14px}}
|
||||
</style></head><body><main><header><div><h1>AstroFrame · five design directions</h1><p>The same real exposure and session data in every mockup. Open a design to see it at full size.</p></div><span class="tag">Standalone concepts · application untouched</span></header><div class="grid">'''+''.join(cards)+'''<section class="notes"><h2>What changes between designs</h2><p>Color, layout, session navigation, data density, and placement of the preview and decision evidence.</p><p>Each has one selectable graph, a photographic space header, a fully visible stretch control, and no Inspect stars button.</p><p>These are visual concepts. No analysis, export, or review actions are connected.</p><a href="README.md">Design notes and image provenance ↗</a></section></div><footer>Frame preview and measurements: supplied Seestar dataset. Decorative header: generated concept asset, not scientific data.</footer></main></body></html>'''
|
||||
(here/'index.html').write_text(page,encoding='utf-8')
|
||||
baseline=json.loads((here/'unchanged-baseline.json').read_text())
|
||||
changed=[p for p,digest in baseline.items() if hashlib.sha256((here.parent/p).read_bytes()).hexdigest()!=digest]
|
||||
assert not changed,changed
|
||||
(here/'application-unchanged.json').write_text(json.dumps({'checkedFiles':len(baseline),'changedFiles':changed,'scope':'App source, Windows executable and DLL, and both saved projects.'},indent=2)+'\n')
|
||||
print('Gallery created. Application and saved-project hashes match the baseline.')
|
||||
7
design-concepts/mockups.css
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
*{box-sizing:border-box}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden}body{font-family:'Segoe UI',Arial,sans-serif;background:#090909;color:var(--text);font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums}button{font:inherit;color:inherit;cursor:default}#app{width:1680px;height:1000px;position:absolute;left:0;top:0;transform-origin:top left;background:var(--bg);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line)}
|
||||
.sky-header{height:96px;flex:none;position:relative;background:#0c0d11;color:#f5f2ed;overflow:hidden}.sky-photo{position:absolute;inset:0;background-size:cover;background-position:50% 49%;opacity:var(--sky-opacity);filter:var(--sky-filter)}.sky-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,9,11,.93),rgba(8,9,11,.38) 38%,rgba(8,9,11,.18) 65%,rgba(8,9,11,.88))}.chrome{height:30px;position:relative;display:flex;align-items:center;justify-content:space-between;padding-left:18px;font-size:12px;color:#e8e2db}.brand{display:flex;align-items:center;gap:8px;font-weight:600}.brand img{width:19px;height:19px}.caption-buttons{height:30px;display:flex}.caption-button{width:44px;display:grid;place-items:center;color:#dad8d5}.caption-button svg{width:11px;height:11px}.banner{height:66px;display:flex;align-items:center;justify-content:space-between;position:relative;padding:0 24px 6px}.project-label{display:flex;align-items:center;gap:13px}.project-label h1{font-size:21px;font-weight:600;margin:0}.project-label small{font-size:12px;color:#d1c9be;display:block;margin-top:3px}.toolbar{display:flex;align-items:center;gap:9px}.button{border:1px solid var(--line);background:var(--raised);color:var(--text);height:34px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--radius);white-space:nowrap;font-size:12px}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}.banner .button:not(.primary){background:#1c1b1bc9;border-color:#6e645955;color:#f5f1ea}.button.tiny{height:28px;padding:0 10px}.button.flat{background:transparent;border-color:var(--line)}.keep{color:var(--keep)}.review{color:var(--review)}.reject{color:var(--reject)}.muted{color:var(--muted)}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.15px;color:var(--muted);font-weight:600}h2,h3,p{margin:0}h2{font-size:18px;font-weight:600}h3{font-size:13px;font-weight:600}
|
||||
.scope{height:70px;padding:12px 24px;display:flex;gap:38px;align-items:center;border-bottom:1px solid var(--line);flex:none;background:var(--bg)}.target-info{min-width:278px}.target-info h2{display:inline;margin-right:12px}.target-info span{font-size:12px;color:var(--muted)}.target-info small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.totals{display:flex;align-items:center;gap:30px;margin-left:auto}.total{display:grid;grid-template-columns:auto auto;gap:2px 8px;align-items:baseline}.total b{font-size:22px;font-weight:500;grid-row:1/3}.total span{font-size:10px;letter-spacing:.5px;text-transform:uppercase}.total small{font-size:11px;color:var(--muted)}.content{padding:18px;flex:1;min-height:0;display:grid;gap:18px}.content.classic{grid-template-columns:188px minmax(0,1fr) 440px}.content.fieldwork{grid-template-columns:178px minmax(0,1.28fr) minmax(0,1fr)}.content.atlas{grid-template-columns:350px minmax(0,1.27fr) minmax(0,1fr)}.content.studio{grid-template-columns:1.07fr 1fr;grid-template-rows:minmax(0,1fr) 244px;gap:16px}.content.instrument{grid-template-columns:194px minmax(0,1fr) 450px;gap:22px;padding:22px}.side{min-width:0;display:flex;flex-direction:column;gap:6px}.side-heading{height:30px;padding:2px 10px;font-size:12px;color:var(--muted)}.session{padding:12px 10px;margin-bottom:4px;border-radius:var(--radius);border-left:3px solid transparent}.session.active{background:var(--selected);border-left-color:var(--accent)}.session strong{display:block;font-size:13px;font-weight:600}.session small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.session .meta{margin-top:1px}.session-thumb{display:none}.sessions.compact .session{padding:9px 10px}.sessions.thumbnails .session{display:flex;gap:10px}.sessions.thumbnails .session-thumb{display:block;width:38px;height:48px;object-fit:cover;background:#111}.sessions.thumbnails .session>div{flex:1;min-width:0}
|
||||
.panel{border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);min-width:0;min-height:0;overflow:hidden}.panel-head{height:46px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;gap:10px;border-bottom:1px solid var(--line)}.panel-head .right{display:flex;gap:7px;align-items:center}.select{height:29px;border:1px solid var(--line);border-radius:var(--radius);background:var(--raised);padding:4px 11px;display:inline-flex;align-items:center;gap:20px;font-size:11px;white-space:nowrap}.select:after{content:'⌄';font-size:14px;color:var(--muted);line-height:1}.center-stack,.right-stack{display:flex;flex-direction:column;gap:16px;min-height:0;min-width:0}.graph{flex:none;height:312px;display:flex;flex-direction:column}.graph svg{display:block;width:100%;height:100%;min-height:0}.chart-body{padding:0 10px 4px;height:calc(100% - 46px)}.chart-legend{display:flex;gap:14px;font-size:10px;color:var(--muted);align-items:center}.dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:5px}.plot-grid{stroke:var(--line);stroke-width:1}.plot-text{fill:var(--muted);font:11px 'Segoe UI',Arial}.plot-value{fill:var(--text);font:11px 'Segoe UI',Arial}.plot-marker.keep{fill:var(--keep)}.plot-marker.review{fill:var(--review)}.plot-marker.reject{fill:var(--reject)}.plot-reference{stroke:var(--accent);stroke-width:1.2;fill:none}.plot-selection{stroke:var(--text);stroke-width:.8;opacity:.45}
|
||||
.table-panel{flex:1;min-height:0;display:flex;flex-direction:column}.frame-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px}.frame-table th{font-size:10px;font-weight:400;color:var(--muted);height:34px;padding:0 12px;text-align:left;border-bottom:1px solid var(--line)}.frame-table td{padding:11px 12px;height:48px;border-bottom:1px solid var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.frame-table td:first-child{font-size:11px}.frame-table .chosen{background:var(--selected);box-shadow:inset 3px 0 var(--accent)}.frame-table .file{font-size:10px;color:var(--muted);display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis}.frame-table .num{text-align:right}.frame-table .decision{font-size:10px;letter-spacing:.2px;font-weight:600}.table-body{overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.table-caption{padding:9px 15px;color:var(--muted);font-size:10px;border-top:1px solid var(--line);height:32px;flex:none}.frame-table .filecol{width:40%}.frame-table .dec-col{width:82px}.frame-table .time-col{width:100px}.frame-table .num-col{width:64px}
|
||||
.inspector{display:flex;flex-direction:column;min-height:0;min-width:0}.inspector-head{height:30px;display:flex;align-items:center;justify-content:space-between;padding:0 1px 8px;flex:none}.decision-controls{display:flex;align-items:center;gap:7px;flex:none;height:40px;margin:4px 0 6px}.decision-controls .button{flex:1;height:32px;padding:0 11px}.decision-controls .reset{flex:0;height:30px;color:var(--muted)}.view-controls{height:35px;display:flex;align-items:center;justify-content:space-between;flex:none;gap:8px}.check-options{display:flex;gap:12px;align-items:center;font-size:11px;color:var(--muted)}.check{display:inline-block;width:12px;height:12px;border:1px solid var(--muted);border-radius:2px;vertical-align:-2px;margin-right:5px}.preview-stage{flex:1;min-height:0;margin:10px 0 0;display:flex;justify-content:center;align-items:center;background:#090b0e;border:1px solid var(--line);position:relative;overflow:hidden;border-radius:var(--radius)}.preview-stage img{display:block;width:100%;height:100%;object-fit:contain;min-height:0}.preview-stage .image-label{position:absolute;left:10px;top:8px;color:#f1eeea;background:#101011bb;font-size:10px;padding:4px 7px;border-radius:2px}.stretch{flex:none;min-height:64px;padding:9px 0 7px}.stretch-title{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:2px}.slider-line{height:34px;display:flex;gap:12px;align-items:center;padding:0 2px}.slider-area{height:28px;display:flex;align-items:center;flex:1;min-width:0;padding:0 9px}.slider-rail{position:relative;height:3px;background:var(--track);width:100%;border-radius:2px}.slider-fill{position:absolute;inset:0 auto 0 0;width:38%;background:var(--accent)}.slider-knob{position:absolute;width:15px;height:15px;top:50%;left:38%;transform:translate(-50%,-50%);border-radius:50%;border:2px solid var(--bg);background:var(--accent);box-shadow:0 0 0 1px var(--accent)}.exposure-caption{font-size:11px;min-height:44px;padding:7px 1px 4px;flex:none}.exposure-caption .filename{color:var(--muted);font-size:10px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:4px}.details-toggle{height:34px;flex:none;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:12px;padding:0 2px}.reason{padding:13px 15px;flex:none;display:flex;flex-direction:column;gap:9px}.reason h3{font-size:13px;font-weight:500}.reason p{font-size:11px;color:var(--muted);line-height:1.6}.reason-line{display:flex;gap:8px;align-items:baseline;font-size:11px}.reason-line:before{content:'•';color:var(--reject)}.measurements{padding:3px 15px 12px}.measure-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--faint);height:30px;align-items:center;font-size:11px}.measure-row span{color:var(--muted)}.measure-row b{font-weight:500}.measure-header{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;padding:10px 0 5px}.footer{height:26px;flex:none;border-top:1px solid var(--line);padding:5px 20px;display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}
|
||||
.fieldwork .inspector{padding:0 14px;border-left:1px solid var(--line);border-right:1px solid var(--line)}.fieldwork .graph{height:306px}.fieldwork .preview-stage{margin-top:9px}.fieldwork .right-stack .table-panel{min-height:225px}.fieldwork .right-stack .reason{padding:14px 16px}.fieldwork .right-stack{gap:14px}.fieldwork .inspector-head h3{font-size:16px}.fieldwork .decision-controls{margin-top:10px}.fieldwork .exposure-caption{padding-top:8px}.session-ribbon{display:flex;align-items:center;gap:8px;height:54px;flex:none;padding:8px 22px;border-bottom:1px solid var(--line);background:var(--panel)}.ribbon-item{display:flex;flex-direction:column;padding:4px 15px;border-bottom:2px solid transparent;min-width:153px;font-size:12px}.ribbon-item small{font-size:10px;color:var(--muted)}.ribbon-item.active{border-color:var(--accent);background:var(--selected)}.studio .inspector{display:grid;grid-template-columns:1fr;grid-template-rows:34px minmax(0,1fr) 57px;position:relative}.studio .inspector .inspector-head{height:34px}.studio .preview-stage{margin:0}.studio .studio-bottom{display:flex;align-items:center;gap:16px;margin-top:7px}.studio .decision-controls{min-width:295px;margin:0}.studio .stretch{flex:1;padding:0;min-height:50px}.studio .stretch-title{margin:0}.studio .select{margin-left:auto}.studio .right-stack .graph{flex:1;height:auto;min-height:250px}.studio .reason{background:var(--panel)}.studio .table-panel{grid-column:1/-1}.studio .frame-table td{height:34px;padding:7px 12px}.studio .table-caption{display:none}.studio .exposure-caption{display:none}.studio .reason-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 28px}.studio .reason-grid .measure-row{height:27px}.atlas .frame-table .filecol{display:none}.atlas .frame-table td{height:67px}.atlas .frame-table th{height:38px}.atlas .preview-stage{margin-top:0}.atlas .inspector{padding:0 10px}.atlas .inspector-head{height:37px}.atlas .right-stack .graph{height:345px}.atlas .right-stack .reason{padding:18px}.atlas .measurements{padding:0 18px 18px}.atlas .measure-row{height:37px}.atlas .decision-controls{margin-top:9px}.instrument .panel{border-radius:0;border-width:0;background:transparent}.instrument .graph{height:329px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.instrument .panel-head{padding-left:0;padding-right:0}.instrument .chart-body{padding-left:0;padding-right:0}.instrument .table-panel .panel-head{border-bottom:1px solid var(--line)}.instrument .frame-table td{height:39px;padding-top:6px;padding-bottom:6px}.instrument .inspector{padding-left:20px;border-left:1px solid var(--line)}.instrument .reason{padding:10px 0 0}.instrument .inspector-head{height:32px}.instrument .preview-stage{border:0;border-radius:0}.instrument .table-caption{padding-left:0}.instrument .decision-controls .button{border-radius:0}.instrument .side-heading{font-family:Georgia,serif;font-size:16px;color:var(--text)}.instrument .session.active{background:transparent;border-left-color:var(--accent)}
|
||||
101
design-concepts/qa-results.json
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
{
|
||||
"viewport": "1680x1000",
|
||||
"errors": [],
|
||||
"designs": [
|
||||
{
|
||||
"design": "Copper Observatory",
|
||||
"sliderFits": true,
|
||||
"controlsInsideWindow": true,
|
||||
"overlappingHeaders": [],
|
||||
"imagesLoaded": true,
|
||||
"singleGraph": true,
|
||||
"noInspectStars": true,
|
||||
"encodingIntact": true,
|
||||
"previewPixels": {
|
||||
"x": 1221,
|
||||
"y": 310,
|
||||
"width": 440,
|
||||
"height": 499.21875,
|
||||
"right": 1661,
|
||||
"bottom": 809.21875
|
||||
},
|
||||
"externalAssets": 0
|
||||
},
|
||||
{
|
||||
"design": "Olive Fieldwork",
|
||||
"sliderFits": true,
|
||||
"controlsInsideWindow": true,
|
||||
"overlappingHeaders": [],
|
||||
"imagesLoaded": true,
|
||||
"singleGraph": true,
|
||||
"noInspectStars": true,
|
||||
"encodingIntact": true,
|
||||
"previewPixels": {
|
||||
"x": 230,
|
||||
"y": 259,
|
||||
"width": 771.671875,
|
||||
"height": 527.21875,
|
||||
"right": 1001.671875,
|
||||
"bottom": 786.21875
|
||||
},
|
||||
"externalAssets": 0
|
||||
},
|
||||
{
|
||||
"design": "Graphite Studio",
|
||||
"sliderFits": true,
|
||||
"controlsInsideWindow": true,
|
||||
"overlappingHeaders": [],
|
||||
"imagesLoaded": true,
|
||||
"singleGraph": true,
|
||||
"noInspectStars": true,
|
||||
"encodingIntact": true,
|
||||
"previewPixels": {
|
||||
"x": 19,
|
||||
"y": 273,
|
||||
"width": 840.484375,
|
||||
"height": 365,
|
||||
"right": 859.484375,
|
||||
"bottom": 638
|
||||
},
|
||||
"externalAssets": 0
|
||||
},
|
||||
{
|
||||
"design": "Plum Atlas",
|
||||
"sliderFits": true,
|
||||
"controlsInsideWindow": true,
|
||||
"overlappingHeaders": [],
|
||||
"imagesLoaded": true,
|
||||
"singleGraph": true,
|
||||
"noInspectStars": true,
|
||||
"encodingIntact": true,
|
||||
"previewPixels": {
|
||||
"x": 397,
|
||||
"y": 257,
|
||||
"width": 682.6875,
|
||||
"height": 531.21875,
|
||||
"right": 1079.6875,
|
||||
"bottom": 788.21875
|
||||
},
|
||||
"externalAssets": 0
|
||||
},
|
||||
{
|
||||
"design": "Parchment Instrument",
|
||||
"sliderFits": true,
|
||||
"controlsInsideWindow": true,
|
||||
"overlappingHeaders": [],
|
||||
"imagesLoaded": true,
|
||||
"singleGraph": true,
|
||||
"noInspectStars": true,
|
||||
"encodingIntact": true,
|
||||
"previewPixels": {
|
||||
"x": 1228,
|
||||
"y": 316,
|
||||
"width": 429,
|
||||
"height": 489.21875,
|
||||
"right": 1657,
|
||||
"bottom": 805.21875
|
||||
},
|
||||
"externalAssets": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
13
design-concepts/render_gallery.cjs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
const {chromium}=require('C:/Users/Elijah/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules/playwright');
|
||||
const path=require('path'),{pathToFileURL}=require('url');
|
||||
(async()=>{
|
||||
const browser=await chromium.launch({executablePath:'C:/Program Files/Google/Chrome/Application/chrome.exe',headless:true,args:['--disable-gpu','--disable-extensions','--no-first-run']});
|
||||
try{
|
||||
const page=await browser.newPage({viewport:{width:1680,height:1000}});
|
||||
await page.goto(pathToFileURL(path.join(__dirname,'index.html')).href,{waitUntil:'load'});
|
||||
await page.evaluate(async()=>{await document.fonts.ready;await Promise.all([...document.images].map(i=>i.decode()));});
|
||||
const counts=await page.evaluate(()=>({cards:document.querySelectorAll('article').length,imagesLoaded:[...document.images].every(i=>i.naturalWidth>0),horizontalOverflow:document.documentElement.scrollWidth>innerWidth}));
|
||||
if(counts.cards!==5||!counts.imagesLoaded||counts.horizontalOverflow)throw new Error(JSON.stringify(counts));
|
||||
await page.screenshot({path:path.join(__dirname,'gallery-preview.png'),fullPage:true});console.log(JSON.stringify(counts));
|
||||
}finally{await browser.close();}
|
||||
})().catch(e=>{console.error(e);process.exitCode=1});
|
||||
28
design-concepts/render_mockups.cjs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
const {chromium}=require('C:/Users/Elijah/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules/playwright');
|
||||
const fs=require('fs'),path=require('path'),{pathToFileURL}=require('url');
|
||||
|
||||
(async()=>{
|
||||
const directory=__dirname,designs=JSON.parse(fs.readFileSync(path.join(directory,'concepts.json'),'utf8'));
|
||||
const browser=await chromium.launch({executablePath:'C:/Program Files/Google/Chrome/Application/chrome.exe',headless:true,args:['--disable-gpu','--disable-extensions','--no-first-run']});
|
||||
const context=await browser.newContext({viewport:{width:1680,height:1000},deviceScaleFactor:1});
|
||||
const page=await context.newPage(),errors=[];page.on('pageerror',e=>errors.push(e.message));
|
||||
const reports=[];
|
||||
try{
|
||||
for(const design of designs){
|
||||
await page.goto(pathToFileURL(path.join(directory,design.slug+'.html')).href,{waitUntil:'load'});
|
||||
await page.evaluate(async()=>{await document.fonts.ready;await Promise.all([...document.images].map(i=>i.decode()));});
|
||||
const result=await page.evaluate(()=>{
|
||||
const bounds=e=>{const r=e.getBoundingClientRect();return {x:r.x,y:r.y,width:r.width,height:r.height,right:r.right,bottom:r.bottom};};
|
||||
const contains=(a,b)=>a.x>=b.x-.1&&a.y>=b.y-.1&&a.right<=b.right+.1&&a.bottom<=b.bottom+.1;
|
||||
const root=document.getElementById('app'),knob=document.querySelector('[data-qa="knob"]'),stretch=document.querySelector('[data-qa="stretch"]');
|
||||
const inWindow=[...document.querySelectorAll('.button,.select,.slider-knob,.preview-stage,.inspector-head,.scope,.session-ribbon')].every(e=>contains(bounds(e),bounds(root)));
|
||||
const badHeaders=[...document.querySelectorAll('.panel-head')].filter(h=>[...h.children].some(c=>!contains(bounds(c),bounds(h)))).map(h=>h.textContent.trim());
|
||||
return {sliderFits:contains(bounds(knob),bounds(stretch)),controlsInsideWindow:inWindow,overlappingHeaders:badHeaders,imagesLoaded:[...document.images].every(i=>i.naturalWidth>0),singleGraph:document.querySelectorAll('.graph').length===1,noInspectStars:!document.body.textContent.includes('Inspect stars'),encodingIntact:!document.querySelector('style').textContent.includes('â€')&&!document.querySelector('style').textContent.includes('âŒ'),previewPixels:bounds(document.querySelector('.preview-stage')),externalAssets:[...document.querySelectorAll('[src]')].filter(e=>!e.getAttribute('src').startsWith('data:')).length};
|
||||
});
|
||||
await page.screenshot({path:path.join(directory,design.slug+'.png')});
|
||||
reports.push({design:design.name,...result});console.log(JSON.stringify(reports.at(-1)));
|
||||
}
|
||||
fs.writeFileSync(path.join(directory,'qa-results.json'),JSON.stringify({viewport:'1680x1000',errors,designs:reports},null,2));
|
||||
if(errors.length||reports.some(r=>!r.sliderFits||!r.controlsInsideWindow||r.overlappingHeaders.length||!r.imagesLoaded||!r.singleGraph||!r.noInspectStars||!r.encodingIntact||r.externalAssets))process.exitCode=1;
|
||||
}finally{await browser.close();}
|
||||
})().catch(e=>{console.error(e);process.exitCode=1});
|
||||
37
design-concepts/unchanged-baseline.json
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"src\\AstroFrame.Desktop\\DesktopState.cs": "cc7d9976cbc0decac0e01d4b6d9082207b8ee96ebef60ff4f1f85ee5423135aa",
|
||||
"src\\AstroFrame.Desktop\\MainWindow.cs": "37ef809901ec45496b54e558933e12d0bc5772fa736e111e75fb9414011535f4",
|
||||
"src\\AstroFrame.Desktop\\NativeDesktopChecks.cs": "df049f4f7631b3c12b634480fd379c604d804c59ff3a9082a906942053b9d8b2",
|
||||
"src\\AstroFrame.Desktop\\Program.cs": "7e54b17dda8361c409ad53ecfa6c5dcfb96572090ab889ad4afaf024d6bc6cb6",
|
||||
"src\\AstroFrame.Desktop\\SpaceBackdrop.cs": "c78f51cc6031e2fb917cb14ae02879d9594de352ee9eed4ecfbdd2abeab48d0d",
|
||||
"src\\AstroFrame.Desktop\\StarInspector.cs": "4568526f579b8c15a9ee7eefec98d648e676e1f00e13856e7d63ddf63f973b34",
|
||||
"src\\AstroFrame.Desktop\\Visuals.cs": "f16f5b872f30c9747f93b17aeddc4eef380addc927553c5b5842cf222aa1a10c",
|
||||
"src\\AstroFrame.Engine\\Classification.cs": "392ebb4f6e644e8ccb49e4e9794ba58cdf3bd33bafb9df6a18278c7aca914bcd",
|
||||
"src\\AstroFrame.Engine\\Export.cs": "d305858ecceeb730b32080e8e2b6e46bfea0b2b46eea0d30f95781b6a3024f4f",
|
||||
"src\\AstroFrame.Engine\\Fits.cs": "0c70ec845cb90a93b7f82e46130b4300147fc55a01906f900a809d0ef0d54dea",
|
||||
"src\\AstroFrame.Engine\\Matching.cs": "93625dd3df4ce86b0de6bb4aaf3576848f6079f2ba8273e0676be6b51fa5d570",
|
||||
"src\\AstroFrame.Engine\\Measurements.cs": "68070da95c4c39e564f5ebea28c2d9917f7525c3ce6458ea59290ec133de2698",
|
||||
"src\\AstroFrame.Engine\\Models.cs": "86030f0d21554f7a59c7d8225b12ff0c49b68180441dc237193cfb1969b6958e",
|
||||
"src\\AstroFrame.Engine\\PreviewRenderer.cs": "88cb727971a9cd84217a86511610cc8ffdc0fb29c169850eede64efb56413c27",
|
||||
"src\\AstroFrame.Engine\\ProjectStore.cs": "bf3e58ae537214ec542a78931c86c02559e7f7e8cbc4e96a614a7ffb8d00fb46",
|
||||
"src\\AstroFrame.Engine\\ResourcePolicy.cs": "8e49899b854f53ff6cc80bd12a40d788109351d68d11126b01e9aefc8d68579f",
|
||||
"src\\AstroFrame.Engine\\SkyModel.cs": "819e9ccd88954d1a1cb24a357795ef8aad841184e1420ee438acb542b6a7710e",
|
||||
"src\\AstroFrame.Engine\\SpatialReference.cs": "cbb35aba9ec7dc17570c9fe9b356008249fb416fd327b8833dad9c2c3625bf3d",
|
||||
"src\\AstroFrame.Engine\\StellarDetail.cs": "16c8dc7615cc1b15f7a0ea4a871051caa8a152f956857439b33a0e54ffd3d910",
|
||||
"src\\AstroFrame.Desktop\\obj\\Release\\net8.0\\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs": "f7a5d9789c863625e139ff99e1113a503830f6b85a88f6129916df83ac76b49e",
|
||||
"src\\AstroFrame.Desktop\\obj\\Release\\net8.0\\AstroFrame.Desktop.AssemblyInfo.cs": "992744bad6cc99ebc2d30709cb17c10a9089ba67795f2f0306921990f706046d",
|
||||
"src\\AstroFrame.Desktop\\obj\\Release\\net8.0\\AstroFrame.Desktop.GlobalUsings.g.cs": "f3f134e9e825e3e7268090f58b1af2bda2de513f61a09c56f48b9b8d08612abc",
|
||||
"src\\AstroFrame.Desktop\\obj\\Release\\net8.0\\linux-x64\\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs": "f7a5d9789c863625e139ff99e1113a503830f6b85a88f6129916df83ac76b49e",
|
||||
"src\\AstroFrame.Desktop\\obj\\Release\\net8.0\\linux-x64\\AstroFrame.Desktop.AssemblyInfo.cs": "992744bad6cc99ebc2d30709cb17c10a9089ba67795f2f0306921990f706046d",
|
||||
"src\\AstroFrame.Desktop\\obj\\Release\\net8.0\\linux-x64\\AstroFrame.Desktop.GlobalUsings.g.cs": "f3f134e9e825e3e7268090f58b1af2bda2de513f61a09c56f48b9b8d08612abc",
|
||||
"src\\AstroFrame.Desktop\\obj\\Release\\net8.0\\win-x64\\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs": "f7a5d9789c863625e139ff99e1113a503830f6b85a88f6129916df83ac76b49e",
|
||||
"src\\AstroFrame.Desktop\\obj\\Release\\net8.0\\win-x64\\AstroFrame.Desktop.AssemblyInfo.cs": "992744bad6cc99ebc2d30709cb17c10a9089ba67795f2f0306921990f706046d",
|
||||
"src\\AstroFrame.Desktop\\obj\\Release\\net8.0\\win-x64\\AstroFrame.Desktop.GlobalUsings.g.cs": "f3f134e9e825e3e7268090f58b1af2bda2de513f61a09c56f48b9b8d08612abc",
|
||||
"src\\AstroFrame.Engine\\obj\\Release\\net8.0\\.NETCoreApp,Version=v8.0.AssemblyAttributes.cs": "f7a5d9789c863625e139ff99e1113a503830f6b85a88f6129916df83ac76b49e",
|
||||
"src\\AstroFrame.Engine\\obj\\Release\\net8.0\\AstroFrame.Engine.AssemblyInfo.cs": "571d424f50b5f3901956becc2ee869365890ab24810a9d834afe402b7cf7d33f",
|
||||
"src\\AstroFrame.Engine\\obj\\Release\\net8.0\\AstroFrame.Engine.GlobalUsings.g.cs": "f3f134e9e825e3e7268090f58b1af2bda2de513f61a09c56f48b9b8d08612abc",
|
||||
"artifacts\\AstroFrame\\AstroFrame.Desktop.exe": "3693141e8040e951bf5b5f39be74e3d5b5c552f9998915d76d9686e38a50e9ef",
|
||||
"artifacts\\AstroFrame\\AstroFrame.Desktop.dll": "302be28f6435cb833d26c17bd3c9b8e48cbe7fd86d63b7448dd828fa3f0d912f",
|
||||
"projects\\Sample Survey\\project.json": "e6b6f700ec863f638822bd15d65c7c9af6734f0296e3d199eb260792a3ecab66",
|
||||
"projects\\NGC 7000\\project.json": "05b2cb5da408791f232856382fdede644b6b297fc0dd1da09fcbd76fc8f4b5ab"
|
||||
}
|
||||