mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
Polish the PR, minor improvements
This commit is contained in:
parent
7a97fcd5f1
commit
4930a24d07
6 changed files with 42 additions and 28 deletions
|
|
@ -10,6 +10,7 @@ import { SessionService, getGitBranch } from '@qwen-code/qwen-code-core';
|
|||
import { theme } from '../semantic-colors.js';
|
||||
import { useSessionPicker } from '../hooks/useStandaloneSessionPicker.js';
|
||||
import { SessionListItemView } from './SessionListItem.js';
|
||||
import { t } from '../../i18n/index.js';
|
||||
|
||||
// Exported for testing
|
||||
export interface SessionPickerProps {
|
||||
|
|
@ -109,7 +110,7 @@ export function SessionPicker({
|
|||
{/* Header row */}
|
||||
<Box paddingX={1}>
|
||||
<Text bold color={theme.text.primary}>
|
||||
Resume Session
|
||||
{t('Resume Session')}
|
||||
</Text>
|
||||
</Box>
|
||||
|
||||
|
|
@ -126,8 +127,10 @@ export function SessionPicker({
|
|||
<Box paddingY={1} justifyContent="center">
|
||||
<Text color={theme.text.secondary}>
|
||||
{picker.filterByBranch
|
||||
? `No sessions found for branch "${currentBranch}"`
|
||||
: 'No sessions found'}
|
||||
? t('No sessions found for branch "{{branch}}"', {
|
||||
branch: currentBranch ?? '',
|
||||
})
|
||||
: t('No sessions found')}
|
||||
</Text>
|
||||
</Box>
|
||||
) : (
|
||||
|
|
@ -169,10 +172,10 @@ export function SessionPicker({
|
|||
>
|
||||
B
|
||||
</Text>
|
||||
{' to toggle branch · '}
|
||||
{t(' to toggle branch') + ' · '}
|
||||
</>
|
||||
)}
|
||||
{'↑↓ to navigate · Esc to cancel'}
|
||||
{t('to navigate · Esc to cancel')}
|
||||
</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue