mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
5d334d7ec8
A third scope, home, next to trip and journey: threads that name neither a trip nor a journey (the CHECK now only forbids both), reached under /api/assistant by their owner only. A home turn reads the user's trips through list_trips into a short card (under way, next, later, behind, undated), offers every read (a trip's on the id the model names, checked by the tool with the user's rights) and only the writes that take no trip or journey (atlas, vacation planner, collections, tour library, settings), all held as change cards. open_trip_chat answers with a card that goes on in that trip's own chat with the question waiting in its composer. On the desktop the window opens on the home chat outside a trip; its head lists the trips to switch into and a switched trip chat has the way back. On the phone the home chat opens full screen from the dashboard head and the dock's More list, and the card opens the trip with its chat. Both run on useAssistantHome.
28 lines
1.4 KiB
TypeScript
28 lines
1.4 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const assistantHome: TranslationStrings = {
|
|
'assistant.home.title': 'Dina resor',
|
|
'assistant.home.welcome': 'Vad kan jag hjälpa till med?',
|
|
'assistant.home.placeholder': 'Fråga vad som helst om dina resor',
|
|
'assistant.home.switch': 'Chatta om en resa',
|
|
'assistant.home.back': 'Tillbaka till alla resor',
|
|
'assistant.suggest.homeNext': 'Vilken resa är nästa, och vad återstår?',
|
|
'assistant.suggest.homeCompare': 'Jämför mina kommande resor',
|
|
'assistant.suggest.homeAtlas': 'Hur många länder har jag besökt?',
|
|
'assistant.suggest.homeVacay': 'Hur många semesterdagar har jag kvar i år?',
|
|
'assistant.card.tripChat.label': 'Fortsätt i en resas chatt',
|
|
'assistant.card.tripChat.eyebrow': 'Resechatt',
|
|
'assistant.card.tripChat.dates': '{start} till {end}',
|
|
'assistant.card.tripChat.noDates': 'Inga datum ännu',
|
|
'assistant.card.tripChat.question': 'Fråga att ställa där',
|
|
'assistant.card.tripChat.open': 'Fortsätt i den här resans chatt',
|
|
'assistant.card.tripChat.phase.now': 'Pågår',
|
|
'assistant.card.tripChat.phase.next': 'Nästa',
|
|
'assistant.card.tripChat.phase.upcoming': 'Snart',
|
|
'assistant.card.tripChat.phase.past': 'Bakom dig',
|
|
'assistant.step.readingTrips': 'Tittar på dina resor',
|
|
'assistant.step.openTripChat': 'Letar upp resan',
|
|
};
|
|
|
|
export default assistantHome;
|