Hide context rings without live snapshots
This commit is contained in:
@@ -65,11 +65,11 @@ public class WechatSurfaceMapperConversationStatusTest {
|
||||
assertEquals("上下文稳定", row.contextStatusLabel);
|
||||
assertEquals("safe", row.contextStatusLevel);
|
||||
assertEquals(0, row.contextUsagePercent);
|
||||
assertEquals(true, row.contextIndicatorVisible);
|
||||
assertEquals(false, row.contextIndicatorVisible);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toConversationRow_usesSafeContextDefaultsWhenIndicatorMissing() {
|
||||
public void toConversationRow_hidesContextIndicatorWhenIndicatorMissing() {
|
||||
JSONObject item = new StubJSONObject()
|
||||
.withString("threadTitle", "北区试产线回归")
|
||||
.withInt("activityIconCount", 0);
|
||||
@@ -79,7 +79,7 @@ public class WechatSurfaceMapperConversationStatusTest {
|
||||
assertEquals("上下文稳定", row.contextStatusLabel);
|
||||
assertEquals("safe", row.contextStatusLevel);
|
||||
assertEquals(0, row.contextUsagePercent);
|
||||
assertEquals(true, row.contextIndicatorVisible);
|
||||
assertEquals(false, row.contextIndicatorVisible);
|
||||
}
|
||||
|
||||
private static final class StubJSONObject extends JSONObject {
|
||||
|
||||
Reference in New Issue
Block a user