refactor: rename workspace branding and update project overview
This commit is contained in:
@@ -119,7 +119,7 @@ function Workspace({
|
||||
<SidebarInset className="min-w-0 overflow-hidden">
|
||||
<header className="flex h-12 shrink-0 items-center gap-2 border-b px-3">
|
||||
<SidebarTrigger aria-label="Toggle sidebar" />
|
||||
<span className="text-sm font-medium">Twitter Lite</span>
|
||||
<span className="text-sm font-medium">Research</span>
|
||||
<span className="ml-auto text-xs text-muted-foreground">
|
||||
Research workspace
|
||||
</span>
|
||||
|
||||
@@ -64,7 +64,7 @@ export function WorkspaceNavigation({
|
||||
active: pathname === '/inbox',
|
||||
},
|
||||
{
|
||||
title: 'Twitter Lite',
|
||||
title: 'Research',
|
||||
to: '/deck',
|
||||
icon: Search,
|
||||
active: pathname === '/deck',
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -87,7 +87,7 @@ async function getApp(origin: string, database: AppDatabase, send: Send) {
|
||||
const registered = appSchema.parse(
|
||||
await (
|
||||
await formRequest(send, origin, '/api/v1/apps', {
|
||||
client_name: 'Twitter Lite',
|
||||
client_name: 'Personal Workspace',
|
||||
redirect_uris: redirectUri,
|
||||
scopes,
|
||||
})
|
||||
|
||||
@@ -19,7 +19,7 @@ export const Route = createRootRouteWithContext<RouterContext>()({
|
||||
content: 'width=device-width, initial-scale=1',
|
||||
},
|
||||
{ name: 'referrer', content: 'no-referrer' },
|
||||
{ title: 'Twitter Lite' },
|
||||
{ title: 'Personal Workspace' },
|
||||
],
|
||||
links: [
|
||||
{ rel: 'stylesheet', href: appCss },
|
||||
|
||||
Reference in New Issue
Block a user