qwen-code/packages/web-shell/client/components/channels/ChannelEditorDialog.module.css
Jabrail 535dfd9a11
feat(web-shell): add PWA installability and Android development shell (#11722)
* feat(web-shell): add installable PWA support

* fix(build): skip incomplete Web Shell assets when bundling

* feat(web-shell): declare browser support matrix and compat fallbacks

* feat(web-shell): make the Web Shell installable as a PWA

Serves /manifest.webmanifest and /sw.js pre-auth, registers the worker
deferred to load, and replaces the earlier service-worker.js draft with
sw.js as a Vite entry (PNG icons included).

* feat(mobile-shell): add Android WebView shell skeleton

WebView shell around the daemon-served Web Shell (no second UI), profile
tuples of URL/token/display name with #token= fragment delivery, native
WebView version check at the Chrome 107 floor, and a foreground-service
skeleton for SSE/notifications.

* chore(web-shell): drop superseded service worker draft files

* test(web-shell): cover service worker routing and lifecycle

* chore(web-shell): align @playwright/test with main lockfile

* chore: register mobile-shell importer in pnpm lockfile

* test(web-shell): parse sidebar stylesheet with postcss for @supports nesting

* chore: register mobile-shell in pnpm rewrite set

* fix(web-shell): address PWA and Android acceptance blockers

* docs(mobile-shell): make remaining native acceptance limits explicit

* fix(web-shell): address fourth PWA review round

* fix(mobile-shell): restore web view on back

---------

Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
2026-09-17 22:23:58 +00:00

312 lines
5.2 KiB
CSS

.platformHeader {
display: flex;
align-items: center;
gap: 12px;
}
.platformMark {
display: inline-flex;
width: 42px;
height: 42px;
flex: 0 0 42px;
align-items: center;
justify-content: center;
border: 1px solid var(--border);
border-radius: 13px;
background: var(--muted);
font-size: 13px;
font-weight: 750;
}
.form {
display: flex;
min-height: 0;
flex-direction: column;
gap: 0;
}
.body {
display: flex;
max-height: min(66vh, 650px);
flex-direction: column;
gap: 22px;
overflow-y: auto;
padding-block: 4px 8px;
padding-inline: 1px;
}
.section {
display: flex;
flex-direction: column;
gap: 12px;
}
.sectionHeading {
display: flex;
align-items: center;
gap: 10px;
color: var(--muted-foreground);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.sectionHeading::after {
height: 1px;
flex: 1;
background: var(--border);
content: '';
}
.settingsPanel {
display: flex;
flex-direction: column;
gap: 14px;
padding: 16px;
border: 1px solid var(--border);
border-radius: calc(var(--radius-lg) + 2px);
background: color-mix(in srgb, var(--card) 94%, var(--muted));
}
.settingsPanelHeader {
display: flex;
flex-direction: column;
gap: 3px;
}
.settingsPanelTitle {
margin: 0;
color: var(--foreground);
font-size: 14px;
font-weight: 700;
letter-spacing: -0.01em;
}
.settingsPanelDescription {
margin: 0;
color: var(--muted-foreground);
font-size: 11px;
line-height: 1.5;
}
.field {
display: flex;
flex-direction: column;
gap: 7px;
}
.fieldHeader {
display: flex;
min-height: 20px;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.required {
color: var(--destructive);
}
.hint {
color: var(--muted-foreground);
font-size: 11px;
}
.fieldDescription {
margin: 0;
color: var(--muted-foreground);
font-size: 11px;
line-height: 1.5;
}
.recordFields {
display: flex;
flex-direction: column;
gap: 8px;
}
.recordRow {
display: flex;
flex-direction: column;
gap: 3px;
}
.recordLabel {
font-size: 12px;
font-weight: 500;
color: var(--muted-foreground);
}
.secretState {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 10px 11px;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
background: color-mix(in srgb, var(--muted) 52%, transparent);
}
.secretStatus {
display: flex;
align-items: center;
gap: 7px;
color: var(--muted-foreground);
font-size: 12px;
}
.secretActions {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.policyGrid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 9px;
}
.policyCard {
display: flex;
min-height: 76px;
cursor: pointer;
align-items: flex-start;
gap: 10px;
padding: 12px;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
background: var(--card);
transition:
border-color 120ms ease,
background-color 120ms ease;
}
.policyCard[data-selected='true'] {
border-color: var(--foreground);
background: color-mix(in srgb, var(--muted) 62%, transparent);
}
.policyCopy {
display: flex;
flex-direction: column;
gap: 4px;
}
.policyTitle {
font-size: 13px;
font-weight: 650;
}
.policyDescription {
color: var(--muted-foreground);
font-size: 11px;
line-height: 1.45;
}
.sessionScopeField {
display: flex;
flex-direction: column;
gap: 9px;
}
.sessionScopeLabel {
color: var(--muted-foreground);
font-size: 11px;
font-weight: 650;
}
.sessionScopeControl {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 3px;
padding: 3px;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
background: var(--muted);
}
.sessionScopeOption {
position: relative;
display: flex;
min-width: 0;
min-height: 36px;
cursor: pointer;
align-items: center;
justify-content: center;
padding: 7px 8px;
border: 1px solid transparent;
border-radius: calc(var(--radius-lg) - 3px);
color: var(--muted-foreground);
font-size: 12px;
font-weight: 650;
line-height: 1.25;
text-align: center;
transition:
color 120ms ease,
border-color 120ms ease,
background-color 120ms ease,
box-shadow 120ms ease;
}
.sessionScopeOption:hover {
color: var(--foreground);
}
.sessionScopeOption[data-selected='true'] {
border-color: var(--border);
background: var(--background);
color: var(--foreground);
box-shadow: 0 1px 3px color-mix(in srgb, var(--foreground) 12%, transparent);
}
@supports (selector(:has(*))) {
.sessionScopeOption:has(.sessionScopeRadio:focus-visible) {
outline: 2px solid var(--ring);
outline-offset: 1px;
}
}
.sessionScopeRadio {
position: absolute;
z-index: 1;
inset: 0;
width: 100%;
height: 100%;
padding: 0;
border: 0;
margin: 0;
cursor: pointer;
opacity: 0;
}
.sessionScopeDescription {
min-height: 18px;
margin: 0;
color: var(--muted-foreground);
font-size: 12px;
line-height: 1.5;
}
@media (max-width: 520px) {
.policyGrid {
grid-template-columns: 1fr;
}
.sessionScopeControl {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
.policyCard {
transition: none;
}
.sessionScopeOption {
transition: none;
}
}