4 Commits

Author SHA1 Message Date
steve c4e4a8c246 chore: bump version to 0.4.3
Build and push Docker image / build-push (push) Has been cancelled
2026-04-11 10:23:17 -06:00
steve b692791436 fix: align account access checkboxes with fixed grid layout
Use a 3-column inner grid (checkbox | label | dropdown) with fixed
64px row height for consistent alignment across all account entries.
2026-04-11 10:23:15 -06:00
steve 37d70b4d82 chore: bump version to 0.4.2
Build and push Docker image / build-push (push) Has been cancelled
2026-04-11 09:51:20 -06:00
steve 7d854d4e01 fix: clean up account access grid and separate OIDC fields in user form
Use CSS grid for uniform account checkbox layout and add a bordered
subsection with heading for the OIDC identity fields.
2026-04-11 09:51:18 -06:00
5 changed files with 51 additions and 18 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "ezcheck", "name": "ezcheck",
"version": "0.4.1", "version": "0.4.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ezcheck", "name": "ezcheck",
"version": "0.4.1", "version": "0.4.3",
"dependencies": { "dependencies": {
"bcryptjs": "^3.0.3", "bcryptjs": "^3.0.3",
"better-sqlite3": "^9.4.3", "better-sqlite3": "^9.4.3",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "ezcheck", "name": "ezcheck",
"version": "0.4.1", "version": "0.4.3",
"description": "Self-hosted check printing web app", "description": "Self-hosted check printing web app",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {
+35 -5
View File
@@ -867,19 +867,49 @@ input[type="file"] {
} }
/* ── User management ── */ /* ── User management ── */
.account-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; } .account-checkboxes {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 6px;
margin-top: 4px;
}
.account-checkbox-label { .account-checkbox-label {
display: flex; display: grid;
grid-template-columns: 20px 1fr auto;
align-items: center; align-items: center;
gap: 5px; gap: 8px;
font-size: 12px; font-size: 12px;
background: var(--bg); background: var(--bg);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 4px; border-radius: 6px;
padding: 3px 8px; padding: 6px 10px;
cursor: pointer; cursor: pointer;
height: 64px;
} }
.account-checkbox-label:hover { border-color: var(--primary); } .account-checkbox-label:hover { border-color: var(--primary); }
.account-checkbox-label input[type="checkbox"] {
justify-self: center;
}
.account-checkbox-label span {
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.3;
}
.account-checkbox-label select {
flex-shrink: 0;
}
.uf-oidc-section {
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--border);
}
.uf-oidc-section h4 {
font-size: 13px;
font-weight: 600;
margin-bottom: 10px;
color: var(--text-muted);
}
/* Hide layout editor button on portrait/mobile — canvas needs landscape space */ /* Hide layout editor button on portrait/mobile — canvas needs landscape space */
@media (max-width: 768px), (orientation: portrait) { @media (max-width: 768px), (orientation: portrait) {
+11 -8
View File
@@ -149,14 +149,17 @@
<label>Account Access <span class="field-hint">(admins see all — no selection needed)</span></label> <label>Account Access <span class="field-hint">(admins see all — no selection needed)</span></label>
<div id="uf-accounts-checkboxes" class="account-checkboxes"></div> <div id="uf-accounts-checkboxes" class="account-checkboxes"></div>
</div> </div>
<div id="uf-oidc-group" class="form-row" hidden> <div id="uf-oidc-group" class="uf-oidc-section" hidden>
<div class="form-group"> <h4>Single Sign-On Identity</h4>
<label for="uf-oidc-sub">OIDC Subject <span class="field-hint">(sub claim from provider)</span></label> <div class="form-row">
<input type="text" id="uf-oidc-sub" autocomplete="off"> <div class="form-group">
</div> <label for="uf-oidc-sub">OIDC Subject <span class="field-hint">(sub claim from provider)</span></label>
<div class="form-group"> <input type="text" id="uf-oidc-sub" autocomplete="off">
<label for="uf-oidc-issuer">OIDC Issuer <span class="field-hint">(provider URL)</span></label> </div>
<input type="text" id="uf-oidc-issuer" autocomplete="off"> <div class="form-group">
<label for="uf-oidc-issuer">OIDC Issuer <span class="field-hint">(provider URL)</span></label>
<input type="text" id="uf-oidc-issuer" autocomplete="off">
</div>
</div> </div>
</div> </div>
<div id="user-form-error" class="wizard-error" hidden></div> <div id="user-form-error" class="wizard-error" hidden></div>
+2 -2
View File
@@ -316,8 +316,8 @@ function renderUfAccountCheckboxes() {
const acctRole = assignment ? assignment.role : 'viewer'; const acctRole = assignment ? assignment.role : 'viewer';
return `<label class="account-checkbox-label"> return `<label class="account-checkbox-label">
<input type="checkbox" name="uf-account" value="${a.id}"${checked ? ' checked' : ''}> <input type="checkbox" name="uf-account" value="${a.id}"${checked ? ' checked' : ''}>
${escHtml(a.company1 || a.bank_name || `Account ${a.id}`)} <span>${escHtml(a.company1 || a.bank_name || `Account ${a.id}`)}</span>
<select name="uf-account-role" data-account-id="${a.id}" style="margin-left:6px;font-size:12px"> <select name="uf-account-role" data-account-id="${a.id}" style="font-size:12px">
<option value="editor"${acctRole === 'editor' ? ' selected' : ''}>Editor</option> <option value="editor"${acctRole === 'editor' ? ' selected' : ''}>Editor</option>
<option value="viewer"${acctRole === 'viewer' ? ' selected' : ''}>Viewer</option> <option value="viewer"${acctRole === 'viewer' ? ' selected' : ''}>Viewer</option>
</select> </select>