Extract Grammaratur, Dregarnuhr, Geduldh, Mestionora, Ordoschnellic, Schutzaria, Kunstzeal and Seheweit behind compatible application contracts. Include accumulated editor resilience, navigation and theme UX, remote CLI, storage/schema and DR groundwork, tests and design/operations documentation. Verified: uncached full Go suite; go vet ./...; race tests for all eight components; 11 targeted Chromium tests; Node suites; 19 Python CLI tests; reproducible editor build. No push, release tag or deployment in this checkpoint.
29 lines
653 B
Go
29 lines
653 B
Go
package store
|
|
|
|
import "pageswiki/internal/mestionora"
|
|
|
|
func IsUnclassifiedCitySpot(name, boundary string) bool {
|
|
return mestionora.IsUnclassifiedCitySpot(name, boundary)
|
|
}
|
|
|
|
func CitySpotDisplayTitle(name, title, boundary, parentTitle string) string {
|
|
return mestionora.CitySpotDisplayTitle(name, title, boundary, parentTitle)
|
|
}
|
|
|
|
func (n CityNodeDetail) DisplayTitle() string {
|
|
if n.Kind == "spot" {
|
|
parent := ""
|
|
if n.Street != nil {
|
|
parent = n.Street.Title
|
|
if parent == "" {
|
|
parent = n.Street.Name
|
|
}
|
|
}
|
|
return CitySpotDisplayTitle(n.Name, n.Title, n.PathPrefix, parent)
|
|
}
|
|
if n.Title != "" {
|
|
return n.Title
|
|
}
|
|
return n.Name
|
|
}
|