You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "liuxiaocs7 (via GitHub)" <gi...@apache.org> on 2026/09/08 10:15:47 UTC

[PR] fix(desktop): preserve default connection badge typography [maka]

liuxiaocs7 opened a new pull request, #5024:
URL: https://github.com/apache/maka/pull/5024

   ## Summary
   
   - Keep the connection default-state badge on the same label typography as the “Set as default” action it replaces, preventing the text from shrinking after the click.
   - Reuse the action-replacement badge style for the equivalent project default state.
   - Add a Storybook interaction regression that performs the real connection-detail transition and compares the computed font size before and after it.
   
   ## Verification
   
   - `npm run lint`
   - `npm run format:check`
   - `npm run typecheck`
   - `npm run build`
   - `npx knip --workspace apps/desktop`
   - `npx knip --workspace packages/ui`
   - Storybook `ModelsDefaultBadgeTypography` interaction regression
   - Renderer production build
   
   `npm test` was also run. The affected Runtime suite passed all 3,357 tests, and a targeted Eval lifecycle rerun passed. The full run still reported unrelated baseline failures in the Storage cross-process authority test and the Runtime Host real-model terminal timing test.
   
   ## AI use
   
   Select exactly one:
   
   - [ ] No generative tool made a substantive contribution
   - [x] Generative tooling made a substantive contribution
   
   Tool(s) and scope: OpenAI Codex diagnosed and implemented the typography fix, added the regression coverage, ran verification, and prepared this pull request.
   
   ## Checklist
   
   - [x] Tests cover the change and fail without it
   - [x] Lint, format, typecheck and the affected suites pass locally
   
   Does this PR entail a change in behavior?
   
   - [x] Yes — described under Summary above
   - [ ] No
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] fix(desktop): preserve default connection badge typography [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #5024:
URL: https://github.com/apache/maka/pull/5024


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] fix(desktop): preserve default connection badge typography [maka]

Posted by "liuxiaocs7 (via GitHub)" <gi...@apache.org>.
liuxiaocs7 commented on PR #5024:
URL: https://github.com/apache/maka/pull/5024#issuecomment-5632717798

   Thanks @Astro-Han — addressed in commit `0577a934ac`.
   
   - Renamed the shared class to `settingsActionSlotBadge` and updated the connection and project call sites.
   - Applied it to both pet action-replacement states: `正在使用` and `已关闭`.
   - Added the `PetsActionBadgeTypography` Storybook interaction with a real pet fixture. It verifies the selected badge against the adjacent delete button, then disables the pet and verifies the disabled badge against the action font size.
   
   The new story reproduces the regression as 12px vs 14px without the rule and passes with the fix. Biome, Desktop typecheck, Storybook build, and all three related typography interactions pass. Please take another look when convenient.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org