Repository navigation
Restore the v0.2 approval card style for every card - #178
Merged
Merged
Conversation
Every approval card is again the v0.2 read card: the app icon, one bold sentence that names the requester and the object, one short line under it, a Details link, the buttons and a small footer. Write and organize cards use the same layout with their own titles, subtitles and buttons; the items, tags, instruction diff, group change, organize steps, value view, requester note and stated purpose move behind Details, which scrolls inside the 640-point cap so the buttons stay visible. A cancelled authentication keeps the same buttons in the same order and adds one gray line, so the default never becomes the 30-minute option. Irreversible actions (replacing or removing values, merging groups) are red and never the default. The Pending requests list says the same sentence as the card title. Card code and strings that became unused are removed; the per-component value digests are unchanged. Closes #177
Expanding Details can grow a card from about 300 to 640 points from its top, which pushed the buttons below a 768-point screen. The panel now moves up just enough to stay inside the screen's visible frame and stays where it is when it fits.
Details mixed two layouts and three text sizes, repeated the subtitle in an "After you approve" paragraph, and cut lines off at the bottom. Every card now lists fixed rows with a fixed-width label column and 12-point values: the requester and purpose (both not verified), then per card the command, directory, what is handed over and the timed scope; the new items, instructions and value; the changed items with their tags, the instruction diff, the group change and the value; the deleted items; or each organize step. Nothing repeats the title or subtitle. When Details scroll, the hidden edge fades and the scroll bar stays visible. The write-card section views, item headings, byte counts and the approval consequences they showed are removed with their strings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #177
Summary
Expires in m:ss · Esc to decide laterfooter. Titles, subtitles and buttons follow the Restore the v0.2 approval card style for every card #177 table in both languages, with “ ” quotes in both.Staging API → environment variable X), and the timed scope.name · how it is given to programs), instructions, and the value with Authenticate to View.Removed:line (only if changed), the groupA → B(only if changed), and the value when new values exist.AppDelegate+Approval.swift, display only).Diff stat
git diff --stat origin/main: 27 files changed, 1685 insertions(+), 1887 deletions(-).Sources/AskKeyAppKit/App/, including the newApprovalDetailsContent.swiftandApprovalDetailsView.swift, the removedFrozenWriteApprovalContent.swift,FrozenOrganizationApprovalContent.swiftrenamed toFrozenOrganizationSummaryContent.swift, and the panel clamp inAppDelegate+Approval.swift. AlsoPendingRequestPresentation.swiftandLocalizable.xcstrings: 66 keys removed, 56 added, and 2 Chinese values changed back to v0.2 (允许 %lld 分钟,%@ 后失效).ScreenshotE2ETests.swift.AskKeyBrokerorAskKeyVault.Tests
swift buildpassed. Onf01ce7a:127 run, 0 failed, 0 skipped. Per suite, compared with the tests main declares:
What the tests cover:
testEveryCardShowsItsTitleSubtitleAndButtonsInBothLanguagescovers 16 cards, every row of the Restore the v0.2 approval card style for every card #177 table, in English and Simplified Chinese.ApprovalDetailsContentTestsasserts the Details labels and values of every card type in both languages. It also checks that no row repeats the title or subtitle, that there is noAfter you approverow, and that the label column is the same for every card.Renders: I rendered every card offscreen, collapsed and expanded, in Chinese and English, with the real app icon from a built
AskKeyApp.app, and checked each one for mixed sizes, truncation and repetition. The collapsed Chinese read card stays pixel-identical to425e29e(checked in the previous round; collapsed cards are unchanged in this one).Checks
python3 scripts/check_hygiene.py: passed (size=0, test-support=0, debug=0, local-path=0, non-ascii-name=0, multica=0, cjk=0).python3 scripts/check_module_deps.py: passed.AppDelegate+Approval.swift, 332; the largest card file isFrozenAgentApprovalPrompt.swift, 195).f01ce7a(run 37945177683):build-and-testpassed: 1106 tests, 3 skipped, 0 failures.basic-ui-flowspassed: 15 required flows with 0 failures. All 5ScreenshotE2ETestspassed and all 17 screenshots were exported. Screenshot 13 shows the read Details and screenshot 17 the organize steps scrolled inside the cap.8b2b198, where the optional screenshot step failed because expanded cards pushed the buttons off screen (fixed inec3209c); and 37940449353 onec3209c, all green.Deviations and questions
AppDelegate+Approval.swiftis outside the original Scope. The planner approved the panel clamp through Orca and updated Restore the v0.2 approval card style for every card #177's Scope.旧值将无法找回.Staging API → environment variable X). A multi-item credential stays unnamed until approval.“A” → “B” (new group).CHANGELOG.md(0.3.0) still describes the Make agent approval cards readable at a glance #175 cards. It is outside this issue's Scope, so I left it unchanged; it needs a decision before Build, notarize and publish v0.3.0 #169.