From c5d9837a070f13cdc0415c6c2d522d9b50da326c Mon Sep 17 00:00:00 2001 From: Day Dreamer <87640074+HugoXK@users.noreply.github.com> Date: Mon, 16 Nov 2026 15:52:28 +0800 Subject: [PATCH 1/2] ui: give the console a flight-deck visual system (#547) --- .agents/skills/README.md | 15 + .agents/skills/frontend-design/LICENSE.txt | 177 +++++++ .agents/skills/frontend-design/SKILL.md | 71 +++ .../skills/web-interface-guidelines/LICENSE | 21 + .../skills/web-interface-guidelines/SKILL.md | 22 + .../web-interface-guidelines/guidelines.md | 156 ++++++ changelog.d/ui-flight-deck.changed.md | 1 + docs/architecture.md | 2 +- docs/design/flight-deck.md | 110 +++++ docs/ui.md | 208 ++++---- mock/add-repository.html | 35 +- mock/assets/app.css | 458 +++++++++++------- mock/console.html | 35 +- mock/dashboard.html | 48 +- mock/job.html | 36 +- mock/repository-demo.html | 35 +- mock/repository.html | 57 ++- mock/schedule-console.html | 36 +- mock/schedule-preview.html | 35 +- mock/settings.html | 23 +- public/app.css | 393 ++++++++------- src/views/pages.ts | 123 +++-- src/views/theme.ts | 2 +- test/feedback.test.ts | 2 - test/nextAction.test.ts | 2 +- test/nextScheduledRun.test.ts | 6 +- test/pages.test.ts | 2 +- test/setupChecklist.test.ts | 2 +- test/uiSurfaces.test.ts | 12 +- test/uiTokens.test.ts | 91 ++-- 30 files changed, 1580 insertions(+), 636 deletions(-) create mode 100644 .agents/skills/README.md create mode 100644 .agents/skills/frontend-design/LICENSE.txt create mode 100644 .agents/skills/frontend-design/SKILL.md create mode 100644 .agents/skills/web-interface-guidelines/LICENSE create mode 100644 .agents/skills/web-interface-guidelines/SKILL.md create mode 100644 .agents/skills/web-interface-guidelines/guidelines.md create mode 100644 changelog.d/ui-flight-deck.changed.md create mode 100644 docs/design/flight-deck.md diff --git a/.agents/skills/README.md b/.agents/skills/README.md new file mode 100644 index 00000000..1b30379a --- /dev/null +++ b/.agents/skills/README.md @@ -0,0 +1,15 @@ +# UI design skills + +These skills are vendored for the Fledge UI work. They are third-party +material, kept with their licences: + +- `frontend-design/` — Apache-2.0, from + https://github.com/anthropics/skills (`skills/frontend-design`). See + `frontend-design/LICENSE.txt`. +- `web-interface-guidelines/` — MIT, from + https://github.com/vercel-labs/web-interface-guidelines. See + `web-interface-guidelines/LICENSE`; the full checklist is `guidelines.md`. + +DSH discovers these at `/.agents/skills` (rank 200) and loads them +through the `skill` tool. The server DSH also gets a copy under +`~/.dsh/skills` so a session outside this repository can use them. diff --git a/.agents/skills/frontend-design/LICENSE.txt b/.agents/skills/frontend-design/LICENSE.txt new file mode 100644 index 00000000..f433b1a5 --- /dev/null +++ b/.agents/skills/frontend-design/LICENSE.txt @@ -0,0 +1,177 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS diff --git a/.agents/skills/frontend-design/SKILL.md b/.agents/skills/frontend-design/SKILL.md new file mode 100644 index 00000000..a5333457 --- /dev/null +++ b/.agents/skills/frontend-design/SKILL.md @@ -0,0 +1,71 @@ +--- +name: frontend-design +description: Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. +license: Complete terms in LICENSE.txt +--- + +# Frontend Design + +Approach this as the design lead at a design studio known for giving every client a distinct visual identity that is not mistaken for anyone else's. This client has already rejected proposals that felt cliché or templated, and is paying for a distinctive point of view: make deliberate, opinionated choices about palette, typography, and layout that are specific to this brief, and take aesthetic risk if justified. + +## Ground your designs in the subject matter + +If the brief does not identify what the product or subject matter is, identify it yourself before designing, and confirm with the client. You can come up with one concrete subject, the design's audience, and the design's primary job, as a proposal. If there's any information in your memory about the client's preferences or context about what they're building, use that as a hint. The subject's industry, subject matter, materials, and vernacular are where distinctive visual choices come from — a design for a toy for girls aged 8–11 will be very aesthetically different from a dashboard for financial analysts. Build with the brief's real content and subject matter throughout. + +## Design principles + +For web designs, the hero is the first thing viewers will see. Open with the most characteristic thing in the subject's world, in the form that is most appropriate: a headline, an image, an animation, a live demo, an interactive moment, or other treatments. Be deliberate with your choice: a big number with a small label, supporting stats, and a gradient accent is the default treatment, so only use it if that's truly the best option. + +Typography carries the personality of the page. You don't need a different typeface for display or headline text and body content: use one family or two, and if two, make them clearly distinct. + +Choose your typefaces deliberately, not the default families you would reach for on any other project, and set a clear type scale following the default guidance of The Elements of Typographic Style with intentional weights, widths, and spacing. When type is used as a headline or visual element, use the type treatment itself as an active part of the design, not a neutral delivery vehicle for the content. + +Default to line lengths of less than 80 characters. Serif typefaces can have slightly longer line lengths; give serif body text slightly more line-height than a sans-serif. + +Avoid these default typographic treatments; they are the commonest tells of a generated page: +- Accenting just a single word or phrase in a headline, like putting one word in italic/bold or a different color. +- Using all caps for labels. +- Adding unnecessary typographic labels above content. + +Visual structure is information. Structural devices like outlines, borders, numbering, eyebrows, dividers, labels, etc., encode useful information about the content rather than decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence — like a stepped process or a timeline. Before adding numbered markers, check the content really is a sequence. + +Use non-user-triggered motion sparingly and deliberately, only to draw attention. A single orchestrated moment — one page-load sequence or one reveal — lands better than scattered effects; fade-and-slide-up entrances on each section and hover transitions on every card are the generic default and read as AI-generated. Motion that answers a person's action (opening, expanding, confirming) is welcome when it shows what changed. + +Consider written content carefully. Often a design brief may not contain real content, and it's up to you to come up with copy and placeholder content. Copy can make a design feel as templated as the design itself. See the below section on writing for more guidance. + +## Process: plan, review against the brief, build, critique + +For calibration, AI-generated design right now clusters around some traits: +1. a warm cream background (near #F4F1EA) with a high-contrast serif display and a terracotta or warm-clay accent (often near #D97757 — Anthropic's own Claude-interaction accent, so on a user's brief it reads as a tell); +2. a near-black background with a single bright acid-green or vermilion accent; +3. a broadsheet-style layout with hairline rules, zero border-radius, and dense newspaper-like columns; +4. the SaaS-card kit: content chopped into identical rounded cards, one border-radius on everything regardless of hierarchy, the same soft grey shadow (rgba(0,0,0,.1)) under each, and gradient washes as decoration; +5. template chrome that appears whatever the subject: a tracked-out ALL-CAPS eyebrow label above every heading; meta strings joined with middle dots ('A · B · C'); labels built as 'WORD — fragment' with a spaced em dash; tinted near-black (#0B0B0B, #111) standing in for black; a monospace face for small data labels; a '→' appended to link and button text. + +All traits are legitimate for some briefs, but they are defaults rather than choices, and they appear regardless of subject. Where the brief pins down a visual direction, follow it exactly — the brief's own words always win, including when it asks for one of these looks. Where it leaves an axis free, don't spend that freedom on one of these defaults. As with a hired human designer, there's often a careful balance between doing what you're good at and taking each project as a chance to experiment and learn. + +Work in two passes. First, brainstorm a short design plan based on the client's design brief: create a compact token system with color, type, layout, and principles. +- Color: describe the core base palette as 4–6 named hex values. +- Type: the typefaces and their roles. +- Layout: a layout concept, using one-sentence prose descriptions and ASCII wireframes to ideate and compare. Include alignment guidance; should the content be left aligned, center aligned, justified? +- Principles: the high-level guidance for what makes this page unique. + +Then review that plan against the brief before building: if any part of it reads like the generic default you would produce for any similar page (work through a similar prompt to see if you arrive somewhere similar) rather than a choice made for this specific brief — revise that part, say what you changed and why. Only after you've confirmed the relative uniqueness of your design plan should you start to write the code, following the revised plan. + +When writing the code, be careful of structuring your CSS selector specificities. It's easy to generate CSS classes that cancel each other out (especially with a type-based selector like .section and an element-based selector like .cta). This can happen often with padding/margin between sections. + +## Restraint and self-critique + +Spend your boldness in one place. Let one element be the memorable thing, keep everything around it quiet and disciplined, and cut any decoration that does not serve the brief. Build to a quality floor without announcing it: responsive down to mobile, visible keyboard focus, reduced motion respected, visually accessible, harmonious color palettes. Critique your own work as you build, taking screenshots to review if your environment supports it — a picture is worth 1000 tokens. Consider Chanel's advice: before leaving the house, take a look in the mirror and remove one accessory. Human creatives have memory and always try to do something new, so if you have a space to quickly jot down notes about what you've tried, it can help you in future passes. + +## More on writing in design + +Words appear in a design for one reason: to make it easier to understand and use. They are design content, not decoration. Bring the same intentionality and minimalism to copywriting that you would bring to spacing and color. Before writing anything, ask what the design needs to say, and how it can best be said to help the person navigate the experience. + +Write from the end user's perspective. Name things by what users will understand in simple language, not by how the system is built. A user manages notifications, not webhook config. Describe what something is or does in plain terms rather than selling it. Being specific and legible to new users is always better than being clever. + +Use active voice as default. A CTA says exactly what happens when it is used: "Save changes," not "Submit." An action keeps the same name through the whole flow, so the button that says "Publish" produces a toast that says "Published." The vocabulary of an interface is the signposting for someone navigating the product. Cohesion and consistency are how people learn their way around. + +Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it, in the interface's voice rather than a person's. Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act. + +Keep the tone conversational: plain verbs, sentence case, no filler, with tone matched to the brand and the audience. Let each written element do exactly one job. diff --git a/.agents/skills/web-interface-guidelines/LICENSE b/.agents/skills/web-interface-guidelines/LICENSE new file mode 100644 index 00000000..b3575a3c --- /dev/null +++ b/.agents/skills/web-interface-guidelines/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Vercel Labs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/.agents/skills/web-interface-guidelines/SKILL.md b/.agents/skills/web-interface-guidelines/SKILL.md new file mode 100644 index 00000000..e465ed75 --- /dev/null +++ b/.agents/skills/web-interface-guidelines/SKILL.md @@ -0,0 +1,22 @@ +--- +name: web-interface-guidelines +description: Review and write accessible, fast, delightful web UI against Vercel's Web Interface Guidelines. Use before shipping any UI, CSS, form or navigation change. +license: MIT; see LICENSE and guidelines.md. +--- + +# Web Interface Guidelines + +Read `guidelines.md` before changing UI, and name the exact MUST/SHOULD/NEVER +rule in the PR or review. The checklist covers: + +- keyboard and focus; visible focus rings; managed focus in dialogs +- hit targets (mobile 44px, desktop 24px); 16px mobile inputs; no blocked paste +- forms: inline validation, submit state, autocomplete, no dead zones +- state and navigation: URL as state, Back/Forward, links are links +- feedback: optimistic UI, confirm destructive actions, aria-live +- motion: honor `prefers-reduced-motion`, no `transition: all` +- layout: safe areas, no horizontal overflow, intrinsic sizing +- content: inline help first, labels for icons, locale-aware formats + +This file is a skill wrapper; `guidelines.md` is the complete MIT-licensed +checklist from https://github.com/vercel-labs/web-interface-guidelines. diff --git a/.agents/skills/web-interface-guidelines/guidelines.md b/.agents/skills/web-interface-guidelines/guidelines.md new file mode 100644 index 00000000..2785de04 --- /dev/null +++ b/.agents/skills/web-interface-guidelines/guidelines.md @@ -0,0 +1,156 @@ +Concise rules for building accessible, fast, delightful UIs. Use MUST/SHOULD/NEVER to guide decisions. + +## Interactions + +### Keyboard + +- MUST: Full keyboard support per [WAI-ARIA APG](https://www.w3.org/WAI/ARIA/apg/patterns/) +- MUST: Visible, unobscured focus rings (`:focus-visible`; group with `:focus-within`); sticky/fixed elements never cover focus +- MUST: Manage focus (trap, move, return) per APG patterns +- NEVER: `outline: none` without visible focus replacement + +### Targets & Input + +- MUST: Hit target ≥24px (mobile ≥44px); if visual <24px, expand hit area +- MUST: Mobile `` font-size ≥16px to prevent iOS zoom +- NEVER: Disable browser zoom (`user-scalable=no`, `maximum-scale=1`) +- MUST: `touch-action: manipulation` to prevent double-tap zoom +- SHOULD: Set `-webkit-tap-highlight-color` to match design + +### Forms + +- MUST: Hydration-safe inputs (no lost focus/value) +- NEVER: Block paste in ``/` + +

不要粘贴 token、密码或他人的隐私信息。反馈会保存并邮件通知开发者。

+ + +

请确认

diff --git a/mock/assets/app.css b/mock/assets/app.css index 2738a4cd..262bfbd7 100644 --- a/mock/assets/app.css +++ b/mock/assets/app.css @@ -13,57 +13,57 @@ scrollbars and selection (WCAG 2.1 AA 1.4.11 assumes a control matches the surface it sits on). */ color-scheme: light dark; - --bg: #07090d; - --bg-soft: #0a0e14; - --panel: #0d1118; - --panel-2: #111722; - --surface-sunken: #090e14; - --surface-inset: #080d13; - --surface-raised: #0b121b; - --field: #080c12; - --track: #060a10; - --row-line: #18202a; - --raised-top: #101722; - --raised-bottom: #0a0e15; - --line: #1c232d; - --field-line: #5a6680; - --line-strong: #2a3545; + --bg: #0b100e; + --bg-soft: #0e1512; + --panel: #101814; + --panel-2: #16211b; + --surface-sunken: #0c130f; + --surface-inset: #0e1612; + --surface-raised: #121c17; + --field: #0c130f; + --track: #080d0a; + --row-line: #1d2a22; + --raised-top: #141f19; + --raised-bottom: #0e1511; + --line: #223028; + --field-line: #6f8376; + --line-strong: #33453a; /* #657: the two surfaces the palette used to hardcode. The sticky header is translucent so content scrolls under it, and the account pill is barely tinted; both are rgba because a palette colour with alpha cannot be a hex literal, and both are redefined in the light block so a light page does not carry a dark bar over light content. */ - --header-bg: rgba(7, 9, 13, 0.78); - --chip-bg: rgba(255, 255, 255, 0.02); - --scroll-track: #5b6779; - --scroll-thumb: #c8d2de; - --text: #f2f5f9; - --muted: #98a2b3; - --muted-2: #8b96a6; - --brand: #b8f34a; - --brand-2: #6ee7a8; + --header-bg: rgba(11, 16, 14, 0.78); + --chip-bg: rgba(255, 255, 255, 0.03); + --scroll-track: #5a6b5e; + --scroll-thumb: #c4d1c6; + --text: #e9efe9; + --muted: #b3c0b5; + --muted-2: #94a398; + --brand: #c49a5a; + --brand-2: #8fb39a; /* One interactive accent (#229). --accent and its strong/hover/ink steps are the only colours an interactive control may use: buttons, links, the current nav item, focus rings, selected chips, pills and badges. --brand and --mint are decoration only (the wordmark's gradient, the feature and stat accents, the meter's fill); they never stand for a control, so a reader cannot mistake a coloured panel for something that can be clicked. */ - --accent: #7b95ff; - --accent-strong: #4c66f5; - --accent-hover: #5f78ff; - --accent-ink: #ffffff; - --good: #67e8c7; - --warn: #f0c674; - --danger: #ff8a8a; - --mint: #67e8c7; - --blue: #7b95ff; - --violet: #b69cff; - --mark-ink: #07101f; - --badge-bg: #1a222b; - --badge-ink: #aab7c4; - --lede-ink: #b9c6d4; - --tip-ink: #dbe6f3; - --paper: #ffffff; + --accent: #8fbfa8; + --accent-strong: #2f6b57; + --accent-hover: #3b7d65; + --accent-ink: #f4f8f2; + --good: #8fbfa8; + --warn: #d6a75b; + --danger: #e08a7e; + --mint: #8fbfa8; + --blue: #9fb4bd; + --violet: #b7a3c2; + --mark-ink: #0b100e; + --badge-bg: #1b2a22; + --badge-ink: #c5d2c8; + --lede-ink: #c2cec4; + --tip-ink: #e2eae4; + --paper: #f7faf5; --space-1: 4px; --space-2: 8px; --space-3: 12px; @@ -84,16 +84,16 @@ card shell, lg = the feature and hero panels, pill = badges, pills and the meter. The raw 6/9/10/11/13/14/99/999px values these replace sat one or two pixels apart and were never a decision. */ - --radius-xs: 6px; - --radius-sm: 8px; - --radius-md: 12px; - --radius-lg: 18px; - --radius: 16px; + --radius-xs: 4px; + --radius-sm: 6px; + --radius-md: 8px; + --radius-lg: 10px; + --radius: 10px; --radius-pill: 999px; --motion-fast: 120ms; --motion-base: 180ms; --ease: cubic-bezier(0.2, 0.7, 0.3, 1); - --shadow: 0 24px 80px rgba(0, 0, 0, 0.38); + --shadow: 0 8px 24px rgba(0, 0, 0, 0.28); /* Height of the sticky header; re-declared per breakpoint because the header is not one row at every width: every band at or below 960px fixes it at 64px plus the .top border, the wide header is content-driven and taller. @@ -108,6 +108,39 @@ so an anchored section clears the bar instead of landing a few pixels under it. */ --nav-h: 61px; + /* #858: the warm editorial foundation. A serif display face for h1, the + wordmark and the hero heading; body copy keeps the system sans; mono stays + for code and data. An alpha tint of an accent cannot name a solid token + without losing the transparency, so the tints the component rules use live + here too and the next palette change is one block. */ + --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", "Noto Serif CJK SC", serif; + --accent-a05: rgba(143, 191, 168, 0.05); + --accent-a10: rgba(143, 191, 168, 0.10); + --accent-a12: rgba(143, 191, 168, 0.12); + --accent-a16: rgba(143, 191, 168, 0.16); + --accent-a18: rgba(143, 191, 168, 0.18); + --accent-a26: rgba(143, 191, 168, 0.26); + --accent-a32: rgba(143, 191, 168, 0.32); + --accent-a34: rgba(143, 191, 168, 0.34); + --accent-a42: rgba(143, 191, 168, 0.42); + --brand-a08: rgba(196, 154, 90, 0.08); + --brand-a10: rgba(196, 154, 90, 0.10); + --brand-a14: rgba(196, 154, 90, 0.14); + --brand-a28: rgba(196, 154, 90, 0.28); + --brand-a30: rgba(196, 154, 90, 0.30); + --brand-a35: rgba(196, 154, 90, 0.35); + --warn-a12: rgba(214, 167, 91, 0.12); + --warn-a14: rgba(214, 167, 91, 0.14); + --warn-a28: rgba(214, 167, 91, 0.28); + --warn-a30: rgba(214, 167, 91, 0.30); + --warn-a32: rgba(214, 167, 91, 0.32); + --danger-a08: rgba(224, 138, 126, 0.08); + --danger-a10: rgba(224, 138, 126, 0.10); + --danger-a14: rgba(224, 138, 126, 0.14); + --danger-a26: rgba(224, 138, 126, 0.26); + --danger-a35: rgba(224, 138, 126, 0.35); + --danger-a40: rgba(224, 138, 126, 0.40); + --danger-a58: rgba(224, 138, 126, 0.58); --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; --touch: 44px; --content: 1180px; @@ -125,101 +158,101 @@ and an attribute selector cannot share one declaration block, and the system preference has to work with JavaScript off, so neither branch can be dropped. Ratios, measured with the same formula test/uiTokens.test.ts uses: - --text 16.8:1 on --bg, --muted-2 5.8:1 on --panel-2, --badge-ink 7.3:1 on - --badge-bg, --scroll-track 3.4:1 on --panel and 3.3:1 on --scroll-thumb. + --text 15.4:1 on --bg, --muted-2 5.4:1 on --panel-2, --badge-ink 7.9:1 on + --badge-bg, --scroll-track 3.9:1 on --panel and 3.1:1 on --scroll-thumb. The resting field boundary is its own token because --line paints every card - and divider (issue 596). --field-line measures 3.65:1 on the white field - and 3.46:1 on --panel-2, over the 3:1 WCAG 1.4.11 minimum for an edge. */ + and divider (issue 596). --field-line measures 3.87:1 on the field + and 3.59:1 on --panel-2, over the 3:1 WCAG 1.4.11 minimum for an edge. */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; - --bg: #f4f6f9; - --bg-soft: #eef1f6; - --panel: #ffffff; - --panel-2: #f7f9fc; - --surface-sunken: #eef1f6; - --surface-inset: #e9edf3; - --surface-raised: #ffffff; + --bg: #eef1ea; + --bg-soft: #e8ece4; + --panel: #f8faf5; + --panel-2: #f0f3ec; + --surface-sunken: #e9ede5; + --surface-inset: #e6eae2; + --surface-raised: #fbfcf8; --field: #ffffff; - --track: #e8ecf2; - --row-line: #e4e9f0; - --raised-top: #ffffff; - --raised-bottom: #f3f6fa; - --line: #dbe1e9; - --field-line: #7c8794; - --line-strong: #b9c2cf; - --header-bg: rgba(244, 246, 249, 0.86); - --chip-bg: rgba(16, 22, 31, 0.04); - --scroll-track: #828c9a; - --scroll-thumb: #333c48; - --text: #10161f; - --muted: #47515f; - --muted-2: #59636f; - --brand: #3f7a12; - --brand-2: #0e7a5c; - --accent: #2b4fd0; - --accent-strong: #1d3cb8; - --accent-hover: #2646c4; + --track: #dde3da; + --row-line: #dce2d8; + --raised-top: #fbfcf8; + --raised-bottom: #f1f4ed; + --line: #d4dbd0; + --field-line: #7b887c; + --line-strong: #b4beb3; + --header-bg: rgba(238, 241, 234, 0.86); + --chip-bg: rgba(20, 30, 24, 0.04); + --scroll-track: #7d8a80; + --scroll-thumb: #2f3b33; + --text: #18201b; + --muted: #4e5b52; + --muted-2: #5c695f; + --brand: #8a5d26; + --brand-2: #3f6b57; + --accent: #2f6b57; + --accent-strong: #255746; + --accent-hover: #3a806a; --accent-ink: #ffffff; - --good: #0a6e55; - --warn: #7a5200; - --danger: #b3261e; - --mint: #0a6e55; - --blue: #2b4fd0; - --violet: #6236a8; - --mark-ink: #0b1220; - --badge-bg: #e7ecf3; - --badge-ink: #414d5c; - --lede-ink: #333e4d; - --tip-ink: #1a2330; + --good: #2f6b57; + --warn: #8a5d26; + --danger: #a83e36; + --mint: #2f6b57; + --blue: #3f5f72; + --violet: #6b5a86; + --mark-ink: #ffffff; + --badge-bg: #e2e8de; + --badge-ink: #3f4c43; + --lede-ink: #334038; + --tip-ink: #18201b; --paper: #ffffff; - --shadow: 0 24px 80px rgba(15, 23, 42, 0.14); + --shadow: 0 8px 24px rgba(20, 30, 24, 0.12); } } :root[data-theme="light"] { color-scheme: light; - --bg: #f4f6f9; - --bg-soft: #eef1f6; - --panel: #ffffff; - --panel-2: #f7f9fc; - --surface-sunken: #eef1f6; - --surface-inset: #e9edf3; - --surface-raised: #ffffff; + --bg: #eef1ea; + --bg-soft: #e8ece4; + --panel: #f8faf5; + --panel-2: #f0f3ec; + --surface-sunken: #e9ede5; + --surface-inset: #e6eae2; + --surface-raised: #fbfcf8; --field: #ffffff; - --track: #e8ecf2; - --row-line: #e4e9f0; - --raised-top: #ffffff; - --raised-bottom: #f3f6fa; - --line: #dbe1e9; - --field-line: #7c8794; - --line-strong: #b9c2cf; - --header-bg: rgba(244, 246, 249, 0.86); - --chip-bg: rgba(16, 22, 31, 0.04); - --scroll-track: #828c9a; - --scroll-thumb: #333c48; - --text: #10161f; - --muted: #47515f; - --muted-2: #59636f; - --brand: #3f7a12; - --brand-2: #0e7a5c; - --accent: #2b4fd0; - --accent-strong: #1d3cb8; - --accent-hover: #2646c4; + --track: #dde3da; + --row-line: #dce2d8; + --raised-top: #fbfcf8; + --raised-bottom: #f1f4ed; + --line: #d4dbd0; + --field-line: #7b887c; + --line-strong: #b4beb3; + --header-bg: rgba(238, 241, 234, 0.86); + --chip-bg: rgba(20, 30, 24, 0.04); + --scroll-track: #7d8a80; + --scroll-thumb: #2f3b33; + --text: #18201b; + --muted: #4e5b52; + --muted-2: #5c695f; + --brand: #8a5d26; + --brand-2: #3f6b57; + --accent: #2f6b57; + --accent-strong: #255746; + --accent-hover: #3a806a; --accent-ink: #ffffff; - --good: #0a6e55; - --warn: #7a5200; - --danger: #b3261e; - --mint: #0a6e55; - --blue: #2b4fd0; - --violet: #6236a8; - --mark-ink: #0b1220; - --badge-bg: #e7ecf3; - --badge-ink: #414d5c; - --lede-ink: #333e4d; - --tip-ink: #1a2330; + --good: #2f6b57; + --warn: #8a5d26; + --danger: #a83e36; + --mint: #2f6b57; + --blue: #3f5f72; + --violet: #6b5a86; + --mark-ink: #ffffff; + --badge-bg: #e2e8de; + --badge-ink: #3f4c43; + --lede-ink: #334038; + --tip-ink: #18201b; --paper: #ffffff; - --shadow: 0 24px 80px rgba(15, 23, 42, 0.14); + --shadow: 0 8px 24px rgba(20, 30, 24, 0.12); } /* An explicit dark choice must win over a light system preference: the media @@ -235,12 +268,12 @@ body { a different tint and pulled attention away from the content. */ background: var(--bg); color: var(--text); - font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; + font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; } -::selection { background: rgba(123, 149, 255, 0.34); color: var(--text); } +::selection { background: var(--accent-a34); color: var(--text); } .skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 14px; border-radius: 0 0 var(--radius-sm) 0; background: var(--accent-strong); color: var(--accent-ink); font-weight: 700; } .skip-link:focus { left: 0; } a { color: var(--accent); text-decoration: none; } @@ -249,7 +282,7 @@ a:hover { text-decoration: underline; } code, .token { font-family: var(--mono); font-size: 0.88em; background: var(--surface-inset); border: 1px solid var(--line); padding: 1px 6px; border-radius: var(--radius-xs); } h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; } -h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -0.02em; } +h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -0.01em; } h2 { font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; } h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: 0; } p { margin: 0 0 12px; } @@ -268,13 +301,13 @@ p { margin: 0 0 12px; } .option-card input { width: auto; margin: 0; flex: none; } .option-card span { min-width: 0; font-size: 13px; } .option-card:hover { border-color: var(--line-strong); } -.option-card:has(input:checked) { border-color: var(--accent); background: rgba(123, 149, 255, 0.12); } +.option-card:has(input:checked) { border-color: var(--accent); background: var(--accent-a12); } .job-report { white-space: pre-wrap; } -.chief-card { border-color: rgba(184, 243, 74, 0.22); } +.chief-card { border-color: var(--brand-a28); } .chief-thread { display: grid; gap: 10px; margin: 14px 0; max-height: 420px; overflow-y: auto; padding-right: 4px; } .chief-msg { max-width: 88%; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; background: var(--surface-raised); } -.chief-msg.user { margin-left: auto; border-color: rgba(123, 149, 255, 0.32); background: rgba(123, 149, 255, 0.1); border-bottom-right-radius: 4px; } -.chief-msg.chief { margin-right: auto; border-color: rgba(184, 243, 74, 0.25); border-bottom-left-radius: 4px; } +.chief-msg.user { margin-left: auto; border-color: var(--accent-a32); background: var(--accent-a10); border-bottom-right-radius: var(--radius-xs); } +.chief-msg.chief { margin-right: auto; border-color: var(--brand-a30); border-bottom-left-radius: var(--radius-xs); } .chief-msg.is-pending { opacity: 0.62; } .chief-role { color: var(--muted-2); font-size: 12px; font-weight: 650; margin-bottom: 4px; } .chief-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; } @@ -285,7 +318,7 @@ p { margin: 0 0 12px; } .chief-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .chief-status { margin: 0; color: var(--muted-2); font-size: 12px; min-height: 18px; flex: 1; } .chief-status.bad { color: var(--danger); } -.inbox { border-color: rgba(240, 198, 116, 0.3); background: var(--panel); } +.inbox { border-color: var(--warn-a30); background: var(--panel); } .inbox .count { color: var(--warn); } .inbox-list { margin-top: 12px; } .advanced-help { margin: 10px 0 4px; } @@ -313,14 +346,13 @@ p { margin: 0 0 12px; } @supports (padding: env(safe-area-inset-top)) { .top-inner { padding: 0 calc(var(--page-pad) + env(safe-area-inset-right)) 0 calc(var(--page-pad) + env(safe-area-inset-left)); } } -.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; } +.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; } .brand:hover { text-decoration: none; } .brand small { color: var(--muted-2); font-weight: 500; margin-left: 7px; font-size: 12px; letter-spacing: 0.16em; } .mark { width: 30px; height: 30px; display: grid; place-items: center; - background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--mark-ink); - border-radius: var(--radius-sm); font-weight: 900; transform: skew(-8deg); - box-shadow: 0 8px 24px rgba(184, 243, 74, 0.16); + background: var(--brand); color: var(--mark-ink); + border-radius: var(--radius-xs); font-family: var(--display); font-size: 19px; font-weight: 700; } .nav { display: flex; gap: 20px; flex-wrap: wrap; } .nav a { @@ -348,7 +380,7 @@ p { margin: 0 0 12px; } color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; } .lang a:hover { color: var(--text); text-decoration: none; } -.lang a[aria-current="true"] { background: rgba(123, 149, 255, 0.16); color: var(--accent); } +.lang a[aria-current="true"] { background: var(--accent-a16); color: var(--accent); } /* Issue 682: the theme choice is one 44px icon button with a small menu, not three text labels that read as "AutoLightDark" and consume a whole row segment. The summary shows the saved mode through `data-theme`; the menu options are plain @@ -378,7 +410,7 @@ p { margin: 0 0 12px; } } .theme-options a:hover { color: var(--text); background: var(--surface-raised); text-decoration: none; } .theme-options a[aria-current="true"] { - color: var(--accent); background: rgba(123, 149, 255, 0.12); font-weight: 700; + color: var(--accent); background: var(--accent-a12); font-weight: 700; } .theme-option-icon { display: grid; place-items: center; flex: none; } @@ -405,12 +437,23 @@ p { margin: 0 0 12px; } .foot-links { display: flex; gap: 16px; flex-wrap: wrap; } .foot a { color: var(--muted-2); } .foot a:hover { color: var(--accent); text-decoration: none; } +/* The star is an inline line icon, not a text glyph. The footer keeps the + compact label and the full sentence in title/aria; the About card keeps the + full label on the existing button. */ +.star-link { gap: 6px; } +.star-link .star-icon, .star-btn .star-icon { color: var(--muted-2); transition: color 0.15s ease, transform 0.15s ease; } +.star-link:hover .star-icon, .star-btn:hover .star-icon { color: var(--warn); transform: rotate(-12deg) scale(1.1); } .hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); gap: 44px 56px; align-items: start; padding: 76px 0 56px; } .hero-copy { grid-column: 1; grid-row: 1; max-width: 720px; } -.hero-copy h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 24px; } +.hero-copy h1 { font-family: var(--display); font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 24px; } .lede { color: var(--lede-ink); font-size: 18px; line-height: 1.8; max-width: 660px; } -.eyebrow { color: var(--accent); font: 700 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; } +.eyebrow { + display: flex; align-items: center; gap: 8px; + color: var(--muted-2); font: 600 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; + letter-spacing: 0; margin-bottom: 12px; +} +.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--line-strong); flex: none; } .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 0; } .hero-note { grid-column: 1; grid-row: 2; max-width: 720px; } .hero-note .fine { margin: 0; } @@ -424,7 +467,7 @@ p { margin: 0 0 12px; } .loop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); - font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); + font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; color: var(--muted-2); } .loop-tag { color: var(--good); } .loop-steps { list-style: none; margin: 0; padding: 6px 18px; } @@ -435,19 +478,41 @@ p { margin: 0 0 12px; } .loop-step small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.55; } .loop-foot { padding: 12px 18px; border-top: 1px solid var(--line); - font: 600 9.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--good); + font: 600 9.5px/1.4 var(--mono); letter-spacing: 0.1em; color: var(--good); } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; } .grid3 .card { position: relative; margin-bottom: 0; padding: 22px; overflow: hidden; } -.feature-num { display: block; margin-bottom: 16px; color: var(--accent); font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; } +.feature-num { display: block; margin-bottom: 16px; color: var(--accent); font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; } .grid3 h3 { font-size: 16px; } .grid3 p { color: var(--muted); font-size: 14px; margin: 0; } .cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin: 16px 0; } .card { + background: transparent; + border: 0; + border-top: 1px solid var(--line); + border-radius: 0; + padding: var(--card-pad) 0 0; + margin: 0 0 var(--section-gap); + overflow-wrap: anywhere; +} +/* The masthead already closes with a rule, so the first section does not repeat it. */ +.masthead + .card { border-top: 0; padding-top: 0; } +/* Only the current action and the genuinely grouped panels are cards in the old sense. */ +.card.action-card { background: var(--panel); - border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad); - margin-bottom: 16px; overflow-wrap: anywhere; + border: 1px solid var(--line-strong); + border-left: 3px solid var(--accent-strong); + border-radius: var(--radius-sm); + padding: var(--card-pad); +} +.card.action-card h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); line-height: 1.12; } +.card.notices { border-top: 1px solid var(--line); padding: 12px 0 0; } +.card.inbox, .card.chief-card, .card.provider-card, .card.feature { + background: var(--panel); + border: 1px solid var(--line); + border-radius: var(--radius-sm); + padding: var(--card-pad); } .table-scroll { width: 100%; overflow-x: auto; } .table-scroll::-webkit-scrollbar { height: 8px; } @@ -557,7 +622,7 @@ a.repo-status:hover { border-color: var(--accent); } .quota-card { display: flex; align-items: center; gap: 30px; justify-content: space-between; background: var(--panel); - border-color: rgba(123, 149, 255, 0.24); + border-color: var(--accent-a26); } .quota-big { font-size: 38px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; } .quota-big small { color: var(--muted); font-size: 15px; font-weight: 500; } @@ -567,9 +632,9 @@ a.repo-status:hover { border-color: var(--accent); } .banner { padding: 12px 15px; border-radius: var(--radius-md); margin-bottom: 16px; border: 1px solid var(--line); font-size: 14px; } .preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-style: dashed; } .preview-banner form { margin: 0; } -.banner.ok { background: rgba(103, 232, 199, 0.08); border-color: rgba(103, 232, 199, 0.35); } -.banner.bad { background: rgba(255, 138, 138, 0.08); border-color: rgba(255, 138, 138, 0.35); } -.banner.warn { background: rgba(240, 198, 116, 0.1); border-color: rgba(240, 198, 116, 0.32); } +.banner.ok { background: var(--brand-a10); border-color: var(--brand-a35); } +.banner.bad { background: var(--danger-a10); border-color: var(--danger-a35); } +.banner.warn { background: var(--warn-a12); border-color: var(--warn-a32); } /* 472: one stack for every page message, ordered by severity where the message is built. A dismissed message keeps its node and its announcement; `hidden` is the only thing that changes, so nothing is cut off mid-read. */ @@ -596,14 +661,14 @@ th { } td { padding: 12px 10px; border-bottom: 1px solid var(--row-line); vertical-align: middle; } tr:last-child td { border-bottom: none; } -tbody tr:hover td { background: rgba(123, 149, 255, 0.045); } +tbody tr:hover td { background: var(--accent-a05); } td code { white-space: nowrap; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent-strong); color: var(--accent-ink); border: 1px solid var(--accent-strong); border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: var(--touch); min-width: var(--touch); - box-shadow: 0 6px 18px rgba(76, 102, 245, 0.16); + box-shadow: 0 6px 18px rgba(0, 0, 0, 0.30); transition: background 0.15s, border-color 0.15s, transform 0.15s; } .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; transform: translateY(-1px); } @@ -613,9 +678,9 @@ td code { white-space: nowrap; } .link[aria-disabled="true"] { opacity: 0.45; pointer-events: none; cursor: not-allowed; text-decoration: none; } input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; } .btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; } -.btn-ghost:hover { border-color: var(--accent); background: rgba(123, 149, 255, 0.08); } -.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 138, 138, 0.4); box-shadow: none; } -.btn-danger:hover { background: rgba(255, 138, 138, 0.08); border-color: rgba(255, 138, 138, 0.6); } +.btn-ghost:hover { border-color: var(--accent); background: var(--accent-a10); } +.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger-a40); box-shadow: none; } +.btn-danger:hover { background: var(--danger-a10); border-color: var(--danger-a58); } .link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; } .link:hover { text-decoration: underline; } .link.bad { color: var(--danger); } @@ -672,7 +737,7 @@ input, textarea, select { border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s; } -input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123, 149, 255, 0.14); } +input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-a16); } /* A forced-colours theme paints no box-shadow and forces border-color to a system colour, so the ring above leaves a focused field with no indicator. This block repeats the same selectors after it: at equal specificity the @@ -705,14 +770,14 @@ textarea { resize: vertical; min-height: 70px; } .text-right { text-align: right; } .w-90 { width: 90px; } -.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; background: var(--badge-bg); color: var(--badge-ink); white-space: nowrap; } -.badge.good { background: rgba(103, 232, 199, 0.12); color: var(--good); } -.badge.bad { background: rgba(255, 138, 138, 0.12); color: var(--danger); } -.badge.busy { background: rgba(240, 198, 116, 0.12); color: var(--warn); } -.badge.kind { background: rgba(123, 149, 255, 0.1); color: var(--accent); font-weight: 650; } -.pill { display: inline-block; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 750; background: rgba(123, 149, 255, 0.12); color: var(--accent); border: 1px solid rgba(123, 149, 255, 0.25); white-space: nowrap; } -.pill-warn { background: rgba(240, 198, 116, 0.12); color: var(--warn); border-color: rgba(240, 198, 116, 0.25); } -.pill-danger { background: rgba(255, 138, 138, 0.12); color: var(--danger); border-color: rgba(255, 138, 138, 0.25); } +.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--line); border-radius: var(--radius-xs); font-size: 12px; font-weight: 650; letter-spacing: 0; background: var(--badge-bg); color: var(--badge-ink); white-space: nowrap; } +.badge.good { background: var(--brand-a14); color: var(--good); } +.badge.bad { background: var(--danger-a14); color: var(--danger); } +.badge.busy { background: var(--warn-a14); color: var(--warn); } +.badge.kind { background: var(--accent-a10); color: var(--accent); font-weight: 650; } +.pill { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: var(--radius-xs); font-size: 12px; font-weight: 650; background: var(--accent-a12); color: var(--accent); border: 1px solid var(--accent-a26); white-space: nowrap; } +.pill-warn { background: var(--warn-a14); color: var(--warn); border-color: var(--warn-a28); } +.pill-danger { background: var(--danger-a14); color: var(--danger); border-color: var(--danger-a26); } .nowrap { white-space: nowrap; } .count { margin-left: 7px; color: var(--muted-2); font-size: 12px; font-weight: 600; } @@ -777,7 +842,7 @@ textarea { resize: vertical; min-height: 70px; } .flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; } .flow-step { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; background: var(--surface-sunken); } -.flow-step span { display: block; color: var(--accent); font: 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; } +.flow-step span { display: block; color: var(--accent); font: 10px var(--mono); letter-spacing: 0.08em; } .flow-step b { display: block; margin: 4px 0; font-size: 14px; } .flow-step small { color: var(--muted); font-size: 12px; line-height: 1.45; } .agreement { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 17px; background: var(--surface-sunken); margin: 16px 0; max-height: 400px; overflow: auto; } @@ -790,7 +855,7 @@ textarea { resize: vertical; min-height: 70px; } summaries, so the first screen is a decision instead of a wall of equal cards. Both keep the tokens: no new colour, radius or size scale. */ #next-action { - border-color: rgba(123, 149, 255, 0.34); + border-color: var(--accent-a34); background: var(--panel); } #next-action h2 { margin-bottom: var(--space-2); } @@ -820,6 +885,27 @@ textarea { resize: vertical; min-height: 70px; } } .secondary-body > .quota-card { flex-wrap: wrap; gap: var(--space-3); } .workspace-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 28px 0 24px; } +/* The dashboard masthead: one large statement, a compact data line, and the loop. */ +.masthead { + display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); + gap: 28px 48px; align-items: end; + padding: 44px 0 28px; border-bottom: 1px solid var(--line); + margin-bottom: var(--section-gap); +} +.masthead-copy h1 { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: 0.98; margin: 0 0 14px; } +.masthead-copy .lede { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 56ch; margin: 0; } +.masthead-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; } +.masthead-meta b { color: var(--text); font-weight: 650; } +.loop-rail { border-top: 1px solid var(--line-strong); padding-top: 8px; } +.loop-rail .loop-step { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 12px; } +.loop-rail .loop-step:last-child { border-bottom: 0; } +.loop-rail .loop-step .dot { width: 7px; height: 7px; border: 1px solid var(--line-strong); border-radius: 50%; } +.loop-rail .loop-step[data-state="done"] .dot { background: var(--accent); border-color: var(--accent); } +.loop-rail .loop-step[data-state="current"] { color: var(--text); } +.loop-rail .loop-step[data-state="current"] .dot { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-a12); } +.loop-rail .loop-step .step-label { font-weight: 650; } +.loop-rail .loop-step .step-note { color: var(--muted-2); text-align: right; } +@media (max-width: 760px) { .masthead { grid-template-columns: 1fr; padding-top: 28px; } } .workspace-intro { max-width: 760px; } .workspace-user { display: flex; align-items: center; gap: 16px; } .workspace-avatar { @@ -828,7 +914,7 @@ textarea { resize: vertical; min-height: 70px; } } .workspace-avatar-fallback { display: grid; place-items: center; font-size: 22px; font-weight: 800; - color: var(--accent); background: rgba(123, 149, 255, 0.12); + color: var(--accent); background: var(--accent-a12); } .workspace-user h1 { font-size: 32px; margin: 2px 0 4px; letter-spacing: -0.045em; } .workspace-meta { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-2); font-size: 13px; } @@ -837,12 +923,12 @@ textarea { resize: vertical; min-height: 70px; } .workspace-actions { display: flex; gap: 9px; flex-wrap: wrap; } .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; } .stat { - display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); - background: var(--panel); + display: block; padding: 16px 0 18px; border: 0; border-top: 1px solid var(--line); border-radius: 0; + background: transparent; color: var(--text); - transition: border-color 0.16s, transform 0.16s; + transition: border-color 0.16s; } -.stat:hover { border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; } +.stat:hover { border-color: var(--line-strong); text-decoration: none; } .stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; } .stat strong { display: block; margin: 8px 0 2px; font-size: 32px; line-height: 1.05; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; } .stat small { color: var(--muted-2); font-size: 12px; } @@ -876,9 +962,9 @@ textarea { resize: vertical; min-height: 70px; } .state-loading { border-color: var(--line-strong); } .state-loading .state-icon { color: var(--accent); } .state-empty { border-style: dashed; } -.state-error { border-color: rgba(255, 138, 138, 0.35); background: rgba(255, 138, 138, 0.06); } +.state-error { border-color: var(--danger-a35); background: var(--danger-a08); } .state-error strong { color: var(--danger); } -.state-success { border-color: rgba(103, 232, 199, 0.35); background: rgba(103, 232, 199, 0.06); } +.state-success { border-color: var(--brand-a35); background: var(--brand-a08); } .state-success strong { color: var(--good); } .state-disabled { opacity: 0.75; } .state-disabled strong { color: var(--muted); } @@ -898,7 +984,7 @@ textarea { resize: vertical; min-height: 70px; } .team-role { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-sunken); } .team-role b { display: block; font-size: 14px; } .team-role span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 12px; } -.team-role.is-thinking { border-color: rgba(184, 243, 74, 0.42); } +.team-role.is-thinking { border-color: var(--accent-a42); } .team-role.is-thinking b { color: var(--accent); } .team-role.is-disabled { opacity: 0.55; } .team-role .team-calls { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10.5px; } @@ -1018,7 +1104,7 @@ a.list-row:hover strong { color: var(--accent); } } body { font-size: 15px; } h1 { font-size: clamp(28px, 9vw, 38px); } - .hero-copy h1 { font-size: clamp(38px, 11vw, 54px); } + .hero-copy h1 { font-family: var(--display); font-size: clamp(38px, 11vw, 54px); } .hero { padding: 40px 0 32px; } .lede { font-size: 16.5px; } .flow { grid-template-columns: 1fr 1fr; } @@ -1081,7 +1167,7 @@ a.list-row:hover strong { color: var(--accent); } .job-table tr:last-child, .table-cards tr:last-child { border-bottom: none; } .job-table td, .table-cards td { display: block; padding: 0; border-bottom: 0; vertical-align: top; min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; } .job-table td + td, .table-cards td + td { margin-top: 8px; } - .job-table td::before, .table-cards td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted-2); font-weight: 650; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; } + .job-table td::before, .table-cards td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted-2); font-weight: 650; font-size: 10.5px; letter-spacing: 0.09em; } .job-table td:not([data-label])::before, .table-cards td:not([data-label])::before { display: none; } .job-table .job-cell, .job-table .job-summary { min-width: 0; max-width: none; } @@ -1161,7 +1247,9 @@ a.list-row:hover strong { color: var(--accent); } .repos-head { align-items: center; gap: 12px; margin-bottom: 12px; } .repos-head h2 { margin: 0; } -.add-repo-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(80vh, 720px); overflow: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 22px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); } +.add-repo-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(80vh, 720px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 22px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); } +.feedback-dialog { width: min(560px, calc(100vw - 32px)); } +.feedback-dialog .dialog-head .link { font-size: 20px; line-height: 1; } .add-repo-dialog::backdrop { background: rgba(0, 0, 0, 0.62); } .add-repo-dialog .dialog-head { position: sticky; top: 0; z-index: 1; align-items: center; background: var(--panel); padding-bottom: 8px; } .add-repo-dialog .dialog-head h2 { margin: 0; } @@ -1211,7 +1299,7 @@ html:not([data-js]) .info-tip:hover::after, html:not([data-js]) .info-tip:focus: gap: 8px; } #danger { - border-color: rgba(240, 116, 116, 0.35); + border-color: var(--danger-a35); background: var(--panel); } .inbox[hidden] { @@ -1326,3 +1414,15 @@ html:lang(zh) .stat strong { letter-spacing: 0; line-height: 1.15; } .admin-module strong { grid-column: 1; font-size: var(--text-md); } .admin-module small { grid-column: 1; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; } .admin-module-go { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--accent); font-size: var(--text-sm); font-weight: 650; } + +@media (max-width: 640px) { + input, textarea, select { font-size: 16px; } +} +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + scroll-behavior: auto !important; + } +} diff --git a/mock/console.html b/mock/console.html index 9692a0d0..1169a656 100644 --- a/mock/console.html +++ b/mock/console.html @@ -4,10 +4,10 @@ - - + + 工作区 · Fledge - + @@ -124,10 +124,35 @@

FlyBot 在等你回答 0

文档 Portal 平台状态 - 反馈 - ★ 在 GitHub 上加星 + 反馈 + 加星 +

请确认

diff --git a/mock/dashboard.html b/mock/dashboard.html index 95bcb25a..8b4dc62f 100644 --- a/mock/dashboard.html +++ b/mock/dashboard.html @@ -4,10 +4,10 @@ - - + + 仓库 · Fledge - + @@ -48,15 +48,18 @@ -
-
-
仓库
+
+

仓库

-

接入仓库、设置迭代目标,并查看最近任务。

+

接入仓库、写下一个目标;团队每次只交回一个 PR,由你审核并合并。

+
2 个仓库2 个任务3 个未完成工作项
+

通知

平台额度剩余 ¥50.00;首次运行可能不够用时,建议配置自己的模型。2026-11-15 12:00:00 UTC
PR #742 等待合并2026-11-15 12:00:00 UTC
-
+
下一步

PR 已打开 48 小时

这是唯一需要你处理的事项。

@@ -233,10 +236,35 @@

添加仓库

文档 Portal 平台状态 - 反馈 - ★ 在 GitHub 上加星 + 反馈 + 加星 +

请确认

diff --git a/mock/job.html b/mock/job.html index b9297a58..da10b8af 100644 --- a/mock/job.html +++ b/mock/job.html @@ -4,10 +4,10 @@ - - + + 任务 job_mock_failed · Fledge - + @@ -140,6 +140,7 @@

结果

+

—

@@ -179,10 +180,35 @@

时间线

文档 Portal 平台状态 - 反馈 - ★ 在 GitHub 上加星 + 反馈 + 加星 +

请确认

diff --git a/mock/repository-demo.html b/mock/repository-demo.html index 62964489..233a8b1b 100644 --- a/mock/repository-demo.html +++ b/mock/repository-demo.html @@ -4,10 +4,10 @@ - - + + HugoXK/demo-app · Fledge - + @@ -352,10 +352,35 @@

危险操作

文档 Portal 平台状态 - 反馈 - ★ 在 GitHub 上加星 + 反馈 + 加星 +

请确认

diff --git a/mock/repository.html b/mock/repository.html index fbb387e6..78b8d2bb 100644 --- a/mock/repository.html +++ b/mock/repository.html @@ -4,10 +4,10 @@ - - + + HugoXK/fledge · Fledge - + @@ -160,7 +160,7 @@

给这个仓库打版本标签

待处理 PR

合并前会重新检查 PR 状态、checks、commit status、reviews 和 branch protection。

-
PR状态核实审核分成本创建
#742成功未核实
Not verified yet: neither the path guard nor the evidence verification has run.
88¥3.022026-11-13 12:00:00 UTC
+
PR状态核实审核分成本创建
#742成功未核实
Not verified yet: neither the path guard nor the evidence verification has run.
88¥3.022026-11-13 12:00:00 UTC

任务

`).join('') const body = `← ${escapeHtml(t('返回管理', 'Back to admin'))}
-
${escapeHtml(t('部署', 'DEPLOYMENTS'))}
+
${escapeHtml(t('部署', 'Deployments'))}

${escapeHtml(t('部署与漂移', 'Deployments and drift'))}

${escapeHtml(t('只读记录:Fledge 比较已记录的部署与发布标签,记录 canary 结果和回滚决定,但从不执行主机部署、回滚或 SSH。', 'Records only: Fledge compares recorded deployments with the released tag and records canary results and rollback decisions, but never runs a host deploy, rollback or SSH.'))}

${releaseLine} @@ -4373,7 +4394,7 @@ export function adminDeleteUserPage(input: { : `` const body = `← ${escapeHtml(t('返回支持视图', 'Back to support view'))}
-
${escapeHtml(t('账号删除', 'ACCOUNT DELETION'))}
+
${escapeHtml(t('账号删除', 'Account deletion'))}

${escapeHtml(t('删除账号', 'Delete account'))} @${escapeHtml(user.login)}

${badge(t, user.status)} · ${escapeHtml(roleLabel(t, user.role))} · ${escapeHtml(t('加入于', 'Joined'))} ${escapeHtml(humanTimeShort(user.created_at))}

@@ -4433,7 +4454,7 @@ export function searchPage(input: { const kindValues = filters.kind !== '' && !(JOB_FILTER_KINDS as string[]).includes(filters.kind) ? [...JOB_FILTER_KINDS, filters.kind] : [...JOB_FILTER_KINDS] const kindOptions = ['', ...kindValues].map((value) => option(value, value === '' ? all : kindFilterLabel(t, value), filters.kind)).join('') const body = `← ${escapeHtml(t('返回工作区', 'Back to workspace'))} -
${escapeHtml(t('搜索', 'SEARCH'))}

${escapeHtml(t('在你的数据里查找', 'Search your own data'))}

${escapeHtml(t(`只查你自己:仓库、任务、工作项和审计。每类最多显示前 ${cap} 条。`, `Your own data only: repositories, jobs, work items and audit. First ${cap} results per section.`))}

+
${escapeHtml(t('搜索', 'Search'))}

${escapeHtml(t('在你的数据里查找', 'Search your own data'))}

${escapeHtml(t(`只查你自己:仓库、任务、工作项和审计。每类最多显示前 ${cap} 条。`, `Your own data only: repositories, jobs, work items and audit. First ${cap} results per section.`))}

${results === null ? empty(t('输入关键词开始搜索。', 'Type a keyword to search.'), t('搜索范围只有你自己:仓库、任务、工作项和审计。', 'The scope is your own data only: repositories, jobs, work items and audit.')) : sections === '' ? empty(t('没有匹配的结果。', 'No matches.'), t('换一个关键词、缩短它,或增加一项筛选来缩小范围;清空筛选会扩大范围。', 'Try another keyword, shorten it, or add a filter to narrow the search; clearing a filter widens it.') + (filters.kind === '' ? '' : ' ' + t(`当前类型:${kindFilterLabel(t, filters.kind)}。`, `Kind: ${kindFilterLabel(t, filters.kind)}.`))) : sections}` return layout({ title: t('搜索', 'Search'), viewer, body, config, locale, path: '/search', active: 'console', notice, error }) @@ -4511,7 +4532,7 @@ export function adminSearchPage(input: {
-
${escapeHtml(t('搜索与导出', 'SEARCH & EXPORT'))}
+
${escapeHtml(t('搜索与导出', 'Search & export'))}

${escapeHtml(t('审计与任务', 'Audit and jobs'))}

${escapeHtml(t('按用户范围过滤;切换任务或审计,只显示当前筛选。', 'Scoped by the same user visibility as the admin page; switch between jobs and audit, and only the active filter is applied.'))}

@@ -4612,7 +4633,7 @@ export function schedulePage(input: { const panel = (mode: string, content: string): string => `
${content}
` const body = `← ${escapeHtml(t('返回工作区', 'Back to workspace'))} -
${escapeHtml(t('排期', 'SCHEDULE'))}

${escapeHtml(t('下一次什么时候运行?', 'When does it run next?'))}

+
${escapeHtml(t('排期', 'Schedule'))}

${escapeHtml(t('下一次什么时候运行?', 'When does it run next?'))}

${escapeHtml(t( '选一个常用节奏就能看到接下来几次运行。预览和将来的 worker 使用同一个规划器;它不保存任何东西,也不会创建任务。', 'Pick a common rhythm and see the next runs. The preview uses the same planner the worker will use; it saves nothing and creates no job.', @@ -4695,7 +4716,7 @@ export function scheduleConsolePage(input: { ? `

` : '' const body = `← ${escapeHtml(t('返回仓库', 'Back to repository'))} -
${escapeHtml(t('排期控制台', 'SCHEDULE CONSOLE'))}

${escapeHtml(`${repo.upstream_owner || repo.owner}/${repo.upstream_name || repo.name}`)}

+
${escapeHtml(t('排期控制台', 'Schedule console'))}

${escapeHtml(`${repo.upstream_owner || repo.owner}/${repo.upstream_name || repo.name}`)}

${kindNote}
${escapeHtml(t('排期', 'Schedule'))}
${scheduleLine}
diff --git a/src/views/theme.ts b/src/views/theme.ts index b859fd0e..1b9aae03 100644 --- a/src/views/theme.ts +++ b/src/views/theme.ts @@ -18,7 +18,7 @@ export const THEMES: readonly Theme[] = ['system', 'light', 'dark'] // A media query cannot read a custom property, so the two palette backgrounds // live here as the browser-chrome colour. test/theme.test.ts keeps them equal to // `--bg` in each palette, so the meta and the page cannot drift apart. -export const THEME_COLORS: Record<'light' | 'dark', string> = { light: '#f6f1e7', dark: '#0d0c0b' } +export const THEME_COLORS: Record<'light' | 'dark', string> = { light: '#eef1ea', dark: '#0b100e' } export function isTheme(value: unknown): value is Theme { return value === 'system' || value === 'light' || value === 'dark' diff --git a/test/feedback.test.ts b/test/feedback.test.ts index c59b3a56..33420665 100644 --- a/test/feedback.test.ts +++ b/test/feedback.test.ts @@ -24,11 +24,9 @@ test('the settings page offers feedback and a Star link', async () => { assert.match(response.body, /id="feedback"/) assert.match(response.body, /action="\/feedback"/) assert.match(response.body, /Star Fledge on GitHub/) - assert.match(response.body, /class="btn star-btn" href="https:\/\/github\.com\/HugoXK\/fledge"/) assert.match(response.body, /class="star-link" href="https:\/\/github\.com\/HugoXK\/fledge"/) assert.match(response.body, /class="star-icon"/) assert.doesNotMatch(response.body, /★/, 'the text glyph is replaced by the drawn star') - assert.match(response.body, /About Fledge/) assert.doesNotMatch(response.body, /\{infoTip\(/, 'the infoTip helper is interpolated, not printed as source') assert.match(response.body, /name="returnTo" value="\/settings"/) assert.doesNotMatch(response.body, /class="btn btn-ghost" href="#feedback"/, 'the About card no longer duplicates the feedback form') diff --git a/test/nextAction.test.ts b/test/nextAction.test.ts index 3d50abdd..ad04732e 100644 --- a/test/nextAction.test.ts +++ b/test/nextAction.test.ts @@ -68,7 +68,7 @@ function render(locale: Locale, input: PageInput = {}, seed?: (store: Store, use // The block is the only place the page makes one action primary, so every // assertion below reads that element rather than the whole page. function nextActionBlock(html: string): string { - return html.match(/
/)?.[0] ?? '' + return html.match(/
/)?.[0] ?? '' } function targets(section: string): string[] { diff --git a/test/nextScheduledRun.test.ts b/test/nextScheduledRun.test.ts index e0de3f05..987d78da 100644 --- a/test/nextScheduledRun.test.ts +++ b/test/nextScheduledRun.test.ts @@ -283,7 +283,7 @@ test('the dashboard answers with the schedule row, not the interval, when one ex const page = await built.app.inject({ method: 'GET', url: `/repos/${repo.id}`, headers: { cookie } }) assert.equal(dashboard.statusCode, 200) assert.equal(page.statusCode, 200) - const section = /
/.exec(dashboard.body)?.[0] ?? '' + const section = /
/.exec(dashboard.body)?.[0] ?? '' assert.match(section, /data-next-action="clear"/, 'the fixture reaches the all-clear card, where the next run is named') const schedule = scheduleFromRow(row) @@ -371,7 +371,7 @@ test('the dashboard never names a paused repository while an enabled one has a n const dashboard = await built.app.inject({ method: 'GET', url: '/dashboard', headers: { cookie: session.cookie } }) assert.equal(dashboard.statusCode, 200) - const section = /
/.exec(dashboard.body)?.[0] ?? '' + const section = /
/.exec(dashboard.body)?.[0] ?? '' assert.match(section, /data-next-action="clear"/, 'the fixture reaches the all-clear card, where the next run is named') assert.match(section, /下次自动运行:acme\/enabled/, 'the enabled repository is the next automatic run') assert.doesNotMatch(section, /acme\/paused/, 'a paused repository is never named as the next automatic run') @@ -395,7 +395,7 @@ test('with only paused repositories the dashboard says runs are paused and names const dashboard = await built.app.inject({ method: 'GET', url: '/dashboard', headers: { cookie: session.cookie } }) assert.equal(dashboard.statusCode, 200) - const section = /
/.exec(dashboard.body)?.[0] ?? '' + const section = /
/.exec(dashboard.body)?.[0] ?? '' assert.match(section, /data-next-action="clear"/, 'the fixture reaches the all-clear card') assert.match(section, /自动运行暂停:acme\/paused · 仓库已停用,自动运行不会开始/, 'the card says why nothing runs') assert.doesNotMatch(section, /\d{2}:\d{2}/, 'no instant is printed for a paused repository') diff --git a/test/pages.test.ts b/test/pages.test.ts index 01ebe585..911bfbe1 100644 --- a/test/pages.test.ts +++ b/test/pages.test.ts @@ -872,7 +872,7 @@ test('the dashboard shows a personal delivery card with a selectable window', () personal: { repos: 2, jobs: 10, succeeded: 8, failed: 2, prs: 6, merged: 4, costUsd: 0.5, openWorkItems: 1, lastJobAt: new Date().toISOString() }, alerts: [{ kind: 'job_stalled', level: 'critical', repoId: 'r1', repoLabel: 'o/r', jobId: 'j1', minutes: 45, message: 'job j1 has no callback for 45m' }], }) - assert.match(page, /MY DELIVERY/) + assert.match(page, /My delivery/) assert.match(page, /Delivery and cost/) assert.match(page, /30 days/) assert.match(page, />10/)?.[0] ?? '' + const nextAction = page.body.match(/
/)?.[0] ?? '' assert.match(nextAction, /Start the FlyBot instance/, 'the platform-funded run does not stop at the model step') assert.doesNotMatch(nextAction, /Add a model provider/, 'the optional model step is not the primary action') } finally { diff --git a/test/uiSurfaces.test.ts b/test/uiSurfaces.test.ts index c376c54f..65adc785 100644 --- a/test/uiSurfaces.test.ts +++ b/test/uiSurfaces.test.ts @@ -112,12 +112,12 @@ test('one radius scale, and every corner in the stylesheet takes a step of it', assert.deepEqual( [...scale.entries()].sort(), [ - ['--radius', '12px'], - ['--radius-lg', '12px'], - ['--radius-md', '10px'], + ['--radius', '10px'], + ['--radius-lg', '10px'], + ['--radius-md', '8px'], ['--radius-pill', '999px'], - ['--radius-sm', '8px'], - ['--radius-xs', '6px'], + ['--radius-sm', '6px'], + ['--radius-xs', '4px'], ], 'the radius scale is one list in :root', ) @@ -162,7 +162,7 @@ test('cards, lists and tables keep one shell each', () => { const cardClasses = new Set([...source.matchAll(/class="card( [a-z-]+)?"/g)].map((match) => (match[1] ?? '').trim()).filter((value) => value !== '')) assert.deepEqual( [...cardClasses].sort(), - ['chief-card', 'feature', 'inbox', 'narrow', 'notices', 'provider-card'], + ['action-card', 'chief-card', 'feature', 'inbox', 'narrow', 'notices', 'provider-card'], 'a card is .card plus a documented modifier; a new shell is a decision this issue did not open', ) diff --git a/test/uiTokens.test.ts b/test/uiTokens.test.ts index 7f09b427..f22177e6 100644 --- a/test/uiTokens.test.ts +++ b/test/uiTokens.test.ts @@ -207,60 +207,58 @@ function lineTokens(source: string, pattern: RegExp, label: string): Map { +// 7. #547: the flight-deck foundation. The console is not a warm-cream template +// and not a periwinkle/lime one: a cool mineral paper, pine/sage action, a +// brass decorative note, a serif wordmark over system-sans body text, a +// square 4/6/8/10 radius scale and no uppercase labels or card shadows. +test('the flight-deck palette replaces the warm and periwinkle templates', () => { const dark = lineTokens(cssSource, /:root\s*\{([^}]*)\}/, 'dark') const light = lineTokens(cssSource, /:root\[data-theme="light"\]\s*\{([^}]*)\}/, '[data-theme="light"]') const expected: Array<[string, Map, string, string]> = [ - ['--bg', dark, '#0d0c0b', 'dark charcoal'], - ['--panel', dark, '#161412', 'warm charcoal panel'], - ['--text', dark, '#f3ede4', 'warm paper text'], - ['--accent', dark, '#d97745', 'copper accent'], - ['--brand', dark, '#7fae9a', 'sage brand'], - ['--brand-2', dark, '#e0b36a', 'sand brand'], - ['--good', dark, '#7fae9a', 'sage good'], - ['--warn', dark, '#e0b36a', 'sand warn'], - ['--bg', light, '#f6f1e7', 'warm paper'], - ['--panel', light, '#fffdf8', 'warm white panel'], - ['--text', light, '#1d1a16', 'ink'], - // #858 section 3 names #b75b35; it measures 4.09:1 on --bg, where the `a` - // rule paints link text, so the shipped copper is one step darker and - // clears 4.5:1 on --bg (4.53) and --panel (5.02). - ['--accent', light, '#ad5530', 'copper accent'], + ['--bg', dark, '#0b100e', 'graphite-green'], + ['--panel', dark, '#101814', 'section panel'], + ['--text', dark, '#e9efe9', 'cool text'], + ['--accent', dark, '#8fbfa8', 'sage accent'], + ['--brand', dark, '#c49a5a', 'brass brand'], + ['--brand-2', dark, '#8fb39a', 'sage brand'], + ['--good', dark, '#8fbfa8', 'sage good'], + ['--warn', dark, '#d6a75b', 'amber warn'], + ['--bg', light, '#eef1ea', 'cool paper'], + ['--panel', light, '#f8faf5', 'cool panel'], + ['--text', light, '#18201b', 'ink'], + ['--accent', light, '#2f6b57', 'pine accent'], ] const wrong = expected .filter(([token, palette, value]) => palette.get(token) !== value) .map(([token, palette, value, label]) => `${label} ${token} = ${palette.get(token) ?? 'missing'}, expected ${value}`) - assert.deepEqual(wrong, [], `the warm palette is not in place:\n${wrong.join('\n')}`) + assert.deepEqual(wrong, [], `the flight-deck palette is not in place:\n${wrong.join('\n')}`) - // The template colours are gone from every palette, not only replaced in dark. - const retired = ['#7b95ff', '#4c66f5', '#5f78ff', '#2b4fd0', '#1d3cb8', '#2646c4', '#b8f34a', '#6ee7a8', '#67e8c7', '#3f7a12', '#0e7a5c'] + // Both earlier templates are gone from every palette, not only replaced in dark. + const retired = [ + '#0d0c0b', '#161412', '#f3ede4', '#d97745', '#7fae9a', '#e0b36a', '#ad5530', '#f6f1e7', '#fffdf8', '#1d1a16', + '#7b95ff', '#4c66f5', '#5f78ff', '#2b4fd0', '#1d3cb8', '#2646c4', '#b8f34a', '#6ee7a8', '#67e8c7', '#3f7a12', '#0e7a5c', + ] const stale: string[] = [] for (const [name, palette] of [['dark', dark], ['light', light]] as const) { for (const [token, value] of palette) { if (retired.includes(value.toLowerCase())) stale.push(`${name} ${token} = ${value}`) } } - assert.deepEqual(stale, [], `the periwinkle/lime template is still in the palette:\n${stale.join('\n')}`) + assert.deepEqual(stale, [], `an earlier template is still in the palette:\n${stale.join('\n')}`) - // Warm means red above blue: a periwinkle accent would fail this even under a - // new name. The brand pair is deliberately cool (sage and sand), so only the - // interactive accent carries this check. + // A cool accent is the point: the current warm template had red above blue. for (const [name, palette] of [['dark', dark], ['light', light]] as const) { const rgb = channels(palette.get('--accent') ?? '#000000') ?? [0, 0, 0] - assert.ok(rgb[0] > rgb[2], `${name} --accent = ${palette.get('--accent')} is not warm (r must exceed b)`) + assert.ok(rgb[2] > rgb[0], `${name} --accent = ${palette.get('--accent')} is not cool (b must exceed r)`) } - // The editorial radius scale: 6 / 8 / 10 / 12 / 12 / 999. - assert.equal(dark.get('--radius-xs'), '6px', '--radius-xs must stay 6px') - assert.equal(dark.get('--radius-sm'), '8px', '--radius-sm must stay 8px') - assert.equal(dark.get('--radius-md'), '10px', '--radius-md must be 10px') - assert.equal(dark.get('--radius'), '12px', '--radius must be 12px') - assert.equal(dark.get('--radius-lg'), '12px', '--radius-lg must be 12px') + // The flight-deck radius scale: square sections, small controls, 999 only for + // a circle. The card shell is square and does not take --radius. + assert.equal(dark.get('--radius-xs'), '4px', '--radius-xs must be 4px') + assert.equal(dark.get('--radius-sm'), '6px', '--radius-sm must be 6px') + assert.equal(dark.get('--radius-md'), '8px', '--radius-md must be 8px') + assert.equal(dark.get('--radius'), '10px', '--radius must be 10px') + assert.equal(dark.get('--radius-lg'), '10px', '--radius-lg must be 10px') // Serif display for h1, the wordmark and the hero heading; mono stays. const display = dark.get('--display') ?? '' @@ -283,32 +281,29 @@ test('the warm editorial palette replaces the periwinkle and lime template', () assert.equal(dark.get('--text-xs'), '12px', '--text-xs must stay 12px') assert.equal(dark.get('--text-sm'), '13px', '--text-sm must stay 13px') - // No uppercase eyebrows: the direction asks for sentence case throughout. + // No uppercase eyebrows and no 80px bloom: sentences and a hairline do the work. assert.doesNotMatch(cssSource, /text-transform:\s*uppercase/, 'the template eyebrows must not stay uppercase') - - // No 80px bloom: only popovers, menus and dialogs still read --shadow, and the - // tightest editorial shadow tops out at 0 8px 24px. for (const [name, palette] of [['dark', dark], ['light', light]] as const) { const shadow = palette.get('--shadow') ?? '' assert.match(shadow, /^0 \d+px \d+px rgba\(/, `${name} --shadow must stay a soft rgba shadow, got ${shadow}`) const parts = /^0 (\d+)px (\d+)px/.exec(shadow) ?? [] - assert.ok(Number(parts[1] ?? '99') <= 8 && Number(parts[2] ?? '99') <= 24, `${name} --shadow is ${shadow}; the warm foundation allows at most 0 8px 24px`) + assert.ok(Number(parts[1] ?? '99') <= 8 && Number(parts[2] ?? '99') <= 24, `${name} --shadow is ${shadow}; the flight deck allows at most 0 8px 24px`) } const consumers = cssSource.split('\n').filter((line) => line.includes('box-shadow: var(--shadow)')) assert.ok(consumers.length > 0, 'the popover and dialog rules must keep reading --shadow') assert.ok(!/\.card\b[^\n]*box-shadow: var\(--shadow\)/.test(cssSource), 'a card keeps a 1px border instead of a drop shadow') - // The old palette also lived in rgba tints; those are part of the template too. - const rgb = /rgba\(\s*(123|184|103|240|255|110|182)\s*,\s*(149|243|232|198|138|231|156)\s*,\s*(255|74|199|116|138|168|255)\s*,/g - const tints = [...cssSource.matchAll(rgb)].map((match) => match[0]) - assert.deepEqual(tints, [], `the template tints survive outside the tokens:\n${tints.join('\n')}`) + // The old templates also lived in rgba tints; those are part of the template too. + const oldTints = /rgba\(\s*(123|184|103|240|255|110|182|217|127|224|232)\s*,\s*(149|243|232|198|138|231|156|119|174|179|138)\s*,\s*(255|74|199|116|138|168|255|69|154|106|125)\s*,/g + const tints = [...cssSource.matchAll(oldTints)].map((match) => match[0]) + assert.deepEqual(tints, [], `an earlier template tint survives outside the tokens:\n${tints.join('\n')}`) }) -// 8. The warm palette still has to be readable: body and secondary text clear +// 8. The flight-deck palette still has to be readable: body and secondary text clear // 4.5:1 on every surface, the button ink clears it on the accent and on the // stronger hover step, and the components read their colours from the tokens // rather than literals. -test('the warm palette clears AA for text and control pairs in both schemes', () => { +test('the flight-deck palette clears AA for text and control pairs in both schemes', () => { const dark = lineTokens(cssSource, /:root\s*\{([^}]*)\}/, 'dark') const light = lineTokens(cssSource, /:root\[data-theme="light"\]\s*\{([^}]*)\}/, '[data-theme="light"]') const failures: string[] = [] @@ -327,12 +322,12 @@ test('the warm palette clears AA for text and control pairs in both schemes', () const ratio = contrast(ink, palette.get(surface) ?? '#000') if (ratio < 4.5) failures.push(`${name}: --accent on ${surface} = ${ratio.toFixed(2)}:1`) } - for (const background of ['--accent', '--accent-strong', '--accent-hover']) { + for (const background of ['--accent-strong', '--accent-hover']) { const ratio = contrast(palette.get('--accent-ink') ?? '#000', palette.get(background) ?? '#000') if (ratio < 4.5) failures.push(`${name}: --accent-ink on ${background} = ${ratio.toFixed(2)}:1`) } } - assert.deepEqual(failures, [], `the warm palette is below AA:\n${failures.join('\n')}`) + assert.deepEqual(failures, [], `the flight-deck palette is below AA:\n${failures.join('\n')}`) // Components take their colour from the tokens, so a future palette change is // one block and not a hunt through the component rules. From 81ecfdd0b736c62e0ecb0065e38be540bee09d82 Mon Sep 17 00:00:00 2001 From: Day Dreamer <87640074+HugoXK@users.noreply.github.com> Date: Mon, 16 Nov 2026 15:59:50 +0800 Subject: [PATCH 2/2] ui: leave the generated mock to the release routine --- mock/add-repository.html | 35 +-- mock/assets/app.css | 458 +++++++++++++++---------------------- mock/console.html | 35 +-- mock/dashboard.html | 48 +--- mock/job.html | 36 +-- mock/repository-demo.html | 35 +-- mock/repository.html | 57 ++--- mock/schedule-console.html | 36 +-- mock/schedule-preview.html | 35 +-- mock/settings.html | 23 +- 10 files changed, 250 insertions(+), 548 deletions(-) diff --git a/mock/add-repository.html b/mock/add-repository.html index 3701e904..ad04e5a7 100644 --- a/mock/add-repository.html +++ b/mock/add-repository.html @@ -4,10 +4,10 @@ - - + + GitHub App 接入 · Fledge - + @@ -71,35 +71,10 @@

已安装

文档 Portal 平台状态 - 反馈 - 加星 + 反馈 + ★ 在 GitHub 上加星 -

请确认

diff --git a/mock/assets/app.css b/mock/assets/app.css index 262bfbd7..2738a4cd 100644 --- a/mock/assets/app.css +++ b/mock/assets/app.css @@ -13,57 +13,57 @@ scrollbars and selection (WCAG 2.1 AA 1.4.11 assumes a control matches the surface it sits on). */ color-scheme: light dark; - --bg: #0b100e; - --bg-soft: #0e1512; - --panel: #101814; - --panel-2: #16211b; - --surface-sunken: #0c130f; - --surface-inset: #0e1612; - --surface-raised: #121c17; - --field: #0c130f; - --track: #080d0a; - --row-line: #1d2a22; - --raised-top: #141f19; - --raised-bottom: #0e1511; - --line: #223028; - --field-line: #6f8376; - --line-strong: #33453a; + --bg: #07090d; + --bg-soft: #0a0e14; + --panel: #0d1118; + --panel-2: #111722; + --surface-sunken: #090e14; + --surface-inset: #080d13; + --surface-raised: #0b121b; + --field: #080c12; + --track: #060a10; + --row-line: #18202a; + --raised-top: #101722; + --raised-bottom: #0a0e15; + --line: #1c232d; + --field-line: #5a6680; + --line-strong: #2a3545; /* #657: the two surfaces the palette used to hardcode. The sticky header is translucent so content scrolls under it, and the account pill is barely tinted; both are rgba because a palette colour with alpha cannot be a hex literal, and both are redefined in the light block so a light page does not carry a dark bar over light content. */ - --header-bg: rgba(11, 16, 14, 0.78); - --chip-bg: rgba(255, 255, 255, 0.03); - --scroll-track: #5a6b5e; - --scroll-thumb: #c4d1c6; - --text: #e9efe9; - --muted: #b3c0b5; - --muted-2: #94a398; - --brand: #c49a5a; - --brand-2: #8fb39a; + --header-bg: rgba(7, 9, 13, 0.78); + --chip-bg: rgba(255, 255, 255, 0.02); + --scroll-track: #5b6779; + --scroll-thumb: #c8d2de; + --text: #f2f5f9; + --muted: #98a2b3; + --muted-2: #8b96a6; + --brand: #b8f34a; + --brand-2: #6ee7a8; /* One interactive accent (#229). --accent and its strong/hover/ink steps are the only colours an interactive control may use: buttons, links, the current nav item, focus rings, selected chips, pills and badges. --brand and --mint are decoration only (the wordmark's gradient, the feature and stat accents, the meter's fill); they never stand for a control, so a reader cannot mistake a coloured panel for something that can be clicked. */ - --accent: #8fbfa8; - --accent-strong: #2f6b57; - --accent-hover: #3b7d65; - --accent-ink: #f4f8f2; - --good: #8fbfa8; - --warn: #d6a75b; - --danger: #e08a7e; - --mint: #8fbfa8; - --blue: #9fb4bd; - --violet: #b7a3c2; - --mark-ink: #0b100e; - --badge-bg: #1b2a22; - --badge-ink: #c5d2c8; - --lede-ink: #c2cec4; - --tip-ink: #e2eae4; - --paper: #f7faf5; + --accent: #7b95ff; + --accent-strong: #4c66f5; + --accent-hover: #5f78ff; + --accent-ink: #ffffff; + --good: #67e8c7; + --warn: #f0c674; + --danger: #ff8a8a; + --mint: #67e8c7; + --blue: #7b95ff; + --violet: #b69cff; + --mark-ink: #07101f; + --badge-bg: #1a222b; + --badge-ink: #aab7c4; + --lede-ink: #b9c6d4; + --tip-ink: #dbe6f3; + --paper: #ffffff; --space-1: 4px; --space-2: 8px; --space-3: 12px; @@ -84,16 +84,16 @@ card shell, lg = the feature and hero panels, pill = badges, pills and the meter. The raw 6/9/10/11/13/14/99/999px values these replace sat one or two pixels apart and were never a decision. */ - --radius-xs: 4px; - --radius-sm: 6px; - --radius-md: 8px; - --radius-lg: 10px; - --radius: 10px; + --radius-xs: 6px; + --radius-sm: 8px; + --radius-md: 12px; + --radius-lg: 18px; + --radius: 16px; --radius-pill: 999px; --motion-fast: 120ms; --motion-base: 180ms; --ease: cubic-bezier(0.2, 0.7, 0.3, 1); - --shadow: 0 8px 24px rgba(0, 0, 0, 0.28); + --shadow: 0 24px 80px rgba(0, 0, 0, 0.38); /* Height of the sticky header; re-declared per breakpoint because the header is not one row at every width: every band at or below 960px fixes it at 64px plus the .top border, the wide header is content-driven and taller. @@ -108,39 +108,6 @@ so an anchored section clears the bar instead of landing a few pixels under it. */ --nav-h: 61px; - /* #858: the warm editorial foundation. A serif display face for h1, the - wordmark and the hero heading; body copy keeps the system sans; mono stays - for code and data. An alpha tint of an accent cannot name a solid token - without losing the transparency, so the tints the component rules use live - here too and the next palette change is one block. */ - --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", "Noto Serif CJK SC", serif; - --accent-a05: rgba(143, 191, 168, 0.05); - --accent-a10: rgba(143, 191, 168, 0.10); - --accent-a12: rgba(143, 191, 168, 0.12); - --accent-a16: rgba(143, 191, 168, 0.16); - --accent-a18: rgba(143, 191, 168, 0.18); - --accent-a26: rgba(143, 191, 168, 0.26); - --accent-a32: rgba(143, 191, 168, 0.32); - --accent-a34: rgba(143, 191, 168, 0.34); - --accent-a42: rgba(143, 191, 168, 0.42); - --brand-a08: rgba(196, 154, 90, 0.08); - --brand-a10: rgba(196, 154, 90, 0.10); - --brand-a14: rgba(196, 154, 90, 0.14); - --brand-a28: rgba(196, 154, 90, 0.28); - --brand-a30: rgba(196, 154, 90, 0.30); - --brand-a35: rgba(196, 154, 90, 0.35); - --warn-a12: rgba(214, 167, 91, 0.12); - --warn-a14: rgba(214, 167, 91, 0.14); - --warn-a28: rgba(214, 167, 91, 0.28); - --warn-a30: rgba(214, 167, 91, 0.30); - --warn-a32: rgba(214, 167, 91, 0.32); - --danger-a08: rgba(224, 138, 126, 0.08); - --danger-a10: rgba(224, 138, 126, 0.10); - --danger-a14: rgba(224, 138, 126, 0.14); - --danger-a26: rgba(224, 138, 126, 0.26); - --danger-a35: rgba(224, 138, 126, 0.35); - --danger-a40: rgba(224, 138, 126, 0.40); - --danger-a58: rgba(224, 138, 126, 0.58); --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; --touch: 44px; --content: 1180px; @@ -158,101 +125,101 @@ and an attribute selector cannot share one declaration block, and the system preference has to work with JavaScript off, so neither branch can be dropped. Ratios, measured with the same formula test/uiTokens.test.ts uses: - --text 15.4:1 on --bg, --muted-2 5.4:1 on --panel-2, --badge-ink 7.9:1 on - --badge-bg, --scroll-track 3.9:1 on --panel and 3.1:1 on --scroll-thumb. + --text 16.8:1 on --bg, --muted-2 5.8:1 on --panel-2, --badge-ink 7.3:1 on + --badge-bg, --scroll-track 3.4:1 on --panel and 3.3:1 on --scroll-thumb. The resting field boundary is its own token because --line paints every card - and divider (issue 596). --field-line measures 3.87:1 on the field - and 3.59:1 on --panel-2, over the 3:1 WCAG 1.4.11 minimum for an edge. */ + and divider (issue 596). --field-line measures 3.65:1 on the white field + and 3.46:1 on --panel-2, over the 3:1 WCAG 1.4.11 minimum for an edge. */ @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: light; - --bg: #eef1ea; - --bg-soft: #e8ece4; - --panel: #f8faf5; - --panel-2: #f0f3ec; - --surface-sunken: #e9ede5; - --surface-inset: #e6eae2; - --surface-raised: #fbfcf8; + --bg: #f4f6f9; + --bg-soft: #eef1f6; + --panel: #ffffff; + --panel-2: #f7f9fc; + --surface-sunken: #eef1f6; + --surface-inset: #e9edf3; + --surface-raised: #ffffff; --field: #ffffff; - --track: #dde3da; - --row-line: #dce2d8; - --raised-top: #fbfcf8; - --raised-bottom: #f1f4ed; - --line: #d4dbd0; - --field-line: #7b887c; - --line-strong: #b4beb3; - --header-bg: rgba(238, 241, 234, 0.86); - --chip-bg: rgba(20, 30, 24, 0.04); - --scroll-track: #7d8a80; - --scroll-thumb: #2f3b33; - --text: #18201b; - --muted: #4e5b52; - --muted-2: #5c695f; - --brand: #8a5d26; - --brand-2: #3f6b57; - --accent: #2f6b57; - --accent-strong: #255746; - --accent-hover: #3a806a; + --track: #e8ecf2; + --row-line: #e4e9f0; + --raised-top: #ffffff; + --raised-bottom: #f3f6fa; + --line: #dbe1e9; + --field-line: #7c8794; + --line-strong: #b9c2cf; + --header-bg: rgba(244, 246, 249, 0.86); + --chip-bg: rgba(16, 22, 31, 0.04); + --scroll-track: #828c9a; + --scroll-thumb: #333c48; + --text: #10161f; + --muted: #47515f; + --muted-2: #59636f; + --brand: #3f7a12; + --brand-2: #0e7a5c; + --accent: #2b4fd0; + --accent-strong: #1d3cb8; + --accent-hover: #2646c4; --accent-ink: #ffffff; - --good: #2f6b57; - --warn: #8a5d26; - --danger: #a83e36; - --mint: #2f6b57; - --blue: #3f5f72; - --violet: #6b5a86; - --mark-ink: #ffffff; - --badge-bg: #e2e8de; - --badge-ink: #3f4c43; - --lede-ink: #334038; - --tip-ink: #18201b; + --good: #0a6e55; + --warn: #7a5200; + --danger: #b3261e; + --mint: #0a6e55; + --blue: #2b4fd0; + --violet: #6236a8; + --mark-ink: #0b1220; + --badge-bg: #e7ecf3; + --badge-ink: #414d5c; + --lede-ink: #333e4d; + --tip-ink: #1a2330; --paper: #ffffff; - --shadow: 0 8px 24px rgba(20, 30, 24, 0.12); + --shadow: 0 24px 80px rgba(15, 23, 42, 0.14); } } :root[data-theme="light"] { color-scheme: light; - --bg: #eef1ea; - --bg-soft: #e8ece4; - --panel: #f8faf5; - --panel-2: #f0f3ec; - --surface-sunken: #e9ede5; - --surface-inset: #e6eae2; - --surface-raised: #fbfcf8; + --bg: #f4f6f9; + --bg-soft: #eef1f6; + --panel: #ffffff; + --panel-2: #f7f9fc; + --surface-sunken: #eef1f6; + --surface-inset: #e9edf3; + --surface-raised: #ffffff; --field: #ffffff; - --track: #dde3da; - --row-line: #dce2d8; - --raised-top: #fbfcf8; - --raised-bottom: #f1f4ed; - --line: #d4dbd0; - --field-line: #7b887c; - --line-strong: #b4beb3; - --header-bg: rgba(238, 241, 234, 0.86); - --chip-bg: rgba(20, 30, 24, 0.04); - --scroll-track: #7d8a80; - --scroll-thumb: #2f3b33; - --text: #18201b; - --muted: #4e5b52; - --muted-2: #5c695f; - --brand: #8a5d26; - --brand-2: #3f6b57; - --accent: #2f6b57; - --accent-strong: #255746; - --accent-hover: #3a806a; + --track: #e8ecf2; + --row-line: #e4e9f0; + --raised-top: #ffffff; + --raised-bottom: #f3f6fa; + --line: #dbe1e9; + --field-line: #7c8794; + --line-strong: #b9c2cf; + --header-bg: rgba(244, 246, 249, 0.86); + --chip-bg: rgba(16, 22, 31, 0.04); + --scroll-track: #828c9a; + --scroll-thumb: #333c48; + --text: #10161f; + --muted: #47515f; + --muted-2: #59636f; + --brand: #3f7a12; + --brand-2: #0e7a5c; + --accent: #2b4fd0; + --accent-strong: #1d3cb8; + --accent-hover: #2646c4; --accent-ink: #ffffff; - --good: #2f6b57; - --warn: #8a5d26; - --danger: #a83e36; - --mint: #2f6b57; - --blue: #3f5f72; - --violet: #6b5a86; - --mark-ink: #ffffff; - --badge-bg: #e2e8de; - --badge-ink: #3f4c43; - --lede-ink: #334038; - --tip-ink: #18201b; + --good: #0a6e55; + --warn: #7a5200; + --danger: #b3261e; + --mint: #0a6e55; + --blue: #2b4fd0; + --violet: #6236a8; + --mark-ink: #0b1220; + --badge-bg: #e7ecf3; + --badge-ink: #414d5c; + --lede-ink: #333e4d; + --tip-ink: #1a2330; --paper: #ffffff; - --shadow: 0 8px 24px rgba(20, 30, 24, 0.12); + --shadow: 0 24px 80px rgba(15, 23, 42, 0.14); } /* An explicit dark choice must win over a light system preference: the media @@ -268,12 +235,12 @@ body { a different tint and pulled attention away from the content. */ background: var(--bg); color: var(--text); - font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; + font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; } -::selection { background: var(--accent-a34); color: var(--text); } +::selection { background: rgba(123, 149, 255, 0.34); color: var(--text); } .skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 14px; border-radius: 0 0 var(--radius-sm) 0; background: var(--accent-strong); color: var(--accent-ink); font-weight: 700; } .skip-link:focus { left: 0; } a { color: var(--accent); text-decoration: none; } @@ -282,7 +249,7 @@ a:hover { text-decoration: underline; } code, .token { font-family: var(--mono); font-size: 0.88em; background: var(--surface-inset); border: 1px solid var(--line); padding: 1px 6px; border-radius: var(--radius-xs); } h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; } -h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -0.01em; } +h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -0.02em; } h2 { font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; } h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: 0; } p { margin: 0 0 12px; } @@ -301,13 +268,13 @@ p { margin: 0 0 12px; } .option-card input { width: auto; margin: 0; flex: none; } .option-card span { min-width: 0; font-size: 13px; } .option-card:hover { border-color: var(--line-strong); } -.option-card:has(input:checked) { border-color: var(--accent); background: var(--accent-a12); } +.option-card:has(input:checked) { border-color: var(--accent); background: rgba(123, 149, 255, 0.12); } .job-report { white-space: pre-wrap; } -.chief-card { border-color: var(--brand-a28); } +.chief-card { border-color: rgba(184, 243, 74, 0.22); } .chief-thread { display: grid; gap: 10px; margin: 14px 0; max-height: 420px; overflow-y: auto; padding-right: 4px; } .chief-msg { max-width: 88%; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; background: var(--surface-raised); } -.chief-msg.user { margin-left: auto; border-color: var(--accent-a32); background: var(--accent-a10); border-bottom-right-radius: var(--radius-xs); } -.chief-msg.chief { margin-right: auto; border-color: var(--brand-a30); border-bottom-left-radius: var(--radius-xs); } +.chief-msg.user { margin-left: auto; border-color: rgba(123, 149, 255, 0.32); background: rgba(123, 149, 255, 0.1); border-bottom-right-radius: 4px; } +.chief-msg.chief { margin-right: auto; border-color: rgba(184, 243, 74, 0.25); border-bottom-left-radius: 4px; } .chief-msg.is-pending { opacity: 0.62; } .chief-role { color: var(--muted-2); font-size: 12px; font-weight: 650; margin-bottom: 4px; } .chief-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; } @@ -318,7 +285,7 @@ p { margin: 0 0 12px; } .chief-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .chief-status { margin: 0; color: var(--muted-2); font-size: 12px; min-height: 18px; flex: 1; } .chief-status.bad { color: var(--danger); } -.inbox { border-color: var(--warn-a30); background: var(--panel); } +.inbox { border-color: rgba(240, 198, 116, 0.3); background: var(--panel); } .inbox .count { color: var(--warn); } .inbox-list { margin-top: 12px; } .advanced-help { margin: 10px 0 4px; } @@ -346,13 +313,14 @@ p { margin: 0 0 12px; } @supports (padding: env(safe-area-inset-top)) { .top-inner { padding: 0 calc(var(--page-pad) + env(safe-area-inset-right)) 0 calc(var(--page-pad) + env(safe-area-inset-left)); } } -.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; } +.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; } .brand:hover { text-decoration: none; } .brand small { color: var(--muted-2); font-weight: 500; margin-left: 7px; font-size: 12px; letter-spacing: 0.16em; } .mark { width: 30px; height: 30px; display: grid; place-items: center; - background: var(--brand); color: var(--mark-ink); - border-radius: var(--radius-xs); font-family: var(--display); font-size: 19px; font-weight: 700; + background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--mark-ink); + border-radius: var(--radius-sm); font-weight: 900; transform: skew(-8deg); + box-shadow: 0 8px 24px rgba(184, 243, 74, 0.16); } .nav { display: flex; gap: 20px; flex-wrap: wrap; } .nav a { @@ -380,7 +348,7 @@ p { margin: 0 0 12px; } color: var(--muted-2); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; } .lang a:hover { color: var(--text); text-decoration: none; } -.lang a[aria-current="true"] { background: var(--accent-a16); color: var(--accent); } +.lang a[aria-current="true"] { background: rgba(123, 149, 255, 0.16); color: var(--accent); } /* Issue 682: the theme choice is one 44px icon button with a small menu, not three text labels that read as "AutoLightDark" and consume a whole row segment. The summary shows the saved mode through `data-theme`; the menu options are plain @@ -410,7 +378,7 @@ p { margin: 0 0 12px; } } .theme-options a:hover { color: var(--text); background: var(--surface-raised); text-decoration: none; } .theme-options a[aria-current="true"] { - color: var(--accent); background: var(--accent-a12); font-weight: 700; + color: var(--accent); background: rgba(123, 149, 255, 0.12); font-weight: 700; } .theme-option-icon { display: grid; place-items: center; flex: none; } @@ -437,23 +405,12 @@ p { margin: 0 0 12px; } .foot-links { display: flex; gap: 16px; flex-wrap: wrap; } .foot a { color: var(--muted-2); } .foot a:hover { color: var(--accent); text-decoration: none; } -/* The star is an inline line icon, not a text glyph. The footer keeps the - compact label and the full sentence in title/aria; the About card keeps the - full label on the existing button. */ -.star-link { gap: 6px; } -.star-link .star-icon, .star-btn .star-icon { color: var(--muted-2); transition: color 0.15s ease, transform 0.15s ease; } -.star-link:hover .star-icon, .star-btn:hover .star-icon { color: var(--warn); transform: rotate(-12deg) scale(1.1); } .hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); gap: 44px 56px; align-items: start; padding: 76px 0 56px; } .hero-copy { grid-column: 1; grid-row: 1; max-width: 720px; } -.hero-copy h1 { font-family: var(--display); font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 24px; } +.hero-copy h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 24px; } .lede { color: var(--lede-ink); font-size: 18px; line-height: 1.8; max-width: 660px; } -.eyebrow { - display: flex; align-items: center; gap: 8px; - color: var(--muted-2); font: 600 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; - letter-spacing: 0; margin-bottom: 12px; -} -.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--line-strong); flex: none; } +.eyebrow { color: var(--accent); font: 700 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; } .actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 0; } .hero-note { grid-column: 1; grid-row: 2; max-width: 720px; } .hero-note .fine { margin: 0; } @@ -467,7 +424,7 @@ p { margin: 0 0 12px; } .loop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); - font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; color: var(--muted-2); + font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); } .loop-tag { color: var(--good); } .loop-steps { list-style: none; margin: 0; padding: 6px 18px; } @@ -478,41 +435,19 @@ p { margin: 0 0 12px; } .loop-step small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.55; } .loop-foot { padding: 12px 18px; border-top: 1px solid var(--line); - font: 600 9.5px/1.4 var(--mono); letter-spacing: 0.1em; color: var(--good); + font: 600 9.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--good); } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; } .grid3 .card { position: relative; margin-bottom: 0; padding: 22px; overflow: hidden; } -.feature-num { display: block; margin-bottom: 16px; color: var(--accent); font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; } +.feature-num { display: block; margin-bottom: 16px; color: var(--accent); font: 600 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; } .grid3 h3 { font-size: 16px; } .grid3 p { color: var(--muted); font-size: 14px; margin: 0; } .cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin: 16px 0; } .card { - background: transparent; - border: 0; - border-top: 1px solid var(--line); - border-radius: 0; - padding: var(--card-pad) 0 0; - margin: 0 0 var(--section-gap); - overflow-wrap: anywhere; -} -/* The masthead already closes with a rule, so the first section does not repeat it. */ -.masthead + .card { border-top: 0; padding-top: 0; } -/* Only the current action and the genuinely grouped panels are cards in the old sense. */ -.card.action-card { background: var(--panel); - border: 1px solid var(--line-strong); - border-left: 3px solid var(--accent-strong); - border-radius: var(--radius-sm); - padding: var(--card-pad); -} -.card.action-card h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); line-height: 1.12; } -.card.notices { border-top: 1px solid var(--line); padding: 12px 0 0; } -.card.inbox, .card.chief-card, .card.provider-card, .card.feature { - background: var(--panel); - border: 1px solid var(--line); - border-radius: var(--radius-sm); - padding: var(--card-pad); + border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad); + margin-bottom: 16px; overflow-wrap: anywhere; } .table-scroll { width: 100%; overflow-x: auto; } .table-scroll::-webkit-scrollbar { height: 8px; } @@ -622,7 +557,7 @@ a.repo-status:hover { border-color: var(--accent); } .quota-card { display: flex; align-items: center; gap: 30px; justify-content: space-between; background: var(--panel); - border-color: var(--accent-a26); + border-color: rgba(123, 149, 255, 0.24); } .quota-big { font-size: 38px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; } .quota-big small { color: var(--muted); font-size: 15px; font-weight: 500; } @@ -632,9 +567,9 @@ a.repo-status:hover { border-color: var(--accent); } .banner { padding: 12px 15px; border-radius: var(--radius-md); margin-bottom: 16px; border: 1px solid var(--line); font-size: 14px; } .preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-style: dashed; } .preview-banner form { margin: 0; } -.banner.ok { background: var(--brand-a10); border-color: var(--brand-a35); } -.banner.bad { background: var(--danger-a10); border-color: var(--danger-a35); } -.banner.warn { background: var(--warn-a12); border-color: var(--warn-a32); } +.banner.ok { background: rgba(103, 232, 199, 0.08); border-color: rgba(103, 232, 199, 0.35); } +.banner.bad { background: rgba(255, 138, 138, 0.08); border-color: rgba(255, 138, 138, 0.35); } +.banner.warn { background: rgba(240, 198, 116, 0.1); border-color: rgba(240, 198, 116, 0.32); } /* 472: one stack for every page message, ordered by severity where the message is built. A dismissed message keeps its node and its announcement; `hidden` is the only thing that changes, so nothing is cut off mid-read. */ @@ -661,14 +596,14 @@ th { } td { padding: 12px 10px; border-bottom: 1px solid var(--row-line); vertical-align: middle; } tr:last-child td { border-bottom: none; } -tbody tr:hover td { background: var(--accent-a05); } +tbody tr:hover td { background: rgba(123, 149, 255, 0.045); } td code { white-space: nowrap; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent-strong); color: var(--accent-ink); border: 1px solid var(--accent-strong); border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: var(--touch); min-width: var(--touch); - box-shadow: 0 6px 18px rgba(0, 0, 0, 0.30); + box-shadow: 0 6px 18px rgba(76, 102, 245, 0.16); transition: background 0.15s, border-color 0.15s, transform 0.15s; } .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; transform: translateY(-1px); } @@ -678,9 +613,9 @@ td code { white-space: nowrap; } .link[aria-disabled="true"] { opacity: 0.45; pointer-events: none; cursor: not-allowed; text-decoration: none; } input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; } .btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; } -.btn-ghost:hover { border-color: var(--accent); background: var(--accent-a10); } -.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger-a40); box-shadow: none; } -.btn-danger:hover { background: var(--danger-a10); border-color: var(--danger-a58); } +.btn-ghost:hover { border-color: var(--accent); background: rgba(123, 149, 255, 0.08); } +.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 138, 138, 0.4); box-shadow: none; } +.btn-danger:hover { background: rgba(255, 138, 138, 0.08); border-color: rgba(255, 138, 138, 0.6); } .link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; } .link:hover { text-decoration: underline; } .link.bad { color: var(--danger); } @@ -737,7 +672,7 @@ input, textarea, select { border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s; } -input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-a16); } +input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123, 149, 255, 0.14); } /* A forced-colours theme paints no box-shadow and forces border-color to a system colour, so the ring above leaves a focused field with no indicator. This block repeats the same selectors after it: at equal specificity the @@ -770,14 +705,14 @@ textarea { resize: vertical; min-height: 70px; } .text-right { text-align: right; } .w-90 { width: 90px; } -.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--line); border-radius: var(--radius-xs); font-size: 12px; font-weight: 650; letter-spacing: 0; background: var(--badge-bg); color: var(--badge-ink); white-space: nowrap; } -.badge.good { background: var(--brand-a14); color: var(--good); } -.badge.bad { background: var(--danger-a14); color: var(--danger); } -.badge.busy { background: var(--warn-a14); color: var(--warn); } -.badge.kind { background: var(--accent-a10); color: var(--accent); font-weight: 650; } -.pill { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: var(--radius-xs); font-size: 12px; font-weight: 650; background: var(--accent-a12); color: var(--accent); border: 1px solid var(--accent-a26); white-space: nowrap; } -.pill-warn { background: var(--warn-a14); color: var(--warn); border-color: var(--warn-a28); } -.pill-danger { background: var(--danger-a14); color: var(--danger); border-color: var(--danger-a26); } +.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; background: var(--badge-bg); color: var(--badge-ink); white-space: nowrap; } +.badge.good { background: rgba(103, 232, 199, 0.12); color: var(--good); } +.badge.bad { background: rgba(255, 138, 138, 0.12); color: var(--danger); } +.badge.busy { background: rgba(240, 198, 116, 0.12); color: var(--warn); } +.badge.kind { background: rgba(123, 149, 255, 0.1); color: var(--accent); font-weight: 650; } +.pill { display: inline-block; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 750; background: rgba(123, 149, 255, 0.12); color: var(--accent); border: 1px solid rgba(123, 149, 255, 0.25); white-space: nowrap; } +.pill-warn { background: rgba(240, 198, 116, 0.12); color: var(--warn); border-color: rgba(240, 198, 116, 0.25); } +.pill-danger { background: rgba(255, 138, 138, 0.12); color: var(--danger); border-color: rgba(255, 138, 138, 0.25); } .nowrap { white-space: nowrap; } .count { margin-left: 7px; color: var(--muted-2); font-size: 12px; font-weight: 600; } @@ -842,7 +777,7 @@ textarea { resize: vertical; min-height: 70px; } .flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; } .flow-step { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px; background: var(--surface-sunken); } -.flow-step span { display: block; color: var(--accent); font: 10px var(--mono); letter-spacing: 0.08em; } +.flow-step span { display: block; color: var(--accent); font: 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; } .flow-step b { display: block; margin: 4px 0; font-size: 14px; } .flow-step small { color: var(--muted); font-size: 12px; line-height: 1.45; } .agreement { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 17px; background: var(--surface-sunken); margin: 16px 0; max-height: 400px; overflow: auto; } @@ -855,7 +790,7 @@ textarea { resize: vertical; min-height: 70px; } summaries, so the first screen is a decision instead of a wall of equal cards. Both keep the tokens: no new colour, radius or size scale. */ #next-action { - border-color: var(--accent-a34); + border-color: rgba(123, 149, 255, 0.34); background: var(--panel); } #next-action h2 { margin-bottom: var(--space-2); } @@ -885,27 +820,6 @@ textarea { resize: vertical; min-height: 70px; } } .secondary-body > .quota-card { flex-wrap: wrap; gap: var(--space-3); } .workspace-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 28px 0 24px; } -/* The dashboard masthead: one large statement, a compact data line, and the loop. */ -.masthead { - display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); - gap: 28px 48px; align-items: end; - padding: 44px 0 28px; border-bottom: 1px solid var(--line); - margin-bottom: var(--section-gap); -} -.masthead-copy h1 { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: 0.98; margin: 0 0 14px; } -.masthead-copy .lede { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 56ch; margin: 0; } -.masthead-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; } -.masthead-meta b { color: var(--text); font-weight: 650; } -.loop-rail { border-top: 1px solid var(--line-strong); padding-top: 8px; } -.loop-rail .loop-step { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 12px; } -.loop-rail .loop-step:last-child { border-bottom: 0; } -.loop-rail .loop-step .dot { width: 7px; height: 7px; border: 1px solid var(--line-strong); border-radius: 50%; } -.loop-rail .loop-step[data-state="done"] .dot { background: var(--accent); border-color: var(--accent); } -.loop-rail .loop-step[data-state="current"] { color: var(--text); } -.loop-rail .loop-step[data-state="current"] .dot { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-a12); } -.loop-rail .loop-step .step-label { font-weight: 650; } -.loop-rail .loop-step .step-note { color: var(--muted-2); text-align: right; } -@media (max-width: 760px) { .masthead { grid-template-columns: 1fr; padding-top: 28px; } } .workspace-intro { max-width: 760px; } .workspace-user { display: flex; align-items: center; gap: 16px; } .workspace-avatar { @@ -914,7 +828,7 @@ textarea { resize: vertical; min-height: 70px; } } .workspace-avatar-fallback { display: grid; place-items: center; font-size: 22px; font-weight: 800; - color: var(--accent); background: var(--accent-a12); + color: var(--accent); background: rgba(123, 149, 255, 0.12); } .workspace-user h1 { font-size: 32px; margin: 2px 0 4px; letter-spacing: -0.045em; } .workspace-meta { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-2); font-size: 13px; } @@ -923,12 +837,12 @@ textarea { resize: vertical; min-height: 70px; } .workspace-actions { display: flex; gap: 9px; flex-wrap: wrap; } .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; } .stat { - display: block; padding: 16px 0 18px; border: 0; border-top: 1px solid var(--line); border-radius: 0; - background: transparent; + display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); + background: var(--panel); color: var(--text); - transition: border-color 0.16s; + transition: border-color 0.16s, transform 0.16s; } -.stat:hover { border-color: var(--line-strong); text-decoration: none; } +.stat:hover { border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; } .stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; } .stat strong { display: block; margin: 8px 0 2px; font-size: 32px; line-height: 1.05; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; } .stat small { color: var(--muted-2); font-size: 12px; } @@ -962,9 +876,9 @@ textarea { resize: vertical; min-height: 70px; } .state-loading { border-color: var(--line-strong); } .state-loading .state-icon { color: var(--accent); } .state-empty { border-style: dashed; } -.state-error { border-color: var(--danger-a35); background: var(--danger-a08); } +.state-error { border-color: rgba(255, 138, 138, 0.35); background: rgba(255, 138, 138, 0.06); } .state-error strong { color: var(--danger); } -.state-success { border-color: var(--brand-a35); background: var(--brand-a08); } +.state-success { border-color: rgba(103, 232, 199, 0.35); background: rgba(103, 232, 199, 0.06); } .state-success strong { color: var(--good); } .state-disabled { opacity: 0.75; } .state-disabled strong { color: var(--muted); } @@ -984,7 +898,7 @@ textarea { resize: vertical; min-height: 70px; } .team-role { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-sunken); } .team-role b { display: block; font-size: 14px; } .team-role span { display: block; margin-top: 3px; color: var(--muted-2); font-size: 12px; } -.team-role.is-thinking { border-color: var(--accent-a42); } +.team-role.is-thinking { border-color: rgba(184, 243, 74, 0.42); } .team-role.is-thinking b { color: var(--accent); } .team-role.is-disabled { opacity: 0.55; } .team-role .team-calls { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10.5px; } @@ -1104,7 +1018,7 @@ a.list-row:hover strong { color: var(--accent); } } body { font-size: 15px; } h1 { font-size: clamp(28px, 9vw, 38px); } - .hero-copy h1 { font-family: var(--display); font-size: clamp(38px, 11vw, 54px); } + .hero-copy h1 { font-size: clamp(38px, 11vw, 54px); } .hero { padding: 40px 0 32px; } .lede { font-size: 16.5px; } .flow { grid-template-columns: 1fr 1fr; } @@ -1167,7 +1081,7 @@ a.list-row:hover strong { color: var(--accent); } .job-table tr:last-child, .table-cards tr:last-child { border-bottom: none; } .job-table td, .table-cards td { display: block; padding: 0; border-bottom: 0; vertical-align: top; min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; } .job-table td + td, .table-cards td + td { margin-top: 8px; } - .job-table td::before, .table-cards td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted-2); font-weight: 650; font-size: 10.5px; letter-spacing: 0.09em; } + .job-table td::before, .table-cards td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted-2); font-weight: 650; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; } .job-table td:not([data-label])::before, .table-cards td:not([data-label])::before { display: none; } .job-table .job-cell, .job-table .job-summary { min-width: 0; max-width: none; } @@ -1247,9 +1161,7 @@ a.list-row:hover strong { color: var(--accent); } .repos-head { align-items: center; gap: 12px; margin-bottom: 12px; } .repos-head h2 { margin: 0; } -.add-repo-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(80vh, 720px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 22px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); } -.feedback-dialog { width: min(560px, calc(100vw - 32px)); } -.feedback-dialog .dialog-head .link { font-size: 20px; line-height: 1; } +.add-repo-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(80vh, 720px); overflow: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 22px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); } .add-repo-dialog::backdrop { background: rgba(0, 0, 0, 0.62); } .add-repo-dialog .dialog-head { position: sticky; top: 0; z-index: 1; align-items: center; background: var(--panel); padding-bottom: 8px; } .add-repo-dialog .dialog-head h2 { margin: 0; } @@ -1299,7 +1211,7 @@ html:not([data-js]) .info-tip:hover::after, html:not([data-js]) .info-tip:focus: gap: 8px; } #danger { - border-color: var(--danger-a35); + border-color: rgba(240, 116, 116, 0.35); background: var(--panel); } .inbox[hidden] { @@ -1414,15 +1326,3 @@ html:lang(zh) .stat strong { letter-spacing: 0; line-height: 1.15; } .admin-module strong { grid-column: 1; font-size: var(--text-md); } .admin-module small { grid-column: 1; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; } .admin-module-go { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--accent); font-size: var(--text-sm); font-weight: 650; } - -@media (max-width: 640px) { - input, textarea, select { font-size: 16px; } -} -@media (prefers-reduced-motion: reduce) { - *, *::before, *::after { - animation-duration: 0.01ms !important; - animation-iteration-count: 1 !important; - transition-duration: 0.01ms !important; - scroll-behavior: auto !important; - } -} diff --git a/mock/console.html b/mock/console.html index 1169a656..9692a0d0 100644 --- a/mock/console.html +++ b/mock/console.html @@ -4,10 +4,10 @@ - - + + 工作区 · Fledge - + @@ -124,35 +124,10 @@

FlyBot 在等你回答 0

文档 Portal 平台状态 - 反馈 - 加星 + 反馈 + ★ 在 GitHub 上加星 -

请确认

diff --git a/mock/dashboard.html b/mock/dashboard.html index 8b4dc62f..95bcb25a 100644 --- a/mock/dashboard.html +++ b/mock/dashboard.html @@ -4,10 +4,10 @@ - - + + 仓库 · Fledge - + @@ -48,18 +48,15 @@ -
-
+
+
+
仓库

仓库

-

接入仓库、写下一个目标;团队每次只交回一个 PR,由你审核并合并。

-
2 个仓库2 个任务3 个未完成工作项
+

接入仓库、设置迭代目标,并查看最近任务。

-

通知

平台额度剩余 ¥50.00;首次运行可能不够用时,建议配置自己的模型。2026-11-15 12:00:00 UTC
PR #742 等待合并2026-11-15 12:00:00 UTC
-
+
下一步

PR 已打开 48 小时

这是唯一需要你处理的事项。

@@ -236,35 +233,10 @@

添加仓库

文档 Portal 平台状态 - 反馈 - 加星 + 反馈 + ★ 在 GitHub 上加星 -

请确认

diff --git a/mock/job.html b/mock/job.html index da10b8af..b9297a58 100644 --- a/mock/job.html +++ b/mock/job.html @@ -4,10 +4,10 @@ - - + + 任务 job_mock_failed · Fledge - + @@ -140,7 +140,6 @@

结果

-

—

@@ -180,35 +179,10 @@

时间线

文档 Portal 平台状态 - 反馈 - 加星 + 反馈 + ★ 在 GitHub 上加星 -

请确认

diff --git a/mock/repository-demo.html b/mock/repository-demo.html index 233a8b1b..62964489 100644 --- a/mock/repository-demo.html +++ b/mock/repository-demo.html @@ -4,10 +4,10 @@ - - + + HugoXK/demo-app · Fledge - + @@ -352,35 +352,10 @@

危险操作

文档 Portal 平台状态 - 反馈 - 加星 + 反馈 + ★ 在 GitHub 上加星 -

请确认

diff --git a/mock/repository.html b/mock/repository.html index 78b8d2bb..fbb387e6 100644 --- a/mock/repository.html +++ b/mock/repository.html @@ -4,10 +4,10 @@ - - + + HugoXK/fledge · Fledge - + @@ -160,7 +160,7 @@

给这个仓库打版本标签

待处理 PR

合并前会重新检查 PR 状态、checks、commit status、reviews 和 branch protection。

-
任务状态PR / Issue摘要
@@ -208,28 +208,28 @@

工作项

- - + + - + - - + + - + @@ -384,10 +384,35 @@

危险操作

文档Portal平台状态 - 反馈 - ★ 在 GitHub 上加星 + 反馈 + 加星 +

请确认

diff --git a/mock/schedule-console.html b/mock/schedule-console.html index 1a101565..2864c6a4 100644 --- a/mock/schedule-console.html +++ b/mock/schedule-console.html @@ -4,10 +4,10 @@ - - + + 排期控制台 · Fledge - + @@ -63,6 +63,7 @@
宽限
不限(默认)
每日运行上限
不限(默认) · 今天已运行 0 次
+ 从当前时刻开始一次,不改动下次运行。

编辑排期

排期是五字段 cron 或固定间隔,二选一;cron 需要 IANA 时区。开始/结束时间要带偏移。

@@ -104,10 +105,35 @@ 文档 Portal 平台状态 - 反馈 - ★ 在 GitHub 上加星 + 反馈 + 加星 +

请确认

diff --git a/mock/schedule-preview.html b/mock/schedule-preview.html index 9c4c1868..7db89371 100644 --- a/mock/schedule-preview.html +++ b/mock/schedule-preview.html @@ -4,10 +4,10 @@ - - + + 排期预览 · Fledge - + @@ -74,10 +74,35 @@ 文档 Portal 平台状态 - 反馈 - ★ 在 GitHub 上加星 + 反馈 + 加星 +

请确认

diff --git a/mock/settings.html b/mock/settings.html index 36ffa475..ed6ee187 100644 --- a/mock/settings.html +++ b/mock/settings.html @@ -4,10 +4,10 @@ - - + + 设置 · Fledge - + @@ -158,7 +158,7 @@

API token

-
`).join('') const workflowFailuresCard = `
-
${escapeHtml(t('默认分支失败', 'DEFAULT-BRANCH FAILURES'))}

${escapeHtml(t('失败的运行', 'Failed workflow runs'))}

${escapeHtml(t('默认分支上失败的运行记录在这里;PR 运行仍由 PR 跟进处理。本版会读取失败 job 的日志,先脱敏再保存一个有长度上限的摘录;不重跑、不建 issue,日志读失败也会保留记录并写明原因。', 'Failed runs on the default branch are recorded here; pull-request runs stay with the PR follow-up. This slice reads the failed job log, redacts it before storing a bounded excerpt, and reruns nothing and opens no issue; a failed log read keeps the record and names the reason.'))}

${escapeHtml(t(`${workflowFailures.length} 条记录`, `${workflowFailures.length} recorded`))}
+
${escapeHtml(t('默认分支失败', 'Default-branch failures'))}

${escapeHtml(t('失败的运行', 'Failed workflow runs'))}

${escapeHtml(t('默认分支上失败的运行记录在这里;PR 运行仍由 PR 跟进处理。本版会读取失败 job 的日志,先脱敏再保存一个有长度上限的摘录;不重跑、不建 issue,日志读失败也会保留记录并写明原因。', 'Failed runs on the default branch are recorded here; pull-request runs stay with the PR follow-up. This slice reads the failed job log, redacts it before storing a bounded excerpt, and reruns nothing and opens no issue; a failed log read keeps the record and names the reason.'))}

${escapeHtml(t(`${workflowFailures.length} 条记录`, `${workflowFailures.length} recorded`))}
${workflowFailures.length === 0 ? `

${escapeHtml(t('还没有记录到默认分支失败。', 'No default-branch failure has been recorded yet.'))}

` : `
工作项状态优先级Issue / PR任务操作
Give the schedule facts a real console layout
Replace the browser-default definition list.
PR 已就绪
验证
Audit the schedule console after the planner change
Check the row-vs-interval answer on the page, dashboard and digest.
已分诊
范围
2PRIssue —
操作
-
-
+ +
Audit the schedule console after the planner change
Check the row-vs-interval answer on the page, dashboard and digest.
已分诊
范围
Give the schedule facts a real console layout
Replace the browser-default definition list.
PR 已就绪
验证
2IssuePR —
操作
- -
+
+
Make the digest print the scheduled next run
Use the same next-run choice as the repository page.
${escapeHtml(humanTimeShort(row.created_at))}
${workflowFailureRows}
${escapeHtml(t('工作流', 'Workflow'))}${escapeHtml(t('分支 / 事件', 'Branch / event'))}${escapeHtml(t('状态', 'Status'))}${escapeHtml(t('原因', 'Reason'))}${escapeHtml(t('日志', 'Log'))}${escapeHtml(t('记录时间', 'Recorded'))}
`} ` const postmortemCard = `
-
${escapeHtml(t('故障复盘', 'INCIDENTS'))}

${escapeHtml(t('未关闭的复盘', 'Open postmortems'))}

${escapeHtml(t('每个失败、停滞或取消的任务有一条复盘;同一复发键只保留一个计数,并在第二次出现时升级一次。缺少证据时标记为未核实,不猜原因。', 'One postmortem per failed, stalled or cancelled job; one recurrence key counts the same cause and escalates once on its second sighting. Missing evidence is unverified, never a guessed cause.'))}

${escapeHtml(t(`${openPostmortems.length} 个未关闭`, `${openPostmortems.length} open`))}
+
${escapeHtml(t('故障复盘', 'Incidents'))}

${escapeHtml(t('未关闭的复盘', 'Open postmortems'))}

${escapeHtml(t('每个失败、停滞或取消的任务有一条复盘;同一复发键只保留一个计数,并在第二次出现时升级一次。缺少证据时标记为未核实,不猜原因。', 'One postmortem per failed, stalled or cancelled job; one recurrence key counts the same cause and escalates once on its second sighting. Missing evidence is unverified, never a guessed cause.'))}

${escapeHtml(t(`${openPostmortems.length} 个未关闭`, `${openPostmortems.length} open`))}
${openPostmortems.length === 0 ? `

${escapeHtml(t('没有未关闭的复盘。', 'No open postmortems.'))}

` : `
${postmortemRows}
${escapeHtml(t('任务', 'Job'))}${escapeHtml(t('分类', 'Category'))}${escapeHtml(t('疑似原因', 'Suspected cause'))}${escapeHtml(t('复发', 'Recurrence'))}${escapeHtml(t('首次 / 最近', 'First / last'))}${escapeHtml(t('预防措施', 'Preventive action'))}
`}
` const reviewTrendCard = reviewTrend === undefined ? '' : `
-
${escapeHtml(t('审核质量', 'REVIEW QUALITY'))}

${escapeHtml(t('审核趋势', 'Review trend'))}

${escapeHtml(t('只统计这个仓库已完成的审核。空窗口显示 —;少于 5 个审核标注为小样本;要求修改率的分母是记录了结果的审核,不是全部审核。', 'Completed reviews for this repository only. An empty window shows —; fewer than 5 reviews is labelled a small sample; the changes-requested rate is over reviews that recorded an outcome, not all reviews.'))}

+
${escapeHtml(t('审核质量', 'Review quality'))}

${escapeHtml(t('审核趋势', 'Review trend'))}

${escapeHtml(t('只统计这个仓库已完成的审核。空窗口显示 —;少于 5 个审核标注为小样本;要求修改率的分母是记录了结果的审核,不是全部审核。', 'Completed reviews for this repository only. An empty window shows —; fewer than 5 reviews is labelled a small sample; the changes-requested rate is over reviews that recorded an outcome, not all reviews.'))}

${reviewTrendRows}
${escapeHtml(t('窗口', 'Window'))}${escapeHtml(t('审核数', 'Reviews'))}${escapeHtml(t('平均分', 'Average score'))}${escapeHtml(t('要求修改率', 'Changes requested'))}${escapeHtml(t('PR→审核', 'PR→review'))}${escapeHtml(t('PR→合并', 'PR→merge'))}${escapeHtml(t('模型', 'Model'))}
${reviewTrendEmpty === '' ? '' : `

${reviewTrendEmpty}

`}
` @@ -1499,7 +1528,7 @@ export function repoPage(input: { config: Config; locale: Locale; viewer: Viewer const repoHeader = `
-
${escapeHtml(t('仓库', 'REPOSITORY'))}
+
${escapeHtml(t('仓库', 'Repository'))}

${escapeHtml(upstreamOwner)}/${escapeHtml(upstreamName)}

${escapeHtml(t('目标分支', 'Target branch'))} ${escapeHtml(targetBranch)}${targetBranch === defaultBranch ? '' : ` · ${escapeHtml(t('默认分支', 'Default branch'))} ${escapeHtml(defaultBranch)}`}

@@ -1543,7 +1572,7 @@ export function repoPage(input: { config: Config; locale: Locale; viewer: Viewer
` const triageCard = `
-
${escapeHtml(t('分诊', 'TRIAGE'))}
+
${escapeHtml(t('分诊', 'Triage'))}

${escapeHtml(t('分诊这个仓库', 'Triage this repository'))}

${escapeHtml(t('读出开着的 issue 和 PR,按优先级排序、标出重复项,并点名下一项。只读:不开分支,也不开 PR。', 'Reads the open issues and pull requests, ranks them by priority, links duplicates and names the next item. Read-only: no branch and no pull request.'))}

${triageForm} @@ -1551,7 +1580,7 @@ export function repoPage(input: { config: Config; locale: Locale; viewer: Viewer const instanceCard = `
-
${escapeHtml(t('每仓库 FlyBot', 'PER-REPOSITORY FLYBOT'))}
+
${escapeHtml(t('每仓库 FlyBot', 'Per-repository FlyBot'))}

${escapeHtml(advanced ? t('实例与团队', 'Instance & team') : t('FlyBot 状态', 'FlyBot status'))}

${escapeHtml(instanceHealthStatus)} · ${escapeHtml(instanceHealthReason)}

${escapeHtml(t('最近检查', 'Last health check'))} ${escapeHtml(instanceLastHealth)}${advanced && instance !== undefined ? ` · ${escapeHtml(instance.container)}` : ''}${instanceReady && advanced ? ` · ${escapeHtml(t('任务先发给总控,再由负责人执行', 'jobs go to the Chief, then the Lead'))}` : ''}

@@ -1593,7 +1622,7 @@ export function repoPage(input: { config: Config; locale: Locale; viewer: Viewer } const roleCard = roleMissing ? `
-
${escapeHtml(t('你的角色', 'YOUR ROLE'))}
+
${escapeHtml(t('你的角色', 'Your role'))}

${escapeHtml(t('选择你在这个仓库的角色', 'Choose your role for this repository'))}

${escapeHtml(t('角色来自你在这个 GitHub 仓库的权限,Fledge 不会自动替你选择。未选择前不会启动定时或手动任务。', 'The role comes from your permission on this GitHub repository; Fledge will not choose it for you. Scheduled and manual jobs stay paused until you choose.'))}

@@ -1896,7 +1925,7 @@ export function repoPage(input: { config: Config; locale: Locale; viewer: Viewer
` const releases = input.releases ?? [] const releaseCard = `
-
${escapeHtml(t('发布', 'RELEASE'))}
+
${escapeHtml(t('发布', 'Release'))}

${escapeHtml(t('给这个仓库打版本标签', 'Tag a release'))}

${escapeHtml(t('版本由你输入,Fledge 只做校验:没有新提交、版本不高于上一个标签、标签已存在、缺门禁或不是标签触发的 release.yml,都会拒绝。标签只会新建,永不移动或删除。', 'You enter the version; Fledge only checks it: nothing new to release, not higher than the previous tag, an existing tag, a missing gate or a release.yml not triggered by tags are all refused. A tag is only created — never moved or deleted.'))}

${escapeHtml(t('先看发布就绪状态(只读)', 'Check release readiness first (read-only)'))} · ${escapeHtml(t('上一个标签、自那以来的提交与合并 PR、待发布片段,以及不能发布的原因。', 'The previous tag, the commits and merged pull requests since it, the pending fragments, and the reason a release would not go ahead.'))}

@@ -2079,7 +2108,7 @@ export function teamPage(input: { const body = `
-
${escapeHtml(t('团队', 'TEAM'))}
+
${escapeHtml(t('团队', 'Team'))}

${escapeHtml(repo.owner)}/${escapeHtml(repo.name)}

${instance === undefined ? escapeHtml(t('未创建实例', 'No instance')) : `${badge(t, instance.status)} ${escapeHtml(instance.container)}`} · ${escapeHtml(t('返回仓库', 'Back to repository'))}

@@ -2199,7 +2228,7 @@ export function settingsPage(input: { ${escapeHtml(t('反馈', 'Feedback'))}
-
${escapeHtml(t('账户', 'ACCOUNT'))}
+
${escapeHtml(t('账户', 'Account'))}

@${escapeHtml(user.login)}

${escapeHtml(user.email === null || user.email === '' ? t('未公开邮箱', 'No public email') : maskEmail(user.email))} · ${escapeHtml(t('加入于', 'Joined'))} ${escapeHtml(humanTimeShort(user.created_at))} · ${escapeHtml(t('平台额度', 'Platform quota'))} ${quota.unlimited ? escapeHtml(t('不限额', 'Unlimited')) : `${quotaMoney(quota.remainingCny)} / ${money(quota.initialCny)}`}

${user.github_token_enc !== null ? `

${escapeHtml(t('登录时保存了一个默认 GitHub token;添加仓库时仍以仓库表单里的 token 为准。', 'A default GitHub token was saved at sign-in; the token in the repository form still takes precedence.'))}

` : ''} @@ -2329,7 +2358,7 @@ export function settingsPage(input: {
-
${escapeHtml(t('反馈', 'FEEDBACK'))}
+
${escapeHtml(t('反馈', 'Feedback'))}

${escapeHtml(t('反馈给开发者', 'Send feedback'))}

${escapeHtml(t('遇到问题、想要一个功能,或者发现异常?这里会保存一条记录并邮件通知开发者。', 'Found a problem, want a feature, or saw something unexpected? This stores a record and mails the maintainer.'))}

@@ -2361,15 +2390,7 @@ export function settingsPage(input: { }).join('')}
`}
- -
-
${escapeHtml(t('关于', 'ABOUT'))}
-

${escapeHtml(t('关于 Fledge', 'About Fledge'))}

-

${escapeHtml(t('Fledge 是开源的自托管平台;如果它对你的仓库有帮助,可以在 GitHub 上加星支持。', 'Fledge is an open-source, self-hosted platform. If it helps your repositories, a star on GitHub supports it.'))}

- -
` +` return layout({ title: t('设置', 'Settings'), viewer, body, config, locale, path: '/settings', active: 'settings', notice, error }) } @@ -2806,7 +2827,7 @@ export function adminPage(input: { ${escapeHtml(backupShort)}${escapeHtml(t('备份', 'Backups'))}
` const body = `${stopBanner}
-
${escapeHtml(t('管理', 'ADMIN'))}
+
${escapeHtml(t('管理', 'Admin'))}

${escapeHtml(t('管理控制台', 'Admin console'))}

${escapeHtml(t(`申请邮件发往 ${config.mail.adminEmail};这里的操作会写审计日志。`, `Applications are mailed to ${config.mail.adminEmail}; actions here are written to the audit log.`))} · ${escapeHtml(t('当前身份:', 'Role: '))}${escapeHtml(roleLabel(t, viewer.user.role))}

${superadmin ? `${csrf(viewer)}` : ''} @@ -2860,7 +2881,7 @@ export function approvalPage(input: { config: Config; locale: Locale; user: User const t = translator(locale) const verb = action === 'approve' ? t('批准', 'Approve') : t('拒绝', 'Reject') const body = `
-
${escapeHtml(t('申请审批', 'APPLICATION REVIEW'))}
+
${escapeHtml(t('申请审批', 'Application review'))}

${escapeHtml(t(`${verb} @${user.login} 的申请?`, `${verb} @${user.login}'s application?`))}

${escapeHtml(user.name ?? '')} · ${escapeHtml(user.email ?? t('未公开邮箱', 'No public email'))} · GitHub

${escapeHtml(t(`申请时间 ${humanTimeShort(user.created_at)}。这个链接只能使用一次。`, `Applied ${humanTimeShort(user.created_at)}. This link can be used once.`))}

@@ -2908,7 +2929,7 @@ export function applyPage(input: { config: Config; locale: Locale; viewer: Viewe const t = translator(locale) const agreements = agreementContent(locale) const body = `
-
${escapeHtml(t('访问申请', 'ACCESS REQUEST'))}
+
${escapeHtml(t('访问申请', 'Access request'))}

${escapeHtml(t('申请访问', 'Request access'))}

${escapeHtml(t(`@${viewer.user.login},你的 GitHub 身份已确认。提交前请阅读并签署下面的两份文件;提交后不能重复提交,可以在状态页查看排队位置和审批结果。`, `@${viewer.user.login}, your GitHub identity is confirmed. Read and sign the two documents below before submitting. After submitting you cannot apply again; the status page shows your queue position and the decision.`))}

${escapeHtml(t('此申请只覆盖 Fledge;FlyBot、Bot Social 和 ScienceDiscovery 需要各自授权。', 'This application covers Fledge only; FlyBot, Bot Social and ScienceDiscovery each require their own authorization.'))}

@@ -2964,7 +2985,7 @@ export function applicationStatusPage(input: { }) } const body = `
-
${escapeHtml(rejected ? t('申请已结束', 'APPLICATION CLOSED') : t('等待审批', 'WAITING FOR APPROVAL'))}
+
${escapeHtml(rejected ? t('申请已结束', 'Application closed') : t('等待审批', 'Waiting for approval'))}

${escapeHtml(rejected ? t('申请未通过', 'Application not approved') : t('申请已提交,正在排队', 'Application submitted; you are in the queue'))}

${escapeHtml(t(`@${viewer.user.login},${rejected ? '这次申请没有通过。如果情况有变化,请联系管理员;不要重复提交。' : '管理员审批后会发邮件通知,本页每 10 秒自动刷新。不要重复提交申请。'}`, `@${viewer.user.login}, ${rejected ? 'this application was not approved. If your situation changes, contact the administrator; do not submit again.' : 'you will receive email after the administrator reviews it. This page refreshes every 10 seconds. Do not submit again.'}`))}

${escapeHtml(t('Fledge 的审批只覆盖 Fledge;FlyBot、Bot Social 和 ScienceDiscovery 需要各自的授权。', 'Fledge approval covers Fledge only; FlyBot, Bot Social and ScienceDiscovery each require their own authorization.'))}

@@ -2976,7 +2997,7 @@ export function applicationStatusPage(input: {
-
${escapeHtml(t('排队位置', 'QUEUE POSITION'))}
+
${escapeHtml(t('排队位置', 'Queue position'))}
${escapeHtml(queue)} / ${total} ${escapeHtml(t('待审批', 'pending'))}

${escapeHtml(t('提交时间', 'Submitted'))} ${escapeHtml(humanTimeShort(submitted))} · ${escapeHtml(t('签署', 'Signed'))} ${escapeHtml(viewer.user.disclaimer_name ?? '—')}

@@ -3045,7 +3066,7 @@ export function workspacePage(input: {
${avatar}
-
${escapeHtml(t('工作区', 'WORKSPACE'))}
+
${escapeHtml(t('工作区', 'Workspace'))}

@${escapeHtml(viewer.user.login)}

${badge(t, viewer.user.status)} · ${escapeHtml(t('加入于', 'Joined'))} ${escapeHtml(humanTimeShort(viewer.user.created_at))}

@@ -3375,7 +3396,7 @@ export function jobPage(input: { : '' const postmortemCard = postmortem === null ? '' : `
-
${escapeHtml(t('故障复盘', 'INCIDENT'))}

${escapeHtml(t('复盘', 'Postmortem'))}

${escapeHtml(postmortem.evidence_state === 'verified' ? t('证据来自这个任务的错误、心跳、阶段和实例状态。', 'Evidence comes from this job’s error, heartbeat, stage and instance state.') : t('没有可用的证据:原因保持未核实,不做猜测。', 'No usable evidence: the cause stays unverified and is not guessed.'))}

+
${escapeHtml(t('故障复盘', 'Incident'))}

${escapeHtml(t('复盘', 'Postmortem'))}

${escapeHtml(postmortem.evidence_state === 'verified' ? t('证据来自这个任务的错误、心跳、阶段和实例状态。', 'Evidence comes from this job’s error, heartbeat, stage and instance state.') : t('没有可用的证据:原因保持未核实,不做猜测。', 'No usable evidence: the cause stays unverified and is not guessed.'))}

${escapeHtml(postmortem.status === 'closed' ? t('已关闭', 'Closed') : t('未关闭', 'Open'))}
@@ -3487,7 +3508,7 @@ export function jobPage(input: { const body = `
-
${escapeHtml(t('任务', 'JOB'))}
+
${escapeHtml(t('任务', 'Job'))}

${escapeHtml(job.id)}

${escapeHtml(repo.upstream_owner || repo.owner)}/${escapeHtml(repo.upstream_name || repo.name)} · ${badge(t, job.status)} · ${escapeHtml(jobKindLabel(t, job))} · ${escapeHtml(triggerLabel(t, job.trigger))} · ${escapeHtml(t('目标分支', 'Base branch'))} ${escapeHtml(job.base_branch ?? (repo.target_branch !== '' ? repo.target_branch : (repo.upstream_default_branch || repo.default_branch)))}${job.base_sha === null ? '' : ` · ${escapeHtml(t('基于', 'Based on'))} ${escapeHtml(job.base_sha.slice(0, 12))}`}${job.last_callback_at === null ? '' : ` · ${escapeHtml(t('最后心跳', 'Last heartbeat'))} ${escapeHtml(humanTimeShort(job.last_callback_at))}`}${temporalLine(job) === '' ? '' : ` · ${escapeHtml(temporalLine(job))}`}

@@ -3641,7 +3662,7 @@ export function metricsPage(input: { const body = `
-
${escapeHtml(t('产品指标', 'PRODUCT METRICS'))}
+
${escapeHtml(t('产品指标', 'Product metrics'))}

${escapeHtml(t('漏斗与留存', 'Funnel & retention'))}

${escapeHtml(t(`最近 ${windowDays} 天,从 ${since} 开始;只读,不会修改数据。`, `Last ${windowDays} days starting ${since}; read-only.`))}

@@ -3826,7 +3847,7 @@ export function agentWorkspacePage(input: { const body = `
-
${escapeHtml(t('工作区', 'WORKSPACE'))}
+
${escapeHtml(t('工作区', 'Workspace'))}

${escapeHtml(repo.upstream_owner || repo.owner)}/${escapeHtml(repo.upstream_name || repo.name)}

${instance === undefined ? escapeHtml(t('实例未创建', 'Instance not created')) : `${badge(t, instance.status)} · ${escapeHtml(instance.container)}`} · ${escapeHtml(t('返回仓库', 'Back to repository'))}${advanced ? ` · ${escapeHtml(t('团队工作台', 'Team console'))}` : ''}

@@ -3974,7 +3995,7 @@ export function adminTrialsPage(input: { const body = `
-
${escapeHtml(t('预览试用', 'PREVIEW TRIALS'))}
+
${escapeHtml(t('预览试用', 'Preview trials'))}

${escapeHtml(t('预览试用', 'Preview trials'))}

${escapeHtml(t('只读:显示注册天数、是否已用、豁免和到期。发信和停用由 #265 的清扫负责。', 'Read-only: registration age, use, exemptions and expiry. The sweep in #265 owns mail and revoking.'))}

@@ -4086,7 +4107,7 @@ export function adminDeploymentsPage(input: {
PR状态核实审核分成本创建
#742成功未核实
Not verified yet: neither the path guard nor the evidence verification has run.
88¥3.022026-11-13 12:00:00 UTC
+
PR状态核实审核分成本创建
#742成功未核实
Not verified yet: neither the path guard nor the evidence verification has run.
88¥3.022026-11-13 12:00:00 UTC

任务

任务状态PR / Issue摘要
@@ -208,28 +208,28 @@

工作项

- - + + - + - - + + - + @@ -384,35 +384,10 @@

危险操作

文档Portal平台状态 - 反馈 - 加星 + 反馈 + ★ 在 GitHub 上加星 -

请确认

diff --git a/mock/schedule-console.html b/mock/schedule-console.html index 2864c6a4..1a101565 100644 --- a/mock/schedule-console.html +++ b/mock/schedule-console.html @@ -4,10 +4,10 @@ - - + + 排期控制台 · Fledge - + @@ -63,7 +63,6 @@
宽限
不限(默认)
每日运行上限
不限(默认) · 今天已运行 0 次
- 从当前时刻开始一次,不改动下次运行。

编辑排期

排期是五字段 cron 或固定间隔,二选一;cron 需要 IANA 时区。开始/结束时间要带偏移。

@@ -105,35 +104,10 @@ 文档 Portal 平台状态 - 反馈 - 加星 + 反馈 + ★ 在 GitHub 上加星 -

请确认

diff --git a/mock/schedule-preview.html b/mock/schedule-preview.html index 7db89371..9c4c1868 100644 --- a/mock/schedule-preview.html +++ b/mock/schedule-preview.html @@ -4,10 +4,10 @@ - - + + 排期预览 · Fledge - + @@ -74,35 +74,10 @@ 文档 Portal 平台状态 - 反馈 - 加星 + 反馈 + ★ 在 GitHub 上加星 -

请确认

diff --git a/mock/settings.html b/mock/settings.html index ed6ee187..36ffa475 100644 --- a/mock/settings.html +++ b/mock/settings.html @@ -4,10 +4,10 @@ - - + + 设置 · Fledge - + @@ -158,7 +158,7 @@

API token

-
工作项状态优先级Issue / PR任务操作
Audit the schedule console after the planner change
Check the row-vs-interval answer on the page, dashboard and digest.
已分诊
范围
Give the schedule facts a real console layout
Replace the browser-default definition list.
PR 已就绪
验证
2IssuePR —
操作
- -
+
+
Give the schedule facts a real console layout
Replace the browser-default definition list.
PR 已就绪
验证
Audit the schedule console after the planner change
Check the row-vs-interval answer on the page, dashboard and digest.
已分诊
范围
2PRIssue —
操作
-
-
+ +
Make the digest print the scheduled next run
Use the same next-run choice as the repository page.