Skip to content

refactor: redesign the options UI#19

Merged
rrbe merged 10 commits into
mainfrom
feat/options-header-redesign
May 10, 2026
Merged

refactor: redesign the options UI#19
rrbe merged 10 commits into
mainfrom
feat/options-header-redesign

Conversation

@rrbe
Copy link
Copy Markdown
Owner

@rrbe rrbe commented May 10, 2026

Summary

  • 在 options 弹窗顶部新增 brand row:扩展图标 + "Better GitHub" + 绿色 "It's open sourced!" 链接(包含 GitHub 图标),整体作为指向仓库的链接
  • 将原表单标题 "Better GitHub Settings" 简化为 "Settings"
  • 移除原先 Settings 标题右侧的独立 GitHub 图标(已并入顶部 brand link)
  • 收紧顶部间距,让弹窗顶部不再显得空旷

Test plan

  • `pnpm build` 通过
  • 加载 `dist/` 后打开扩展 options 弹窗:顶部出现 brand row,绿字 + GH 图标可点击跳转到 repo
  • "Settings" 表单及其下方的 token 输入、Features 折叠组、footer 显示正常
  • 弹窗顶部不再有大段空白

rrbe and others added 10 commits May 10, 2026 22:10
Add a top brand row showing the extension icon, name, and a green
"It's open sourced!" link wrapping the GitHub icon. Rename the form
heading from "Better GitHub Settings" to "Settings" and tighten the
top spacing so the popup feels less hollow.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Chrome's popup chrome already shows "Better GitHub" at the top, so
fold the Settings heading into the brand row alongside the icon
instead of stacking another row below.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Split the token hint into two paths joined by "Or": classic with the
repo scope, and fine-grained with Contents/Pull requests/Metadata
permissions. Each has its own deep link to the correct GitHub page.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Drop the brand-row bottom border so Settings sits flush with the form
- Move Save button right below the input, push hints below the button
- Replace inline code permission tags with a bullet list under each
  token type for a calmer scan

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Wrap the Save button and status text in a flex row so the success or
failure message appears beside the button instead of pushing the rest
of the page down. Also wire up an error branch using
chrome.runtime.lastError so save failures are surfaced in red.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Switch body to box-sizing: border-box so width/height describe the
popup's outer dimensions instead of being inflated by padding (popup
no longer grows to 544px). Drop body padding-bottom and put the
breathing room on .footer's margin-bottom — Chrome reliably renders
last-child margin in a scroll container, unlike the parent's
padding-bottom which can be eaten when the content overflows.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drop box-sizing: border-box on body — that was shrinking the popup
from 392px to 360px wide and causing the left-shifted layout. Move
the bottom breathing room from .footer's margin-bottom to a body::after
pseudo so it renders reliably as the last scrollable element when
content overflows.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replace the bullet-list hint block with two option cards (classic /
fine-grained) separated by a hairline OR divider. Each card has a
clickable header link and a label-value grid for required scopes /
permissions, with hover states that lift the border to GitHub blue.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rrbe rrbe changed the title feat(options): add brand row with open-source link refactor: redesign the options UI May 10, 2026
@rrbe rrbe merged commit 8c97f5c into main May 10, 2026
@rrbe rrbe deleted the feat/options-header-redesign branch May 10, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant