@@ -3,67 +3,61 @@ const LABEL_SIGN_OUT = "Sign Out"
33const LABEL_UNLINK = "Unlink"
44const LABEL_SETUP = "Set up FastAPI Cloud"
55
6- // Status bar text constants
7- export const STATUS_BAR_DEFAULT = "$(cloud) FastAPI Cloud"
8- export const STATUS_BAR_SIGN_IN = "$(cloud) Sign into FastAPI Cloud"
9- export const STATUS_BAR_SETUP = `$(cloud) ${ LABEL_SETUP } `
10- export const STATUS_BAR_WARNING = "$(warning) FastAPI Cloud"
11-
12- // Button labels
13- export const BTN_SIGN_OUT = LABEL_SIGN_OUT
14- export const BTN_UNLINK = LABEL_UNLINK
15-
16- // Auth command messages
17- export const MSG_SIGN_OUT_CONFIRM = "Sign out of FastAPI Cloud?"
18-
19- // Project command messages
20- export const MSG_NO_WORKSPACE = "No workspace folder open"
21- export const MSG_LINKED = ( appSlug : string ) => `Linked to ${ appSlug } `
22- export const MSG_UNLINK_CONFIRM = ( label : string ) =>
23- `Unlink "${ label } " from this project?`
24-
25- // Picker placeholders
26- export const PICKER_SELECT_WORKSPACE_LINK = "Select workspace folder to link"
27- export const PICKER_SELECT_WORKSPACE_UNLINK =
28- "Select workspace folder to unlink"
29- export const PICKER_SELECT_TEAM = "Select a team"
30- export const PICKER_SELECT_APP = "Select an app"
31-
32- // Controller messages
33- export const MSG_APP_NOT_FOUND =
34- "This project is linked to a FastAPI Cloud app that could not be found. Unlink it, then link to the correct app."
35-
36- // Menu messages and labels
37- export const MENU_PLACEHOLDER_SETUP = LABEL_SETUP
38- export const MENU_PLACEHOLDER_MORE = "More options"
39- export const MENU_LINK_EXISTING = "$(link) Link Existing App"
40- export const MENU_LINK_EXISTING_DESC = "Connect to an app on FastAPI Cloud"
41- export const MENU_CREATE_NEW = "$(add) Create New App"
42- export const MENU_CREATE_NEW_DESC = "Create a new app and link it"
43- export const MENU_OPEN_APP = "$(globe) Open App"
44- export const MENU_DASHBOARD = "$(link-external) Dashboard"
45- export const MENU_MORE = "$(ellipsis) More"
46- export const MENU_UNLINK_PROJECT = `$(trash) ${ LABEL_UNLINK } Project`
47- export const MENU_UNLINK_PROJECT_DESC = "Disconnect from FastAPI Cloud app"
48- export const MENU_SIGN_OUT = `$(sign-out) ${ LABEL_SIGN_OUT } `
49- export const MENU_SIGN_OUT_DESC = "Sign out of FastAPI Cloud"
50-
51- // Picker error messages
52- export const ERR_NOT_AUTHENTICATED = "Please sign in to FastAPI Cloud first."
53- export const ERR_FETCH_TEAMS =
54- "Failed to fetch teams. Please check your connection."
55- export const ERR_NO_TEAMS =
56- "No teams found. Please create a team on FastAPI Cloud first."
57- export const ERR_FETCH_APPS =
58- "Failed to fetch apps. Please check your connection."
59- export const ERR_NO_APPS =
60- "No apps found for this team. Please create an app on FastAPI Cloud first."
61- export const ERR_CREATE_APP = ( error : string ) =>
62- `Failed to create app: ${ error } `
63-
64- // Picker input prompts and validation
65- export const PROMPT_ENTER_APP_NAME = "Enter app name"
66- export const ERR_NAME_TOO_SHORT = "Name must be at least 2 characters."
67- export const ERR_NAME_INVALID =
68- "Name can only contain lowercase letters, numbers, and hyphens."
69- export const MSG_APP_CREATED = ( appSlug : string ) => `Created app: ${ appSlug } `
6+ export const StatusBar = {
7+ DEFAULT : "$(cloud) FastAPI Cloud" ,
8+ SIGN_IN : "$(cloud) Sign into FastAPI Cloud" ,
9+ SETUP : `$(cloud) ${ LABEL_SETUP } ` ,
10+ WARNING : "$(warning) FastAPI Cloud" ,
11+ } as const
12+
13+ export const Button = {
14+ SIGN_OUT : LABEL_SIGN_OUT ,
15+ UNLINK : LABEL_UNLINK ,
16+ } as const
17+
18+ export const Auth = {
19+ MSG_SIGN_OUT_CONFIRM : "Sign out of FastAPI Cloud?" ,
20+ } as const
21+
22+ export const Project = {
23+ MSG_NO_WORKSPACE : "No workspace folder open" ,
24+ MSG_LINKED : ( appSlug : string ) => `Linked to ${ appSlug } ` ,
25+ MSG_UNLINK_CONFIRM : ( label : string ) => `Unlink "${ label } " from this project?` ,
26+ MSG_APP_NOT_FOUND :
27+ "This project is linked to a FastAPI Cloud app that could not be found. Unlink it, then link to the correct app." ,
28+ } as const
29+
30+ export const Picker = {
31+ SELECT_WORKSPACE_LINK : "Select workspace folder to link" ,
32+ SELECT_WORKSPACE_UNLINK : "Select workspace folder to unlink" ,
33+ SELECT_TEAM : "Select a team" ,
34+ SELECT_APP : "Select an app" ,
35+ PROMPT_ENTER_APP_NAME : "Enter app name" ,
36+ ERR_NOT_AUTHENTICATED : "Please sign in to FastAPI Cloud first." ,
37+ ERR_FETCH_TEAMS : "Failed to fetch teams. Please check your connection." ,
38+ ERR_NO_TEAMS : "No teams found. Please create a team on FastAPI Cloud first." ,
39+ ERR_FETCH_APPS : "Failed to fetch apps. Please check your connection." ,
40+ ERR_NO_APPS :
41+ "No apps found for this team. Please create an app on FastAPI Cloud first." ,
42+ ERR_CREATE_APP : ( error : string ) => `Failed to create app: ${ error } ` ,
43+ ERR_NAME_TOO_SHORT : "Name must be at least 2 characters." ,
44+ ERR_NAME_INVALID :
45+ "Name can only contain lowercase letters, numbers, and hyphens." ,
46+ MSG_APP_CREATED : ( appSlug : string ) => `Created app: ${ appSlug } ` ,
47+ } as const
48+
49+ export const Menu = {
50+ PLACEHOLDER_SETUP : LABEL_SETUP ,
51+ PLACEHOLDER_MORE : "More options" ,
52+ LINK_EXISTING : "$(link) Link Existing App" ,
53+ LINK_EXISTING_DESC : "Connect to an app on FastAPI Cloud" ,
54+ CREATE_NEW : "$(add) Create New App" ,
55+ CREATE_NEW_DESC : "Create a new app and link it" ,
56+ OPEN_APP : "$(globe) Open App" ,
57+ DASHBOARD : "$(link-external) Dashboard" ,
58+ MORE : "$(ellipsis) More" ,
59+ UNLINK_PROJECT : `$(trash) ${ LABEL_UNLINK } Project` ,
60+ UNLINK_PROJECT_DESC : "Disconnect from FastAPI Cloud app" ,
61+ SIGN_OUT : `$(sign-out) ${ LABEL_SIGN_OUT } ` ,
62+ SIGN_OUT_DESC : "Sign out of FastAPI Cloud" ,
63+ } as const
0 commit comments