Add honeycomb completion heatmap and dev API environment
- Add HoneycombSummaryView component with colored hexagon grid - Display completion summary on residence detail screen - Add CompletionSummary model to KMP shared layer - Add DEV/PROD environment split in ApiConfig - Fix ResidenceResponse initializers for completionSummary parameter Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3,9 +3,10 @@ package com.tt.honeyDue.network
|
||||
/**
|
||||
* API Environment Configuration
|
||||
*
|
||||
* To switch between localhost and dev server, simply change the CURRENT_ENV value:
|
||||
* To switch environments, simply change the CURRENT_ENV value:
|
||||
* - Environment.LOCAL for local development
|
||||
* - Environment.DEV for remote dev server
|
||||
* - Environment.DEV for remote dev/staging server
|
||||
* - Environment.PROD for production server
|
||||
*/
|
||||
object ApiConfig {
|
||||
// ⚠️ CHANGE THIS TO TOGGLE ENVIRONMENT ⚠️
|
||||
@@ -13,7 +14,8 @@ object ApiConfig {
|
||||
|
||||
enum class Environment {
|
||||
LOCAL,
|
||||
DEV
|
||||
DEV,
|
||||
PROD
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -22,7 +24,8 @@ object ApiConfig {
|
||||
fun getBaseUrl(): String {
|
||||
return when (CURRENT_ENV) {
|
||||
Environment.LOCAL -> "http://${getLocalhostAddress()}:8000/api"
|
||||
Environment.DEV -> "https://api.myhoneydue.com/api"
|
||||
Environment.DEV -> "https://devapi.myhoneydue.com/api"
|
||||
Environment.PROD -> "https://api.myhoneydue.com/api"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +35,8 @@ object ApiConfig {
|
||||
fun getMediaBaseUrl(): String {
|
||||
return when (CURRENT_ENV) {
|
||||
Environment.LOCAL -> "http://${getLocalhostAddress()}:8000"
|
||||
Environment.DEV -> "https://api.myhoneydue.com"
|
||||
Environment.DEV -> "https://devapi.myhoneydue.com"
|
||||
Environment.PROD -> "https://api.myhoneydue.com"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +46,8 @@ object ApiConfig {
|
||||
fun getEnvironmentName(): String {
|
||||
return when (CURRENT_ENV) {
|
||||
Environment.LOCAL -> "Local (${getLocalhostAddress()}:8000)"
|
||||
Environment.DEV -> "Dev Server (api.myhoneydue.com)"
|
||||
Environment.DEV -> "Dev Server (devapi.myhoneydue.com)"
|
||||
Environment.PROD -> "Production (api.myhoneydue.com)"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user