refactor: rename workspace branding and update project overview
This commit is contained in:
@@ -548,7 +548,7 @@ export function HomePage() {
|
||||
))}
|
||||
</section>
|
||||
<Link to="/deck" className="home-deck-link">
|
||||
Explore in Twitter Lite
|
||||
Explore in Research
|
||||
<ArrowUpRight className="size-4" />
|
||||
</Link>
|
||||
</aside>
|
||||
|
||||
@@ -148,7 +148,7 @@ describe('home natural-language proposals', () => {
|
||||
['連絡を開いて', '/support'],
|
||||
['記録', '/journal'],
|
||||
['リーダーを開く', '/inbox'],
|
||||
['Twitter Liteに移動', '/deck'],
|
||||
['Researchに移動', '/deck'],
|
||||
])('recognizes navigation: %s', (input, to) => {
|
||||
expect(interpretAction(input, tasks, contacts)).toMatchObject({
|
||||
action: { type: 'navigate', to },
|
||||
|
||||
@@ -38,13 +38,13 @@ export function interpretAction(
|
||||
return { error: 'Please review this action in the relevant screen.' }
|
||||
text = text
|
||||
.replace(
|
||||
/^open (messages|journal|reader|twitter lite|deck)$/i,
|
||||
/^open (messages|journal|reader|research|deck)$/i,
|
||||
(_, name: string) =>
|
||||
({
|
||||
messages: '連絡',
|
||||
journal: '記録',
|
||||
reader: 'リーダー',
|
||||
'twitter lite': 'Twitter Lite',
|
||||
research: 'Research',
|
||||
deck: 'デッキ',
|
||||
})[name.toLowerCase()] ?? name,
|
||||
)
|
||||
@@ -83,7 +83,7 @@ export function interpretAction(
|
||||
連絡: '/support',
|
||||
記録: '/journal',
|
||||
リーダー: '/inbox',
|
||||
'Twitter Lite': '/deck',
|
||||
Research: '/deck',
|
||||
デッキ: '/deck',
|
||||
}
|
||||
const destination = text.replace(/(?:を開いて|を開く|に移動)$/, '')
|
||||
@@ -93,7 +93,7 @@ export function interpretAction(
|
||||
if (route)
|
||||
return {
|
||||
action: { type: 'navigate', to: route },
|
||||
label: `Open ${{ '/support': 'Messages', '/journal': 'Journal', '/inbox': 'Reader', '/deck': 'Twitter Lite' }[route]}`,
|
||||
label: `Open ${{ '/support': 'Messages', '/journal': 'Journal', '/inbox': 'Reader', '/deck': 'Research' }[route]}`,
|
||||
}
|
||||
|
||||
const note = text.match(/^(メモ|再開地点)[::\s]+(.+)$/s)
|
||||
|
||||
Reference in New Issue
Block a user