The task steps aside — a panel on instrument, a page on ledger
Browse files at this commit8f2935eaf01647d5ee288eb86a6b17486e30f81cParent: 9f04477- feat
- the task steps aside — a panel on instrument, a page on ledger
4 changed files +450 -157
- crates/izlek-web/src/detail.rs +168 -144
- style/_instrument.scss +74 -0
- style/_ledger.scss +175 -0
- style/main.scss +33 -13
crates/izlek-web/src/detail.rsmodified+168 -144
| @@ -1156,7 +1156,7 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool) -> Result | |||
| 1156 | return view! { | 1156 | return view! { |
| 1157 | cx => | 1157 | cx => |
| 1158 | <div class="modal-scrim"> | 1158 | <div class="modal-scrim"> |
| 1159 | - <div class="modal"><p class="modal-note">(refusal.message_in(lang))</p></div> | 1159 | + <div class="modal modal-task"><p class="modal-note">(refusal.message_in(lang))</p></div> |
| 1160 | </div> | 1160 | </div> |
| 1161 | (escape_closes(cx).await?) | 1161 | (escape_closes(cx).await?) |
| 1162 | }; | 1162 | }; |
| @@ -1191,19 +1191,10 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool) -> Result | |||
| 1191 | view! { | 1191 | view! { |
| 1192 | cx => | 1192 | cx => |
| 1193 | <div class="modal-scrim"> | 1193 | <div class="modal-scrim"> |
| 1194 | - <div class="modal" tabindex="-1"> | 1194 | + <div class="modal modal-task" tabindex="-1"> |
| 1195 | <header class="detail-head"> | 1195 | <header class="detail-head"> |
| 1196 | - <div class="detail-headline"> | 1196 | + <span class="detail-key">(detail.task_key.clone())</span> |
| 1197 | - <span class="detail-key">(detail.task_key.clone())</span> | 1197 | + <span class="detail-state"> |
| 1198 | - (title_control(cx, &detail, may_write, lang).await?) | ||
| 1199 | - </div> | ||
| 1200 | - <span class="detail-esc">(t(lang, Key::Esc))</span> | ||
| 1201 | - <a class="detail-close" href="/" aria-label=(t(lang, Key::CloseThisTask))>(glyph::cross(cx).await?)</a> | ||
| 1202 | - </header> | ||
| 1203 | - | ||
| 1204 | - <div class="detail-fields"> | ||
| 1205 | - <div class="detail-field"> | ||
| 1206 | - <span class="detail-label">(t(lang, Key::Status))</span> | ||
| 1207 | if may_write { | 1198 | if may_write { |
| 1208 | <form class="status-form" method="post" action="/api/move_card"> | 1199 | <form class="status-form" method="post" action="/api/move_card"> |
| 1209 | <input type="hidden" name="task_id" value=(detail.id.clone())> | 1200 | <input type="hidden" name="task_id" value=(detail.id.clone())> |
| @@ -1222,150 +1213,183 @@ pub async fn task_modal(cx: &Cx, task_id: &str, confirm_delete: bool) -> Result | |||
| 1222 | <span class="field-text">(detail.column.name.clone())</span> | 1213 | <span class="field-text">(detail.column.name.clone())</span> |
| 1223 | </span> | 1214 | </span> |
| 1224 | } | 1215 | } |
| 1225 | - (refused(cx, "move_card", lang).await?) | 1216 | + </span> |
| 1226 | - </div> | 1217 | + <div class="spacer"></div> |
| 1227 | - <div class="detail-field"> | 1218 | + <span class="detail-esc">(t(lang, Key::Esc))</span> |
| 1228 | - <span class="detail-label">(format!("{} — {}", t(lang, Key::Assignees), detail.assignees.len()))</span> | 1219 | + <a class="detail-close" href="/" aria-label=(t(lang, Key::CloseThisTask))>(glyph::cross(cx).await?)</a> |
| 1229 | - <div class="detail-assignees"> | 1220 | + <a class="quiet detail-board" href="/">(format!("<- {}", t(lang, Key::NavBoard)))</a> |
| 1230 | - for person in &detail.assignees { | 1221 | + </header> |
| 1231 | - (assignee_chip(cx, &detail.id, person, may_write, lang).await?) | 1222 | + |
| 1232 | - } | 1223 | + <div class="detail-body"> |
| 1233 | - <div class="spacer"></div> | 1224 | + (title_control(cx, &detail, may_write, lang).await?) |
| 1225 | + | ||
| 1226 | + <div class="detail-fields"> | ||
| 1227 | + <div class="detail-field detail-field-status"> | ||
| 1228 | + <span class="detail-label">(t(lang, Key::Status))</span> | ||
| 1234 | if may_write { | 1229 | if may_write { |
| 1235 | - (assignee_picker(cx, &detail.id, &unassigned, lang).await?) | 1230 | + <form class="status-form" method="post" action="/api/move_card"> |
| 1231 | + <input type="hidden" name="task_id" value=(detail.id.clone())> | ||
| 1232 | + <input type="hidden" name="from_column_id" value=(detail.column.id.clone())> | ||
| 1233 | + <span class=(class!("status-dot", "status-dot-done" if detail.column.is_done))></span> | ||
| 1234 | + <select class="status-select" name="to_column_id" data-autosubmit=""> | ||
| 1235 | + for column in &detail.columns { | ||
| 1236 | + <option value=(column.id.clone()) selected=(column.id == detail.column.id)>(column.name.clone())</option> | ||
| 1237 | + } | ||
| 1238 | + </select> | ||
| 1239 | + (glyph::chevron(cx).await?) | ||
| 1240 | + </form> | ||
| 1241 | + } else { | ||
| 1242 | + <span class="field-box"> | ||
| 1243 | + <span class="status-dot"></span> | ||
| 1244 | + <span class="field-text">(detail.column.name.clone())</span> | ||
| 1245 | + </span> | ||
| 1236 | } | 1246 | } |
| 1237 | </div> | 1247 | </div> |
| 1248 | + <div class="detail-field"> | ||
| 1249 | + <span class="detail-label">(t(lang, Key::Deadline))</span> | ||
| 1250 | + (deadline_control(cx, &detail, today, may_write, lang).await?) | ||
| 1251 | + </div> | ||
| 1252 | + <div class="detail-field"> | ||
| 1253 | + <span class="detail-label">(format!("{} — {}", t(lang, Key::Assignees), detail.assignees.len()))</span> | ||
| 1254 | + <div class="detail-assignees"> | ||
| 1255 | + for person in &detail.assignees { | ||
| 1256 | + (assignee_chip(cx, &detail.id, person, may_write, lang).await?) | ||
| 1257 | + } | ||
| 1258 | + <div class="spacer"></div> | ||
| 1259 | + if may_write { | ||
| 1260 | + (assignee_picker(cx, &detail.id, &unassigned, lang).await?) | ||
| 1261 | + } | ||
| 1262 | + </div> | ||
| 1263 | + </div> | ||
| 1238 | </div> | 1264 | </div> |
| 1239 | - <div class="detail-field"> | 1265 | + (refused(cx, "move_card", lang).await?) |
| 1240 | - <span class="detail-label">(t(lang, Key::Deadline))</span> | ||
| 1241 | - (deadline_control(cx, &detail, today, may_write, lang).await?) | ||
| 1242 | - </div> | ||
| 1243 | - </div> | ||
| 1244 | 1266 | ||
| 1245 | - <section class="detail-block"> | 1267 | + <section class="detail-block"> |
| 1246 | - <span class="detail-label">(t(lang, Key::Description))</span> | 1268 | + <span class="detail-label">(t(lang, Key::Description))</span> |
| 1247 | - (description_control(cx, &detail, may_write, lang).await?) | 1269 | + (description_control(cx, &detail, may_write, lang).await?) |
| 1248 | - </section> | 1270 | + </section> |
| 1249 | 1271 | ||
| 1250 | - <section class="detail-block"> | 1272 | + <section class="detail-block"> |
| 1251 | - <div class="detail-block-head"> | 1273 | + <div class="detail-block-head"> |
| 1252 | - <span class="detail-label">(t(lang, Key::Dependencies))</span> | 1274 | + <span class="detail-label">(t(lang, Key::Dependencies))</span> |
| 1253 | - <div class="spacer"></div> | 1275 | + <div class="spacer"></div> |
| 1254 | - if may_write { | 1276 | + if may_write { |
| 1255 | - (link_picker(cx, &detail.id, &linkable, lang).await?) | 1277 | + (link_picker(cx, &detail.id, &linkable, lang).await?) |
| 1256 | - } | ||
| 1257 | - </div> | ||
| 1258 | - if has_deps { | ||
| 1259 | - <div class="dep-list"> | ||
| 1260 | - for edge in &detail.blocked_by { | ||
| 1261 | - (dep_row(cx, &detail.id, edge, Direction::BlockedBy, may_write, lang).await?) | ||
| 1262 | - } | ||
| 1263 | - for edge in &detail.blocks { | ||
| 1264 | - (dep_row(cx, &detail.id, edge, Direction::Blocks, may_write, lang).await?) | ||
| 1265 | } | 1278 | } |
| 1266 | </div> | 1279 | </div> |
| 1267 | - } else { | 1280 | + if has_deps { |
| 1268 | - <p class="detail-prose detail-prose-empty">(t(lang, Key::NoDependencies))</p> | 1281 | + <div class="dep-list"> |
| 1269 | - } | 1282 | + for edge in &detail.blocked_by { |
| 1270 | - </section> | 1283 | + (dep_row(cx, &detail.id, edge, Direction::BlockedBy, may_write, lang).await?) |
| 1284 | + } | ||
| 1285 | + for edge in &detail.blocks { | ||
| 1286 | + (dep_row(cx, &detail.id, edge, Direction::Blocks, may_write, lang).await?) | ||
| 1287 | + } | ||
| 1288 | + </div> | ||
| 1289 | + } else { | ||
| 1290 | + <p class="detail-prose detail-prose-empty">(t(lang, Key::NoDependencies))</p> | ||
| 1291 | + } | ||
| 1292 | + </section> | ||
| 1271 | 1293 | ||
| 1272 | - <section class="detail-block"> | 1294 | + <section class="detail-block"> |
| 1273 | - <div class="detail-block-head"> | 1295 | + <div class="detail-block-head"> |
| 1274 | - <span class="detail-label">(t(lang, Key::Files))</span> | 1296 | + <span class="detail-label">(t(lang, Key::Files))</span> |
| 1275 | - <span class="detail-count">(detail.files.len())</span> | 1297 | + <span class="detail-count">(detail.files.len())</span> |
| 1276 | - </div> | ||
| 1277 | - if !detail.files.is_empty() { | ||
| 1278 | - <div class="file-list"> | ||
| 1279 | - for file in &detail.files { | ||
| 1280 | - (file_chip(cx, &detail.id, file, &me, may_write, lang).await?) | ||
| 1281 | - } | ||
| 1282 | </div> | 1298 | </div> |
| 1283 | - } | 1299 | + if !detail.files.is_empty() { |
| 1284 | - (refused(cx, "delete_file", lang).await?) | 1300 | + <div class="file-list"> |
| 1285 | - if may_comment { | 1301 | + for file in &detail.files { |
| 1286 | - <form class="file-upload" method="post" action="/files" enctype="multipart/form-data"> | 1302 | + (file_chip(cx, &detail.id, file, &me, may_write, lang).await?) |
| 1287 | - <input type="hidden" name="task_id" value=(detail.id.clone())> | 1303 | + } |
| 1288 | - <label class="field-box file-upload-box"> | ||
| 1289 | - (glyph::plus(cx).await?) | ||
| 1290 | - <span class="field-text file-upload-name">(t(lang, Key::File))</span> | ||
| 1291 | - <input class="file-upload-input" type="file" name="file" accept=(accept) required=""> | ||
| 1292 | - </label> | ||
| 1293 | - </form> | ||
| 1294 | - (refused(cx, "upload_file", lang).await?) | ||
| 1295 | - } | ||
| 1296 | - </section> | ||
| 1297 | - | ||
| 1298 | - <section class="detail-block"> | ||
| 1299 | - <div class="detail-block-head"> | ||
| 1300 | - <span class="detail-label">(t(lang, Key::Comments))</span> | ||
| 1301 | - <span class="detail-count">(detail.comments.len())</span> | ||
| 1302 | - </div> | ||
| 1303 | - <div class="comment-list"> | ||
| 1304 | - for entry in &detail.comments { | ||
| 1305 | - (comment_row(cx, entry, zone).await?) | ||
| 1306 | - } | ||
| 1307 | - </div> | ||
| 1308 | - if may_comment { | ||
| 1309 | - <form class="comment-composer" method="post" action="/api/post_comment"> | ||
| 1310 | - <input type="hidden" name="task_id" value=(detail.id.clone())> | ||
| 1311 | - <textarea class="detail-textarea comment-input" name="body" rows="3" placeholder=(t(lang, Key::WriteAComment)) required=""></textarea> | ||
| 1312 | - <div class="comment-row"> | ||
| 1313 | - <div class="spacer"></div> | ||
| 1314 | - <button class="comment-post" type="submit">(t(lang, Key::Comment))</button> | ||
| 1315 | - </div> | ||
| 1316 | - </form> | ||
| 1317 | - (refused(cx, "post_comment", lang).await?) | ||
| 1318 | - } | ||
| 1319 | - </section> | ||
| 1320 | - | ||
| 1321 | - <section class="detail-block"> | ||
| 1322 | - <span class="detail-label">(t(lang, Key::Activity))</span> | ||
| 1323 | - <div class="activity-list"> | ||
| 1324 | - for entry in &detail.activity { | ||
| 1325 | - <div class="activity-line"> | ||
| 1326 | - <span class="activity-stamp">(entry.moment_in(zone))</span> | ||
| 1327 | - <strong class="activity-who">(entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "Izlek".to_string()))</strong> | ||
| 1328 | - <span class="activity-what">(entry.sentence())</span> | ||
| 1329 | </div> | 1304 | </div> |
| 1330 | } | 1305 | } |
| 1331 | - </div> | 1306 | + (refused(cx, "delete_file", lang).await?) |
| 1332 | - </section> | 1307 | + if may_comment { |
| 1333 | - | 1308 | + <form class="file-upload" method="post" action="/files" enctype="multipart/form-data"> |
| 1334 | - (refused(cx, "delete_task", lang).await?) | 1309 | + <input type="hidden" name="task_id" value=(detail.id.clone())> |
| 1335 | - | 1310 | + <label class="field-box file-upload-box"> |
| 1336 | - <footer class="detail-foot"> | 1311 | + (glyph::plus(cx).await?) |
| 1337 | - if may_delete { | 1312 | + <span class="field-text file-upload-name">(t(lang, Key::File))</span> |
| 1338 | - match cost { | 1313 | + <input class="file-upload-input" type="file" name="file" accept=(accept) required=""> |
| 1339 | - Some(cost) => { | 1314 | + </label> |
| 1340 | - let freed = cost.frees.join(", "); | 1315 | + </form> |
| 1341 | - <details class="confirm-details" open=(confirm_delete)> | 1316 | + (refused(cx, "upload_file", lang).await?) |
| 1342 | - <summary class="detail-delete">(glyph::bin(cx).await?)<span>(t(lang, Key::DeleteTask))</span></summary> | ||
| 1343 | - <div class="confirm"> | ||
| 1344 | - <div class="confirm-title">(format!("{} — {}?", cost.task_key, cost.title))</div> | ||
| 1345 | - <ul class="confirm-list"> | ||
| 1346 | - if cost.comment_count > 0 { | ||
| 1347 | - <li>(if cost.comment_count == 1 { t(lang, Key::CommentGoesWithIt).to_string() } else { format!("{} {}", cost.comment_count, t(lang, Key::CommentsGoWithIt)) })</li> | ||
| 1348 | - } | ||
| 1349 | - if cost.link_count > 0 { | ||
| 1350 | - <li>(if cost.link_count == 1 { t(lang, Key::DependencyStopsApplying).to_string() } else { format!("{} {}", cost.link_count, t(lang, Key::DependenciesStopApplying)) })</li> | ||
| 1351 | - } | ||
| 1352 | - if !freed.is_empty() { | ||
| 1353 | - <li>(format!("{freed} {}", t(lang, Key::StopsBeingBlocked)))</li> | ||
| 1354 | - } | ||
| 1355 | - </ul> | ||
| 1356 | - <form class="detail-delete-form" method="post" action="/api/delete_task"> | ||
| 1357 | - <input type="hidden" name="task_id" value=(detail.id.clone())> | ||
| 1358 | - <button class="detail-delete detail-delete-sure" type="submit">(t(lang, Key::DeleteTask))</button> | ||
| 1359 | - </form> | ||
| 1360 | - </div> | ||
| 1361 | - </details> | ||
| 1362 | - }, | ||
| 1363 | - None => <p class="detail-quiet">(t(lang, Key::ThisTaskCannotBeDeleted))</p>, | ||
| 1364 | } | 1317 | } |
| 1365 | - } | 1318 | + </section> |
| 1366 | - <div class="spacer"></div> | 1319 | + |
| 1367 | - <a class="quiet" href="/">(t(lang, Key::Close))</a> | 1320 | + <section class="detail-block"> |
| 1368 | - </footer> | 1321 | + <div class="detail-block-head"> |
| 1322 | + <span class="detail-label">(t(lang, Key::Comments))</span> | ||
| 1323 | + <span class="detail-count">(detail.comments.len())</span> | ||
| 1324 | + </div> | ||
| 1325 | + <div class="comment-list"> | ||
| 1326 | + for entry in &detail.comments { | ||
| 1327 | + (comment_row(cx, entry, zone).await?) | ||
| 1328 | + } | ||
| 1329 | + </div> | ||
| 1330 | + </section> | ||
| 1331 | + | ||
| 1332 | + <section class="detail-block"> | ||
| 1333 | + <span class="detail-label">(t(lang, Key::Activity))</span> | ||
| 1334 | + <div class="activity-list"> | ||
| 1335 | + for entry in &detail.activity { | ||
| 1336 | + <div class="activity-line"> | ||
| 1337 | + <span class="activity-stamp">(entry.moment_in(zone))</span> | ||
| 1338 | + <strong class="activity-who">(entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "Izlek".to_string()))</strong> | ||
| 1339 | + <span class="activity-what">(entry.sentence())</span> | ||
| 1340 | + </div> | ||
| 1341 | + } | ||
| 1342 | + </div> | ||
| 1343 | + </section> | ||
| 1344 | + | ||
| 1345 | + (refused(cx, "delete_task", lang).await?) | ||
| 1346 | + | ||
| 1347 | + <footer class="detail-foot"> | ||
| 1348 | + if may_delete { | ||
| 1349 | + match cost { | ||
| 1350 | + Some(cost) => { | ||
| 1351 | + let freed = cost.frees.join(", "); | ||
| 1352 | + <details class="confirm-details" open=(confirm_delete)> | ||
| 1353 | + <summary class="detail-delete">(glyph::bin(cx).await?)<span>(t(lang, Key::DeleteTask))</span></summary> | ||
| 1354 | + <div class="confirm"> | ||
| 1355 | + <div class="confirm-title">(format!("{} — {}?", cost.task_key, cost.title))</div> | ||
| 1356 | + <ul class="confirm-list"> | ||
| 1357 | + if cost.comment_count > 0 { | ||
| 1358 | + <li>(if cost.comment_count == 1 { t(lang, Key::CommentGoesWithIt).to_string() } else { format!("{} {}", cost.comment_count, t(lang, Key::CommentsGoWithIt)) })</li> | ||
| 1359 | + } | ||
| 1360 | + if cost.link_count > 0 { | ||
| 1361 | + <li>(if cost.link_count == 1 { t(lang, Key::DependencyStopsApplying).to_string() } else { format!("{} {}", cost.link_count, t(lang, Key::DependenciesStopApplying)) })</li> | ||
| 1362 | + } | ||
| 1363 | + if !freed.is_empty() { | ||
| 1364 | + <li>(format!("{freed} {}", t(lang, Key::StopsBeingBlocked)))</li> | ||
| 1365 | + } | ||
| 1366 | + </ul> | ||
| 1367 | + <form class="detail-delete-form" method="post" action="/api/delete_task"> | ||
| 1368 | + <input type="hidden" name="task_id" value=(detail.id.clone())> | ||
| 1369 | + <button class="detail-delete detail-delete-sure" type="submit">(t(lang, Key::DeleteTask))</button> | ||
| 1370 | + </form> | ||
| 1371 | + </div> | ||
| 1372 | + </details> | ||
| 1373 | + }, | ||
| 1374 | + None => <p class="detail-quiet">(t(lang, Key::ThisTaskCannotBeDeleted))</p>, | ||
| 1375 | + } | ||
| 1376 | + } | ||
| 1377 | + <div class="spacer"></div> | ||
| 1378 | + <a class="quiet" href="/">(t(lang, Key::Close))</a> | ||
| 1379 | + </footer> | ||
| 1380 | + </div> | ||
| 1381 | + | ||
| 1382 | + if may_comment { | ||
| 1383 | + <form class="comment-composer" method="post" action="/api/post_comment"> | ||
| 1384 | + <input type="hidden" name="task_id" value=(detail.id.clone())> | ||
| 1385 | + <textarea class="detail-textarea comment-input" name="body" rows="3" placeholder=(t(lang, Key::WriteAComment)) required=""></textarea> | ||
| 1386 | + <div class="comment-row"> | ||
| 1387 | + <div class="spacer"></div> | ||
| 1388 | + <button class="comment-post" type="submit">(t(lang, Key::Comment))</button> | ||
| 1389 | + </div> | ||
| 1390 | + </form> | ||
| 1391 | + (refused(cx, "post_comment", lang).await?) | ||
| 1392 | + } | ||
| 1369 | </div> | 1393 | </div> |
| 1370 | </div> | 1394 | </div> |
| 1371 | (datepicker_script(cx, lang).await?) | 1395 | (datepicker_script(cx, lang).await?) |
style/_instrument.scssmodified+74 -0
| @@ -159,3 +159,77 @@ | |||
| 159 | // heights, radii, shadows — already carry the rest.) | 159 | // heights, radii, shadows — already carry the rest.) |
| 160 | 160 | ||
| 161 | } | 161 | } |
| 162 | + | ||
| 163 | +// -- task detail: 560px side panel over the board ---------------------------- | ||
| 164 | +// The board stays live underneath; the panel docks right and dims the board | ||
| 165 | +// through the scrim. The base `.modal-task` only fixes the frame — this rule | ||
| 166 | +// moves it out of the centered flow and gives it the panel geometry. | ||
| 167 | +[data-ui="instrument"] .modal-scrim:has(> .modal-task) { | ||
| 168 | + background: color-mix(in srgb, var(--scrim) 65%, transparent); | ||
| 169 | + justify-content: flex-end; | ||
| 170 | + padding: 0; | ||
| 171 | +} | ||
| 172 | + | ||
| 173 | +[data-ui="instrument"] .modal-task { | ||
| 174 | + position: fixed; | ||
| 175 | + top: 0; | ||
| 176 | + right: 0; | ||
| 177 | + bottom: 0; | ||
| 178 | + width: 560px; | ||
| 179 | + max-width: 100%; | ||
| 180 | + max-height: none; | ||
| 181 | + background: var(--surface); | ||
| 182 | + border: none; | ||
| 183 | + border-radius: 0; | ||
| 184 | + box-shadow: var(--shadow-3); | ||
| 185 | +} | ||
| 186 | + | ||
| 187 | +// Header: key left, Esc and the close cross right. The header's own state | ||
| 188 | +// chip is suppressed — status lives in the body's field grid. | ||
| 189 | +[data-ui="instrument"] .modal-task .detail-head { | ||
| 190 | + align-items: center; | ||
| 191 | + gap: 12px; | ||
| 192 | + padding: 14px 16px; | ||
| 193 | + border-bottom: 1px solid var(--border); | ||
| 194 | +} | ||
| 195 | + | ||
| 196 | +[data-ui="instrument"] .detail-state, | ||
| 197 | +[data-ui="instrument"] .detail-board { | ||
| 198 | + display: none; | ||
| 199 | +} | ||
| 200 | + | ||
| 201 | +[data-ui="instrument"] .detail-body { | ||
| 202 | + flex: 1; | ||
| 203 | + min-height: 0; | ||
| 204 | + overflow-y: auto; | ||
| 205 | + padding: 20px; | ||
| 206 | +} | ||
| 207 | + | ||
| 208 | +[data-ui="instrument"] .detail-title { | ||
| 209 | + font-size: 20px; | ||
| 210 | +} | ||
| 211 | + | ||
| 212 | +[data-ui="instrument"] .detail-fields { | ||
| 213 | + grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
| 214 | + gap: 10px; | ||
| 215 | + padding: 0; | ||
| 216 | + margin-top: 18px; | ||
| 217 | +} | ||
| 218 | + | ||
| 219 | +// Blocks run down the panel body below the title; only the composer pins. | ||
| 220 | +[data-ui="instrument"] .detail-block { | ||
| 221 | + margin-top: 18px; | ||
| 222 | +} | ||
| 223 | + | ||
| 224 | +[data-ui="instrument"] .detail-foot { | ||
| 225 | + padding: 0; | ||
| 226 | + margin-top: 20px; | ||
| 227 | +} | ||
| 228 | + | ||
| 229 | +// Composer is the last child of `.modal-task` (outside `.detail-body`), so on | ||
| 230 | +// the flex panel it stays pinned while the body above scrolls. | ||
| 231 | +[data-ui="instrument"] .comment-composer { | ||
| 232 | + flex: none; | ||
| 233 | + padding: 14px 20px; | ||
| 234 | + border-top: 1px solid var(--border); | ||
| 235 | +} | ||
style/_ledger.scssmodified+175 -0
| @@ -245,3 +245,178 @@ | |||
| 245 | 245 | ||
| 246 | .rule-switch-on { background: var(--ink); } | 246 | .rule-switch-on { background: var(--ink); } |
| 247 | } | 247 | } |
| 248 | + | ||
| 249 | +// -- task detail: its own page ------------------------------------------------ | ||
| 250 | +// No chrome, no floating card: the modal opens as an opaque paper page. The | ||
| 251 | +// scrim carries the paper ground and the invisible panning; the column is | ||
| 252 | +// static content on top of it, so nothing inside ever scrolls or shows a | ||
| 253 | +// scrollbar. | ||
| 254 | +[data-ui="ledger"] .modal-scrim:has(> .modal-task) { | ||
| 255 | + background: var(--bg); | ||
| 256 | + justify-content: center; | ||
| 257 | + padding: 36px 40px; | ||
| 258 | +} | ||
| 259 | + | ||
| 260 | +[data-ui="ledger"] .modal-task { | ||
| 261 | + position: static; | ||
| 262 | + width: 720px; | ||
| 263 | + max-width: 100%; | ||
| 264 | + max-height: none; | ||
| 265 | + overflow: visible; | ||
| 266 | + display: block; | ||
| 267 | + background: transparent; | ||
| 268 | + border: none; | ||
| 269 | + border-radius: 0; | ||
| 270 | + box-shadow: none; | ||
| 271 | +} | ||
| 272 | + | ||
| 273 | +[data-ui="ledger"] .detail-body { | ||
| 274 | + overflow: visible; | ||
| 275 | +} | ||
| 276 | + | ||
| 277 | +// Meta row: key + state chip left, `<- Board` right. The panel chrome — Esc | ||
| 278 | +// hint, close cross — and the body's status fieldbox (the chip already says | ||
| 279 | +// it) are suppressed. | ||
| 280 | +[data-ui="ledger"] .modal-task .detail-head { | ||
| 281 | + align-items: center; | ||
| 282 | + gap: 12px; | ||
| 283 | + padding: 0; | ||
| 284 | +} | ||
| 285 | + | ||
| 286 | +[data-ui="ledger"] .modal-task .detail-esc, | ||
| 287 | +[data-ui="ledger"] .modal-task .detail-close, | ||
| 288 | +[data-ui="ledger"] .detail-body .detail-field-status { | ||
| 289 | + display: none; | ||
| 290 | +} | ||
| 291 | + | ||
| 292 | +// Dependency rows lose the card chrome - the page reads as ruled paper. | ||
| 293 | +[data-ui="ledger"] .dep-row { | ||
| 294 | + border: 0; | ||
| 295 | + border-bottom: 1px solid var(--border); | ||
| 296 | + border-radius: 0; | ||
| 297 | + background: transparent; | ||
| 298 | +} | ||
| 299 | + | ||
| 300 | +[data-ui="ledger"] .modal-task .detail-key { | ||
| 301 | + font-size: 10px; | ||
| 302 | + letter-spacing: 0.08em; | ||
| 303 | + text-transform: uppercase; | ||
| 304 | + color: var(--ink); | ||
| 305 | + text-decoration: underline dotted; | ||
| 306 | + text-underline-offset: 3px; | ||
| 307 | +} | ||
| 308 | + | ||
| 309 | +[data-ui="ledger"] .detail-state { | ||
| 310 | + font-family: var(--font-mono); | ||
| 311 | + font-size: 10px; | ||
| 312 | + letter-spacing: 0.08em; | ||
| 313 | + text-transform: uppercase; | ||
| 314 | +} | ||
| 315 | + | ||
| 316 | +[data-ui="ledger"] .detail-state .field-box, | ||
| 317 | +[data-ui="ledger"] .detail-state .status-form { | ||
| 318 | + height: auto; | ||
| 319 | + padding: 0; | ||
| 320 | + background: transparent; | ||
| 321 | + border: none; | ||
| 322 | + font: inherit; | ||
| 323 | + color: var(--ink); | ||
| 324 | +} | ||
| 325 | + | ||
| 326 | +[data-ui="ledger"] .detail-state .status-select { | ||
| 327 | + width: auto; | ||
| 328 | + flex: none; | ||
| 329 | + font: inherit; | ||
| 330 | + text-transform: uppercase; | ||
| 331 | +} | ||
| 332 | + | ||
| 333 | +[data-ui="ledger"] .detail-state .status-dot { | ||
| 334 | + display: none; | ||
| 335 | +} | ||
| 336 | + | ||
| 337 | +[data-ui="ledger"] .detail-board { | ||
| 338 | + margin-left: auto; | ||
| 339 | + font-size: 10px; | ||
| 340 | + letter-spacing: 0.08em; | ||
| 341 | + text-transform: uppercase; | ||
| 342 | + color: var(--ink); | ||
| 343 | + background: transparent; | ||
| 344 | + border: none; | ||
| 345 | + height: auto; | ||
| 346 | +} | ||
| 347 | + | ||
| 348 | +// Serif title over a heavy rule; the edit form gets the same rule so the | ||
| 349 | +// title area holds still while editing. | ||
| 350 | +[data-ui="ledger"] .detail-body .detail-title, | ||
| 351 | +[data-ui="ledger"] .title-form { | ||
| 352 | + padding-bottom: 10px; | ||
| 353 | + border-bottom: 2px solid var(--ink); | ||
| 354 | +} | ||
| 355 | + | ||
| 356 | +[data-ui="ledger"] .detail-title { | ||
| 357 | + font-family: var(--font-serif, Georgia, serif); | ||
| 358 | + font-size: 32px; | ||
| 359 | + font-weight: 400; | ||
| 360 | + line-height: 1.15; | ||
| 361 | + letter-spacing: 0; | ||
| 362 | +} | ||
| 363 | + | ||
| 364 | +[data-ui="ledger"] .title-input { | ||
| 365 | + height: auto; | ||
| 366 | + padding: 0; | ||
| 367 | + border: none; | ||
| 368 | + background: transparent; | ||
| 369 | + font-family: var(--font-serif, Georgia, serif); | ||
| 370 | + font-size: 32px; | ||
| 371 | + font-weight: 400; | ||
| 372 | +} | ||
| 373 | + | ||
| 374 | +// Hairline ruled rows instead of boxed controls. | ||
| 375 | +[data-ui="ledger"] .detail-fields { | ||
| 376 | + display: block; | ||
| 377 | + padding: 0; | ||
| 378 | + margin-top: 24px; | ||
| 379 | + border-top: 1px solid var(--border); | ||
| 380 | +} | ||
| 381 | + | ||
| 382 | +[data-ui="ledger"] .detail-field { | ||
| 383 | + display: flex; | ||
| 384 | + flex-direction: row; | ||
| 385 | + align-items: baseline; | ||
| 386 | + gap: 16px; | ||
| 387 | + padding: 10px 0; | ||
| 388 | + border-bottom: 1px solid var(--border); | ||
| 389 | +} | ||
| 390 | + | ||
| 391 | +[data-ui="ledger"] .detail-field > .detail-label { | ||
| 392 | + flex: none; | ||
| 393 | + width: 130px; | ||
| 394 | +} | ||
| 395 | + | ||
| 396 | +[data-ui="ledger"] .detail-field .field-box, | ||
| 397 | +[data-ui="ledger"] .detail-field .status-form { | ||
| 398 | + background: transparent; | ||
| 399 | + border: none; | ||
| 400 | + border-radius: 0; | ||
| 401 | + padding: 0; | ||
| 402 | + height: auto; | ||
| 403 | +} | ||
| 404 | + | ||
| 405 | +[data-ui="ledger"] .detail-field .status-dot { | ||
| 406 | + display: none; | ||
| 407 | +} | ||
| 408 | + | ||
| 409 | +// Long-form sections run as prose on paper. | ||
| 410 | +[data-ui="ledger"] .detail-block { | ||
| 411 | + margin-top: 24px; | ||
| 412 | +} | ||
| 413 | + | ||
| 414 | +[data-ui="ledger"] .comment-list { | ||
| 415 | + border-top: 1px solid var(--border); | ||
| 416 | +} | ||
| 417 | + | ||
| 418 | +// Composer sits in the flow at the end of the page — the body above is | ||
| 419 | +// static, so it simply follows the sections. | ||
| 420 | +[data-ui="ledger"] .comment-composer { | ||
| 421 | + padding: 20px 0 0; | ||
| 422 | +} | ||
style/main.scssmodified+33 -13
| @@ -985,6 +985,12 @@ a { | |||
| 985 | justify-content: center; | 985 | justify-content: center; |
| 986 | padding: 48px 24px; | 986 | padding: 48px 24px; |
| 987 | overflow-y: auto; | 987 | overflow-y: auto; |
| 988 | + // The scrim is the silent pan surface for tall page-style modals: it may | ||
| 989 | + // scroll, but it never shows a scrollbar. | ||
| 990 | + scrollbar-width: none; | ||
| 991 | + | ||
| 992 | + &::-webkit-scrollbar { display: none; } | ||
| 993 | + | ||
| 988 | z-index: 20; | 994 | z-index: 20; |
| 989 | } | 995 | } |
| 990 | 996 | ||
| @@ -1012,20 +1018,25 @@ a { | |||
| 1012 | 1018 | ||
| 1013 | .modal-new-task { width: 480px; } | 1019 | .modal-new-task { width: 480px; } |
| 1014 | 1020 | ||
| 1015 | -// The task-detail modal is a right side panel: fixed to the viewport's right | 1021 | +// The task-detail modal shares `.modal` with the new-task modal and the |
| 1016 | -// edge at full height. Its markup shares `.modal` with the new-task modal and | 1022 | +// viewer, which stay centered. The base only fixes the frame — a header on |
| 1017 | -// the viewer, which stay centered, so the panel is `.modal` minus those two. | 1023 | +// top, one body that pans invisibly between header and composer — because |
| 1018 | -.modal:not(.modal-new-task):not(.viewer) { | 1024 | +// the skins reshape it: instrument docks it as a 560px side panel, ledger |
| 1019 | - position: fixed; | 1025 | +// lays it out as its own opaque page. |
| 1020 | - inset: 0 0 0 auto; | 1026 | +.modal-task { |
| 1021 | - width: 560px; | 1027 | + display: flex; |
| 1022 | - max-width: 100vw; | 1028 | + flex-direction: column; |
| 1023 | max-height: none; | 1029 | max-height: none; |
| 1024 | - border: none; | 1030 | + overflow: visible; |
| 1025 | - border-left: 1px solid var(--border); | 1031 | +} |
| 1026 | - border-radius: 0; | ||
| 1027 | 1032 | ||
| 1028 | - @media (max-width: 640px) { width: 100vw; } | 1033 | +.detail-body { |
| 1034 | + flex: 1; | ||
| 1035 | + min-height: 0; | ||
| 1036 | + overflow-y: auto; | ||
| 1037 | + scrollbar-width: none; | ||
| 1038 | + | ||
| 1039 | + &::-webkit-scrollbar { display: none; } | ||
| 1029 | } | 1040 | } |
| 1030 | 1041 | ||
| 1031 | // The in-app file viewer: same scrim/panel chrome as the task modal, rendered | 1042 | // The in-app file viewer: same scrim/panel chrome as the task modal, rendered |
| @@ -1325,7 +1336,6 @@ a { | |||
| 1325 | 1336 | ||
| 1326 | .detail-key { | 1337 | .detail-key { |
| 1327 | display: block; | 1338 | display: block; |
| 1328 | - margin-bottom: 6px; | ||
| 1329 | font-family: var(--font-mono); | 1339 | font-family: var(--font-mono); |
| 1330 | font-size: 11px; | 1340 | font-size: 11px; |
| 1331 | color: var(--muted-soft); | 1341 | color: var(--muted-soft); |
| @@ -1385,6 +1395,16 @@ a { | |||
| 1385 | &:hover { background: var(--row-hover); } | 1395 | &:hover { background: var(--row-hover); } |
| 1386 | } | 1396 | } |
| 1387 | 1397 | ||
| 1398 | +.detail-state { | ||
| 1399 | + display: inline-flex; | ||
| 1400 | + align-items: center; | ||
| 1401 | +} | ||
| 1402 | + | ||
| 1403 | +.detail-board { | ||
| 1404 | + align-self: center; | ||
| 1405 | + white-space: nowrap; | ||
| 1406 | +} | ||
| 1407 | + | ||
| 1388 | // -- the field row ---------------------------------------------------------- | 1408 | // -- the field row ---------------------------------------------------------- |
| 1389 | 1409 | ||
| 1390 | .detail-fields { | 1410 | .detail-fields { |