@qzsy/dsh-yunxiao-panel 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,6 +45,7 @@ and a repository chip row for its merge requests.
45
45
  full-width swipe page and a tap opens the detail pane instead,
46
46
  - merge requests waiting for review (all open ones in organization scope), with
47
47
  a direct link to Yunxiao when the list is empty.
48
+ - **Detail sheet** — opening a work item slides in a right-hand sheet (up to 820 px wide, always on top of a dimmed panel) so descriptions, images, comments and the footer actions get room; Esc, the close button or a click on the dimmed area dismisses it, and it stays full-width on phones.
48
49
  - **Change status from the detail pane** — the pane shows the current status, a
49
50
  dropdown of the whole workflow for that work item type, and a **标记完成**
50
51
  button that picks the type's own done status (缺陷 → 已修复, 需求 → 已完成, else
package/dist/client.js CHANGED
@@ -665,7 +665,7 @@ window.__ModuleLoader__.load({
665
665
  .yx-badge--button{cursor:pointer;font:inherit;font-size:11px}
666
666
  .yx-badge--button:hover{border-color:var(--dsw-alias-border-l4);color:var(--dsw-alias-label-primary)}
667
667
  .yx-footer{padding:8px 14px;border-top:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-label-tertiary);font-size:11px;display:flex;justify-content:space-between;gap:8px}
668
- .yx-main{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0}
668
+ .yx-main{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;position:relative}
669
669
  .yx-head{display:flex;align-items:center;gap:10px;padding:14px 20px 10px;border-bottom:1px solid var(--dsw-alias-border-l1);flex-wrap:wrap}
670
670
  .yx-head-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
671
671
  .yx-head-name{font-size:16px;font-weight:600;line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@@ -708,10 +708,15 @@ window.__ModuleLoader__.load({
708
708
  .yx-btn[data-primary="true"]{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-brand-primary));border-color:transparent;color:var(--dsw-alias-label-primary-foreground,#fff)}
709
709
  .yx-btn[data-primary="true"]:hover{background:var(--dsw-alias-button-primary-hover,var(--dsw-alias-brand-primary))}
710
710
  .yx-btn:disabled{opacity:.55;cursor:default}
711
- .yx-detail{width:420px;flex:0 0 420px;display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1)}
712
- .yx-detail-head{display:flex;align-items:flex-start;gap:10px;padding:14px 16px 10px;border-bottom:1px solid var(--dsw-alias-border-l1)}
711
+ .yx-detail{position:absolute;top:0;right:0;bottom:0;z-index:30;width:min(820px,80vw);max-width:none;display:flex;flex-direction:column;min-height:0;border-left:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);box-shadow:-18px 0 44px rgba(0,0,0,.18);animation:yx-sheet-in .22s cubic-bezier(.2,.8,.2,1)}
712
+ @keyframes yx-sheet-in{from{transform:translateX(30px);opacity:0}to{transform:none;opacity:1}}
713
+ .yx-sheet-scrim{position:absolute;inset:0;z-index:29;background:rgba(0,0,0,.26);animation:yx-fade-in .18s ease}
714
+ @keyframes yx-fade-in{from{opacity:0}to{opacity:1}}
715
+ .yx-detail-facts{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
716
+ @media (prefers-reduced-motion:reduce){.yx-detail,.yx-sheet-scrim{animation:none}}
717
+ .yx-detail-head{display:flex;align-items:flex-start;gap:10px;padding:16px 22px 12px;border-bottom:1px solid var(--dsw-alias-border-l1)}
713
718
  .yx-detail-title{flex:1;min-width:0;font-size:14px;font-weight:600;line-height:20px;overflow-wrap:anywhere}
714
- .yx-detail-body{flex:1;min-height:0;overflow:auto;padding:12px 16px 24px;display:flex;flex-direction:column;gap:14px}
719
+ .yx-detail-body{flex:1;min-height:0;overflow:auto;padding:16px 22px 28px;display:flex;flex-direction:column;gap:14px}
715
720
  .yx-fact{display:flex;gap:10px;font-size:12px;line-height:18px}
716
721
  .yx-fact dt{color:var(--dsw-alias-label-tertiary);width:64px;flex:none}
717
722
  .yx-fact dd{margin:0;min-width:0;overflow-wrap:anywhere}
@@ -720,7 +725,7 @@ window.__ModuleLoader__.load({
720
725
  .yx-comment{border-top:1px solid var(--dsw-alias-border-l2);padding-top:8px;display:flex;flex-direction:column;gap:4px}
721
726
  .yx-comment-head{display:flex;gap:8px;font-size:11.5px;color:var(--dsw-alias-label-tertiary)}
722
727
  .yx-comment-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12.5px;line-height:19px}
723
- .yx-detail-foot{display:flex;gap:8px;padding:10px 16px 14px;border-top:1px solid var(--dsw-alias-border-l1);flex-wrap:wrap}
728
+ .yx-detail-foot{display:flex;gap:8px;padding:12px 22px 16px;background:var(--dsw-alias-bg-layer-1);border-top:1px solid var(--dsw-alias-border-l1);flex-wrap:wrap}
724
729
  .yx-pop{position:absolute;top:30px;right:0;z-index:40;width:280px;max-height:320px;overflow:auto;background:var(--dsw-alias-bg-overlay);border:1px solid var(--dsw-alias-border-l2);border-radius:10px;box-shadow:var(--dsw-elevation-prominent,0 8px 28px rgba(0,0,0,.18));padding:6px}
725
730
  .yx-pop-item{display:flex;flex-direction:column;gap:2px;width:100%;border:0;background:transparent;color:inherit;text-align:left;border-radius:7px;padding:7px 9px;cursor:pointer;font:inherit}
726
731
  .yx-pop-item:hover{background:var(--dsw-alias-interactive-bg-hover)}
@@ -1104,7 +1109,7 @@ button.yx-bar-row:hover{background:var(--dsw-alias-interactive-bg-hover)}
1104
1109
  .yx-charts{grid-template-columns:1fr}
1105
1110
  .yx-work-lists{grid-template-columns:1fr}
1106
1111
  .yx-work-list{max-height:340px}
1107
- .yx-detail{width:100%;flex-basis:auto;left:0;right:0}
1112
+ .yx-detail{width:100%;max-width:none;left:0;right:0}.yx-detail-facts{grid-template-columns:1fr}
1108
1113
  .yx-modal{padding:12px}
1109
1114
  .yx-modal-card{width:100%;max-width:100%;max-height:88vh;overflow:auto}
1110
1115
  .yx-md table{display:block;overflow-x:auto}
@@ -4019,7 +4024,7 @@ button.yx-bar-row:hover{background:var(--dsw-alias-interactive-bg-hover)}
4019
4024
  isIssue
4020
4025
  ? h(
4021
4026
  'dl',
4022
- { key: 'facts', style: { margin: 0, display: 'flex', flexDirection: 'column', gap: '6px' } },
4027
+ { key: 'facts', className: 'yx-detail-facts' },
4023
4028
  h('div', { className: 'yx-fact' }, h('dt', null, t('project')), h('dd', null, detailProject ? `${projectCode(detailProject)} ${detailProject.name}` : t('unbound'))),
4024
4029
  h('div', { className: 'yx-fact' }, h('dt', null, t('promptType')), h('dd', null, full.workitemType || full.categoryId || '-')),
4025
4030
  h('div', { className: 'yx-fact' }, h('dt', null, t('promptStatus')), h('dd', null, full.status || '-')),
@@ -4029,7 +4034,7 @@ button.yx-bar-row:hover{background:var(--dsw-alias-interactive-bg-hover)}
4029
4034
  )
4030
4035
  : h(
4031
4036
  'dl',
4032
- { key: 'facts', style: { margin: 0, display: 'flex', flexDirection: 'column', gap: '6px' } },
4037
+ { key: 'facts', className: 'yx-detail-facts' },
4033
4038
  h('div', { className: 'yx-fact' }, h('dt', null, t('promptStatus')), h('dd', null, statusLabel(t, full.state))),
4034
4039
  h('div', { className: 'yx-fact' }, h('dt', null, t('author')), h('dd', null, full.author || '-')),
4035
4040
  h('div', { className: 'yx-fact' }, h('dt', null, t('branches')), h('dd', { className: 'yx-branch' }, `${full.sourceBranch} → ${full.targetBranch}`)),
@@ -5439,6 +5444,7 @@ button.yx-bar-row:hover{background:var(--dsw-alias-interactive-bg-hover)}
5439
5444
  h('div', { className: 'yx-empty-body' }, t('selectProjectHint')),
5440
5445
  ),
5441
5446
  ),
5447
+ detail ? h('div', { className: 'yx-sheet-scrim', onClick: () => setDetail(null) }) : null,
5442
5448
  renderDetail(),
5443
5449
  convert ? renderConvert() : null,
5444
5450
  renderBinding(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qzsy/dsh-yunxiao-panel",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "description": "Yunxiao (阿里云云效) panel for the DeepSeek Harness Web client: a cross-project workbench with charts, project/repository navigation, Projex work items, Codeup commits and merge requests.",
6
6
  "license": "MIT",