diff --git a/AGENTS.md b/AGENTS.md
index 5f6d5cdab..331ac1ac1 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -136,7 +136,7 @@ Black-box service tests live in `server/api/test/`, unit tests next to the code.
- Style with Tailwind CSS v4 and the package's `mu-` utilities (`bg-mu-surface`, `text-mu-text-secondary`, `rounded-mu-md`),
text with its type classes (`mu-caption`, `mu-body`, `mu-label`, `mu-title`), and `cn()` for class merging. No Tailwind
text sizes or old color names (`muted-foreground`, `destructive`, `popover`). The exceptions are the brand wordmark and
- emoji glyphs, whose font size is their icon box (`SpaceIcon`, `SpaceMark`, `MemoViewIcon`, `CustomIconPicker`).
+ emoji glyphs, whose font size is their icon box (`SpaceIcon`, `SpaceMark`, `MemoViewIcon`, `CustomIconPicker`, `ReactionSelector`).
- Custom controls using `mu-focus` must reserve a real 1px border (transparent for borderless controls).
- Focus shows through `mu-focus`. Never add `ring-*` or `focus-visible:ring-*`, and never pair `mu-focus` with
`outline-none`, which overrides it. Visually hidden text uses `mu-visually-hidden`; a control that appears on focus keeps
diff --git a/core/configuration/apply_test.go b/core/configuration/apply_test.go
index a1e9c23bb..fe7ae30b2 100644
--- a/core/configuration/apply_test.go
+++ b/core/configuration/apply_test.go
@@ -144,7 +144,7 @@ func TestApplyRemovals(t *testing.T) {
"idp.json": `{"identityProviders":[` + validIDP + `]}`,
"settings.json": `{"instanceSettings":[
{"name":"instance/settings/ACCESS","accessSetting":{"accessMode":"INSTANCE_ACCESS_MODE_PUBLIC"}},
- {"name":"instance/settings/MEMO_RELATED","memoRelatedSetting":{"reactions":["👍"]}}]}`,
+ {"name":"instance/settings/NOTIFICATION","notificationSetting":{"email":{"fromName":"Memos"}}}]}`,
}
_, state := applyFor(t, loadDesired(t, declared), s)
require.Len(t, state.Resources, 3)
@@ -152,7 +152,7 @@ func TestApplyRemovals(t *testing.T) {
_, state = applyFor(t, loadDesired(t, map[string]string{"removed.json": `{"removed":[
{"resource":"identity-providers/sso","destroy":true},
{"resource":"instance/settings/ACCESS","destroy":true},
- {"resource":"instance/settings/MEMO_RELATED"}]}`}), s)
+ {"resource":"instance/settings/NOTIFICATION"}]}`}), s)
require.Empty(t, state.Resources)
providers, err := s.ListIdentityProviders(ctx, &store.FindIdentityProvider{})
@@ -161,9 +161,9 @@ func TestApplyRemovals(t *testing.T) {
access, err := s.GetInstanceAccessSetting(ctx)
require.NoError(t, err)
require.Equal(t, storepb.InstanceAccessMode_INSTANCE_ACCESS_MODE_PRIVATE, access.AccessMode, "a reset ACCESS is private")
- memoRelated, err := s.GetUncachedInstanceSetting(ctx, &store.FindInstanceSetting{Name: "MEMO_RELATED"})
+ notification, err := s.GetUncachedInstanceSetting(ctx, &store.FindInstanceSetting{Name: "NOTIFICATION"})
require.NoError(t, err)
- require.Equal(t, []string{"👍"}, memoRelated.GetMemoRelatedSetting().GetReactions(), "a released setting is left as it is")
+ require.Equal(t, "Memos", notification.GetNotificationSetting().GetEmail().GetFromName(), "a released setting is left as it is")
}
func TestApplyLinkedIdentities(t *testing.T) {
diff --git a/core/configuration/configuration_test.go b/core/configuration/configuration_test.go
index 9d666475e..562eafcbb 100644
--- a/core/configuration/configuration_test.go
+++ b/core/configuration/configuration_test.go
@@ -197,6 +197,7 @@ func TestLoadChecksSchema(t *testing.T) {
"basic": {`{"instanceSettings":[{"name":"instance/settings/BASIC"}]}`, "BASIC holds the instance secret"},
"tags": {`{"instanceSettings":[{"name":"instance/settings/TAGS","tagsSetting":{}}]}`, "TAGS is kept only for compatibility"},
"unknown key": {`{"instanceSettings":[{"name":"instance/settings/THEME"}]}`, "unknown instance setting"},
+ "retired reactions": {`{"instanceSettings":[{"name":"instance/settings/MEMO_RELATED"}]}`, "unknown instance setting"},
"state record": {`{"instanceSettings":[{"name":"instance/settings/CONFIGURATION_STATE"}]}`, "is the configuration state record"},
"missing value": {`{"instanceSettings":[{"name":"instance/settings/GENERAL"}]}`, "generalSetting is required for GENERAL"},
"mismatched value": {`{"instanceSettings":[{"name":"instance/settings/GENERAL","accessSetting":{}}]}`, "accessSetting does not match GENERAL; use generalSetting"},
diff --git a/core/configuration/plan.go b/core/configuration/plan.go
index 6d03c48b6..8ac3c0fdd 100644
--- a/core/configuration/plan.go
+++ b/core/configuration/plan.go
@@ -585,6 +585,14 @@ func (p *planner) planUndeclared() error {
if _, declared := p.desired.Sources[name]; declared {
continue
}
+ if name == "instance/settings/MEMO_RELATED" {
+ change := &apipb.ResourceChange{
+ Resource: name, Action: apipb.ResourceChange_RELEASE,
+ Message: "reaction configuration is retired; reactions use the full emoji picker",
+ }
+ p.changes = append(p.changes, rankedChange{rank: rankInstanceSetting, change: change, op: &operation{change: change}})
+ continue
+ }
removed := p.removed[name]
kind, id, err := ParseResourceName(name)
if err != nil {
diff --git a/core/configuration/plan_test.go b/core/configuration/plan_test.go
index 358453717..2bdd62bcb 100644
--- a/core/configuration/plan_test.go
+++ b/core/configuration/plan_test.go
@@ -243,7 +243,7 @@ func TestPlanUndeclaredManagedResources(t *testing.T) {
managed("identity-providers/vanished", "IdentityProvider"),
locked,
managed("identity-providers/forgotten", "IdentityProvider"),
- managed("instance/settings/MEMO_RELATED", "InstanceSetting"),
+ managed("instance/settings/NOTIFICATION", "InstanceSetting"),
managed("users/old", "User"),
managed("users/kept", "User"),
}}
@@ -254,7 +254,7 @@ func TestPlanUndeclaredManagedResources(t *testing.T) {
{"resource":"identity-providers/destroyed","destroy":true},
{"resource":"identity-providers/vanished","destroy":true},
{"resource":"identity-providers/locked","destroy":true},
- {"resource":"instance/settings/MEMO_RELATED","destroy":true},
+ {"resource":"instance/settings/NOTIFICATION","destroy":true},
{"resource":"users/old","destroy":true},
{"resource":"users/kept"},
{"resource":"users/never-managed","destroy":true}
@@ -265,7 +265,7 @@ func TestPlanUndeclaredManagedResources(t *testing.T) {
"identity-providers/vanished": apipb.ResourceChange_RELEASE,
"identity-providers/locked": apipb.ResourceChange_ERROR,
"identity-providers/forgotten": apipb.ResourceChange_ERROR,
- "instance/settings/MEMO_RELATED": apipb.ResourceChange_RESET,
+ "instance/settings/NOTIFICATION": apipb.ResourceChange_RESET,
"users/old": apipb.ResourceChange_ERROR,
"users/kept": apipb.ResourceChange_RELEASE,
}
@@ -281,6 +281,18 @@ func TestPlanUndeclaredManagedResources(t *testing.T) {
require.Equal(t, int64(4), result.Message.Serial)
}
+func TestPlanReleasesRetiredReactionSetting(t *testing.T) {
+ reader := newFakeReader()
+ reader.state = &storepb.InstanceConfigurationState{Resources: []*storepb.InstanceConfigurationState_ManagedResource{
+ {Name: "instance/settings/MEMO_RELATED", Kind: "InstanceSetting", ManagedFields: []string{"*"}},
+ }}
+ desired := loadDesired(t, map[string]string{"empty.json": `{}`})
+ plan := planFor(t, desired, reader)
+ require.True(t, plan.Valid())
+ require.Equal(t, apipb.ResourceChange_RELEASE, changeFor(t, plan, "instance/settings/MEMO_RELATED").Action)
+ require.Empty(t, plan.next.Resources)
+}
+
func TestPlanOrdersActions(t *testing.T) {
reader := newFakeReader()
reader.state = &storepb.InstanceConfigurationState{Resources: []*storepb.InstanceConfigurationState_ManagedResource{
diff --git a/core/configuration/schema.go b/core/configuration/schema.go
index 6ecfbe5ae..d0d6d8f71 100644
--- a/core/configuration/schema.go
+++ b/core/configuration/schema.go
@@ -27,7 +27,7 @@ const (
)
// ConfigurableInstanceSettingKeys are the instance setting keys a file may declare.
-var ConfigurableInstanceSettingKeys = []string{"ACCESS", "GENERAL", "STORAGE", "MEMO_RELATED", "NOTIFICATION", "AI", "USAGE_LIMITS"}
+var ConfigurableInstanceSettingKeys = []string{"ACCESS", "GENERAL", "STORAGE", "NOTIFICATION", "AI", "USAGE_LIMITS"}
// userFields are the User fields a file may set. The rest of a profile belongs
// to the user.
diff --git a/core/configuration/testdata/compat/unreleased/README.md b/core/configuration/testdata/compat/unreleased/README.md
new file mode 100644
index 000000000..543d5a6a8
--- /dev/null
+++ b/core/configuration/testdata/compat/unreleased/README.md
@@ -0,0 +1,5 @@
+# Unreleased configuration fixture
+
+Reactions use the full Unicode emoji picker. Configuration files must omit the retired `MEMO_RELATED` setting and
+`memoRelatedSetting` value, including references in `lifecycle` or `removed`. After those entries are removed, the next
+apply releases the old ownership record automatically. Existing memo reactions are preserved.
diff --git a/core/instancesetting/convert.go b/core/instancesetting/convert.go
index abe099029..0f146425d 100644
--- a/core/instancesetting/convert.go
+++ b/core/instancesetting/convert.go
@@ -35,10 +35,6 @@ func ToStore(setting *apipb.InstanceSetting) *storepb.InstanceSetting {
if value := setting.GetStorageSetting(); value != nil {
result.Value = &storepb.InstanceSetting_StorageSetting{StorageSetting: storageSettingToStore(value)}
}
- case storepb.InstanceSettingKey_MEMO_RELATED:
- if value := setting.GetMemoRelatedSetting(); value != nil {
- result.Value = &storepb.InstanceSetting_MemoRelatedSetting{MemoRelatedSetting: memoRelatedSettingToStore(value)}
- }
case storepb.InstanceSettingKey_TAGS:
if value := setting.GetTagsSetting(); value != nil {
result.Value = &storepb.InstanceSetting_TagsSetting{TagsSetting: tagsSettingToStore(value)}
@@ -74,8 +70,6 @@ func FromStore(setting *storepb.InstanceSetting) *apipb.InstanceSetting {
result.Value = &apipb.InstanceSetting_GeneralSetting_{GeneralSetting: generalSettingFromStore(setting.GetGeneralSetting())}
case *storepb.InstanceSetting_StorageSetting:
result.Value = &apipb.InstanceSetting_StorageSetting_{StorageSetting: storageSettingFromStore(setting.GetStorageSetting())}
- case *storepb.InstanceSetting_MemoRelatedSetting:
- result.Value = &apipb.InstanceSetting_MemoRelatedSetting_{MemoRelatedSetting: memoRelatedSettingFromStore(setting.GetMemoRelatedSetting())}
case *storepb.InstanceSetting_TagsSetting:
result.Value = &apipb.InstanceSetting_TagsSetting_{TagsSetting: tagsSettingFromStore(setting.GetTagsSetting())}
case *storepb.InstanceSetting_NotificationSetting:
@@ -312,24 +306,6 @@ func storageToStore(storage *apipb.InstanceSetting_Storage) *storepb.Storage {
return storagepb
}
-func memoRelatedSettingFromStore(setting *storepb.InstanceMemoRelatedSetting) *apipb.InstanceSetting_MemoRelatedSetting {
- if setting == nil {
- return nil
- }
- return &apipb.InstanceSetting_MemoRelatedSetting{
- Reactions: setting.Reactions,
- }
-}
-
-func memoRelatedSettingToStore(setting *apipb.InstanceSetting_MemoRelatedSetting) *storepb.InstanceMemoRelatedSetting {
- if setting == nil {
- return nil
- }
- return &storepb.InstanceMemoRelatedSetting{
- Reactions: setting.Reactions,
- }
-}
-
func tagsSettingFromStore(setting *storepb.InstanceTagsSetting) *apipb.InstanceSetting_TagsSetting {
if setting == nil {
return nil
diff --git a/core/instancesetting/convert_test.go b/core/instancesetting/convert_test.go
index 692e25cb8..da2c8ed28 100644
--- a/core/instancesetting/convert_test.go
+++ b/core/instancesetting/convert_test.go
@@ -32,9 +32,6 @@ func TestConversionRoundTrips(t *testing.T) {
},
DefaultStorageId: "s3",
}}},
- {Key: storepb.InstanceSettingKey_MEMO_RELATED, Value: &storepb.InstanceSetting_MemoRelatedSetting{MemoRelatedSetting: &storepb.InstanceMemoRelatedSetting{
- Reactions: []string{"👍", "🎉"},
- }}},
{Key: storepb.InstanceSettingKey_TAGS, Value: &storepb.InstanceSetting_TagsSetting{TagsSetting: &storepb.InstanceTagsSetting{
Tags: map[string]*storepb.InstanceTagMetadata{"work": {BackgroundColor: &colorpb.Color{Red: 1}, BlurContent: true}},
}}},
diff --git a/core/instancesetting/instancesetting.go b/core/instancesetting/instancesetting.go
index 27beb509e..0d9e0835f 100644
--- a/core/instancesetting/instancesetting.go
+++ b/core/instancesetting/instancesetting.go
@@ -55,10 +55,6 @@ func ValidateUpdate(setting, existing *storepb.InstanceSetting) error {
return errors.New("storage setting is required")
}
return validateStorageSetting(setting.GetStorageSetting(), existing.GetStorageSetting())
- case storepb.InstanceSettingKey_MEMO_RELATED:
- if setting.GetMemoRelatedSetting() == nil {
- return errors.New("memo related setting is required")
- }
case storepb.InstanceSettingKey_TAGS:
if setting.GetTagsSetting() == nil {
return errors.New("tags setting is required")
diff --git a/core/instancesetting/instancesetting_test.go b/core/instancesetting/instancesetting_test.go
index 6c00439fb..fc98fca34 100644
--- a/core/instancesetting/instancesetting_test.go
+++ b/core/instancesetting/instancesetting_test.go
@@ -14,7 +14,6 @@ func TestValidateRequiresValueMatchingKey(t *testing.T) {
for _, key := range []storepb.InstanceSettingKey{
storepb.InstanceSettingKey_GENERAL,
storepb.InstanceSettingKey_STORAGE,
- storepb.InstanceSettingKey_MEMO_RELATED,
storepb.InstanceSettingKey_TAGS,
storepb.InstanceSettingKey_NOTIFICATION,
storepb.InstanceSettingKey_AI,
@@ -22,13 +21,13 @@ func TestValidateRequiresValueMatchingKey(t *testing.T) {
storepb.InstanceSettingKey_USAGE_LIMITS,
} {
// A GENERAL value under every other key is a mismatch; under GENERAL
- // the MEMO_RELATED value is.
+ // the TAGS value is.
setting := &storepb.InstanceSetting{
Key: key,
Value: &storepb.InstanceSetting_GeneralSetting{GeneralSetting: &storepb.InstanceGeneralSetting{}},
}
if key == storepb.InstanceSettingKey_GENERAL {
- setting.Value = &storepb.InstanceSetting_MemoRelatedSetting{MemoRelatedSetting: &storepb.InstanceMemoRelatedSetting{}}
+ setting.Value = &storepb.InstanceSetting_TagsSetting{TagsSetting: &storepb.InstanceTagsSetting{}}
}
require.Error(t, Validate(setting), key.String())
}
diff --git a/docs/design/declarative-configuration.md b/docs/design/declarative-configuration.md
index 90393d2e0..1022e2f1c 100644
--- a/docs/design/declarative-configuration.md
+++ b/docs/design/declarative-configuration.md
@@ -834,3 +834,8 @@ The v0.31 deployment configuration files (`/etc/secrets/memos-idp-*.json` and `m
26.10.0 without a migration, and an instance that kept them through the upgrade gave no sign of it beyond the settings that had silently
reverted (usememos/memos#6515). Startup now logs one warning naming any such files still present, without reading them, and points at the
configuration directory. A missing `/etc/secrets` stays silent.
+
+### 2026-11-14 — Reaction picker
+
+`MEMO_RELATED` is retired. Reactions use the full Unicode emoji picker; remove this setting and its lifecycle references from
+declarative configuration files. The next apply releases its old ownership record automatically. Existing reactions are preserved.
diff --git a/proto/api/CHANGELOG.md b/proto/api/CHANGELOG.md
index bd0f90f92..c6be9278f 100644
--- a/proto/api/CHANGELOG.md
+++ b/proto/api/CHANGELOG.md
@@ -25,6 +25,14 @@ instead, and update `core/configuration/testdata/compat/` in the same change. Af
- `Memo.unassigned`: use an unset `Memo.space`. Removed in a later release.
```
+## Unreleased
+
+### Breaking
+
+- Removed `InstanceSetting.MemoRelatedSetting`, `memo_related_setting`, and the `MEMO_RELATED` key.
+ Reactions now use the full Unicode emoji picker. Configuration files declaring `instance/settings/MEMO_RELATED` or
+ `memoRelatedSetting` are rejected; remove that setting from configuration files. Stored reactions are preserved.
+
## 26.10.0
### Breaking
diff --git a/proto/api/instance_service.proto b/proto/api/instance_service.proto
index dc815b8e8..44fb5d1b3 100644
--- a/proto/api/instance_service.proto
+++ b/proto/api/instance_service.proto
@@ -135,14 +135,15 @@ message InstanceSetting {
// Format: instance/settings/{setting}
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
+ reserved 4;
+ reserved "memo_related_setting";
+
// The setting value. The set field matches the key in name.
oneof value {
// The value of the GENERAL setting.
GeneralSetting general_setting = 2;
// The value of the STORAGE setting.
StorageSetting storage_setting = 3;
- // The value of the MEMO_RELATED setting.
- MemoRelatedSetting memo_related_setting = 4;
// The value of the TAGS setting.
TagsSetting tags_setting = 5;
// The value of the NOTIFICATION setting.
@@ -162,8 +163,8 @@ message InstanceSetting {
GENERAL = 1;
// Attachment storage settings.
STORAGE = 2;
- // Memo-related settings.
- MEMO_RELATED = 3;
+ reserved 3;
+ reserved "MEMO_RELATED";
// Tag metadata.
TAGS = 4;
// Notification transport settings.
@@ -339,12 +340,6 @@ message InstanceSetting {
}
}
- // MemoRelatedSetting is the memo-related instance configuration.
- message MemoRelatedSetting {
- // The reactions users can choose from. Defaults to a built-in emoji set when empty.
- repeated string reactions = 1;
- }
-
// TagsSetting is the instance-wide tag metadata configuration.
// Active tag metadata is stored in per-user tag settings. This message remains for backward compatibility with
// existing clients and migrations.
diff --git a/proto/gen/api/instance_service.pb.go b/proto/gen/api/instance_service.pb.go
index 70ce9c76d..6f9f615b9 100644
--- a/proto/gen/api/instance_service.pb.go
+++ b/proto/gen/api/instance_service.pb.go
@@ -88,8 +88,6 @@ const (
InstanceSetting_GENERAL InstanceSetting_Key = 1
// Attachment storage settings.
InstanceSetting_STORAGE InstanceSetting_Key = 2
- // Memo-related settings.
- InstanceSetting_MEMO_RELATED InstanceSetting_Key = 3
// Tag metadata.
InstanceSetting_TAGS InstanceSetting_Key = 4
// Notification transport settings.
@@ -108,7 +106,6 @@ var (
0: "KEY_UNSPECIFIED",
1: "GENERAL",
2: "STORAGE",
- 3: "MEMO_RELATED",
4: "TAGS",
5: "NOTIFICATION",
6: "AI",
@@ -119,7 +116,6 @@ var (
"KEY_UNSPECIFIED": 0,
"GENERAL": 1,
"STORAGE": 2,
- "MEMO_RELATED": 3,
"TAGS": 4,
"NOTIFICATION": 5,
"AI": 6,
@@ -483,7 +479,6 @@ type InstanceSetting struct {
//
// *InstanceSetting_GeneralSetting_
// *InstanceSetting_StorageSetting_
- // *InstanceSetting_MemoRelatedSetting_
// *InstanceSetting_TagsSetting_
// *InstanceSetting_NotificationSetting_
// *InstanceSetting_AiSetting
@@ -556,15 +551,6 @@ func (x *InstanceSetting) GetStorageSetting() *InstanceSetting_StorageSetting {
return nil
}
-func (x *InstanceSetting) GetMemoRelatedSetting() *InstanceSetting_MemoRelatedSetting {
- if x != nil {
- if x, ok := x.Value.(*InstanceSetting_MemoRelatedSetting_); ok {
- return x.MemoRelatedSetting
- }
- }
- return nil
-}
-
func (x *InstanceSetting) GetTagsSetting() *InstanceSetting_TagsSetting {
if x != nil {
if x, ok := x.Value.(*InstanceSetting_TagsSetting_); ok {
@@ -624,11 +610,6 @@ type InstanceSetting_StorageSetting_ struct {
StorageSetting *InstanceSetting_StorageSetting `protobuf:"bytes,3,opt,name=storage_setting,json=storageSetting,proto3,oneof"`
}
-type InstanceSetting_MemoRelatedSetting_ struct {
- // The value of the MEMO_RELATED setting.
- MemoRelatedSetting *InstanceSetting_MemoRelatedSetting `protobuf:"bytes,4,opt,name=memo_related_setting,json=memoRelatedSetting,proto3,oneof"`
-}
-
type InstanceSetting_TagsSetting_ struct {
// The value of the TAGS setting.
TagsSetting *InstanceSetting_TagsSetting `protobuf:"bytes,5,opt,name=tags_setting,json=tagsSetting,proto3,oneof"`
@@ -658,8 +639,6 @@ func (*InstanceSetting_GeneralSetting_) isInstanceSetting_Value() {}
func (*InstanceSetting_StorageSetting_) isInstanceSetting_Value() {}
-func (*InstanceSetting_MemoRelatedSetting_) isInstanceSetting_Value() {}
-
func (*InstanceSetting_TagsSetting_) isInstanceSetting_Value() {}
func (*InstanceSetting_NotificationSetting_) isInstanceSetting_Value() {}
@@ -1496,52 +1475,6 @@ type InstanceSetting_Storage_S3Config_ struct {
func (*InstanceSetting_Storage_S3Config_) isInstanceSetting_Storage_Config() {}
-// MemoRelatedSetting is the memo-related instance configuration.
-type InstanceSetting_MemoRelatedSetting struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // The reactions users can choose from. Defaults to a built-in emoji set when empty.
- Reactions []string `protobuf:"bytes,1,rep,name=reactions,proto3" json:"reactions,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *InstanceSetting_MemoRelatedSetting) Reset() {
- *x = InstanceSetting_MemoRelatedSetting{}
- mi := &file_api_instance_service_proto_msgTypes[16]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *InstanceSetting_MemoRelatedSetting) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*InstanceSetting_MemoRelatedSetting) ProtoMessage() {}
-
-func (x *InstanceSetting_MemoRelatedSetting) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[16]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use InstanceSetting_MemoRelatedSetting.ProtoReflect.Descriptor instead.
-func (*InstanceSetting_MemoRelatedSetting) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 3}
-}
-
-func (x *InstanceSetting_MemoRelatedSetting) GetReactions() []string {
- if x != nil {
- return x.Reactions
- }
- return nil
-}
-
// TagsSetting is the instance-wide tag metadata configuration.
// Active tag metadata is stored in per-user tag settings. This message remains for backward compatibility with
// existing clients and migrations.
@@ -1557,7 +1490,7 @@ type InstanceSetting_TagsSetting struct {
func (x *InstanceSetting_TagsSetting) Reset() {
*x = InstanceSetting_TagsSetting{}
- mi := &file_api_instance_service_proto_msgTypes[17]
+ mi := &file_api_instance_service_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1569,7 +1502,7 @@ func (x *InstanceSetting_TagsSetting) String() string {
func (*InstanceSetting_TagsSetting) ProtoMessage() {}
func (x *InstanceSetting_TagsSetting) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[17]
+ mi := &file_api_instance_service_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1582,7 +1515,7 @@ func (x *InstanceSetting_TagsSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceSetting_TagsSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_TagsSetting) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 4}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 3}
}
func (x *InstanceSetting_TagsSetting) GetTags() map[string]*InstanceSetting_TagMetadata {
@@ -1605,7 +1538,7 @@ type InstanceSetting_TagMetadata struct {
func (x *InstanceSetting_TagMetadata) Reset() {
*x = InstanceSetting_TagMetadata{}
- mi := &file_api_instance_service_proto_msgTypes[18]
+ mi := &file_api_instance_service_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1617,7 +1550,7 @@ func (x *InstanceSetting_TagMetadata) String() string {
func (*InstanceSetting_TagMetadata) ProtoMessage() {}
func (x *InstanceSetting_TagMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[18]
+ mi := &file_api_instance_service_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1630,7 +1563,7 @@ func (x *InstanceSetting_TagMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceSetting_TagMetadata.ProtoReflect.Descriptor instead.
func (*InstanceSetting_TagMetadata) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 5}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 4}
}
func (x *InstanceSetting_TagMetadata) GetBackgroundColor() *color.Color {
@@ -1658,7 +1591,7 @@ type InstanceSetting_NotificationSetting struct {
func (x *InstanceSetting_NotificationSetting) Reset() {
*x = InstanceSetting_NotificationSetting{}
- mi := &file_api_instance_service_proto_msgTypes[19]
+ mi := &file_api_instance_service_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1670,7 +1603,7 @@ func (x *InstanceSetting_NotificationSetting) String() string {
func (*InstanceSetting_NotificationSetting) ProtoMessage() {}
func (x *InstanceSetting_NotificationSetting) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[19]
+ mi := &file_api_instance_service_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1683,7 +1616,7 @@ func (x *InstanceSetting_NotificationSetting) ProtoReflect() protoreflect.Messag
// Deprecated: Use InstanceSetting_NotificationSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_NotificationSetting) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 6}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 5}
}
func (x *InstanceSetting_NotificationSetting) GetEmail() *InstanceSetting_NotificationSetting_EmailSetting {
@@ -1708,7 +1641,7 @@ type InstanceSetting_AISetting struct {
func (x *InstanceSetting_AISetting) Reset() {
*x = InstanceSetting_AISetting{}
- mi := &file_api_instance_service_proto_msgTypes[20]
+ mi := &file_api_instance_service_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1720,7 +1653,7 @@ func (x *InstanceSetting_AISetting) String() string {
func (*InstanceSetting_AISetting) ProtoMessage() {}
func (x *InstanceSetting_AISetting) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[20]
+ mi := &file_api_instance_service_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1733,7 +1666,7 @@ func (x *InstanceSetting_AISetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceSetting_AISetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_AISetting) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 7}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 6}
}
func (x *InstanceSetting_AISetting) GetProviders() []*InstanceSetting_AIProviderConfig {
@@ -1773,7 +1706,7 @@ type InstanceSetting_AIProviderConfig struct {
func (x *InstanceSetting_AIProviderConfig) Reset() {
*x = InstanceSetting_AIProviderConfig{}
- mi := &file_api_instance_service_proto_msgTypes[21]
+ mi := &file_api_instance_service_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1785,7 +1718,7 @@ func (x *InstanceSetting_AIProviderConfig) String() string {
func (*InstanceSetting_AIProviderConfig) ProtoMessage() {}
func (x *InstanceSetting_AIProviderConfig) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[21]
+ mi := &file_api_instance_service_proto_msgTypes[20]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1798,7 +1731,7 @@ func (x *InstanceSetting_AIProviderConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceSetting_AIProviderConfig.ProtoReflect.Descriptor instead.
func (*InstanceSetting_AIProviderConfig) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 8}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 7}
}
func (x *InstanceSetting_AIProviderConfig) GetId() string {
@@ -1870,7 +1803,7 @@ type InstanceSetting_TranscriptionConfig struct {
func (x *InstanceSetting_TranscriptionConfig) Reset() {
*x = InstanceSetting_TranscriptionConfig{}
- mi := &file_api_instance_service_proto_msgTypes[22]
+ mi := &file_api_instance_service_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1882,7 +1815,7 @@ func (x *InstanceSetting_TranscriptionConfig) String() string {
func (*InstanceSetting_TranscriptionConfig) ProtoMessage() {}
func (x *InstanceSetting_TranscriptionConfig) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[22]
+ mi := &file_api_instance_service_proto_msgTypes[21]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1895,7 +1828,7 @@ func (x *InstanceSetting_TranscriptionConfig) ProtoReflect() protoreflect.Messag
// Deprecated: Use InstanceSetting_TranscriptionConfig.ProtoReflect.Descriptor instead.
func (*InstanceSetting_TranscriptionConfig) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 9}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 8}
}
func (x *InstanceSetting_TranscriptionConfig) GetProviderId() string {
@@ -1937,7 +1870,7 @@ type InstanceSetting_AccessSetting struct {
func (x *InstanceSetting_AccessSetting) Reset() {
*x = InstanceSetting_AccessSetting{}
- mi := &file_api_instance_service_proto_msgTypes[23]
+ mi := &file_api_instance_service_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1949,7 +1882,7 @@ func (x *InstanceSetting_AccessSetting) String() string {
func (*InstanceSetting_AccessSetting) ProtoMessage() {}
func (x *InstanceSetting_AccessSetting) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[23]
+ mi := &file_api_instance_service_proto_msgTypes[22]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1962,7 +1895,7 @@ func (x *InstanceSetting_AccessSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceSetting_AccessSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_AccessSetting) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 10}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 9}
}
func (x *InstanceSetting_AccessSetting) GetAccessMode() InstanceAccessMode {
@@ -1987,7 +1920,7 @@ type InstanceSetting_UsageLimitsSetting struct {
func (x *InstanceSetting_UsageLimitsSetting) Reset() {
*x = InstanceSetting_UsageLimitsSetting{}
- mi := &file_api_instance_service_proto_msgTypes[24]
+ mi := &file_api_instance_service_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1999,7 +1932,7 @@ func (x *InstanceSetting_UsageLimitsSetting) String() string {
func (*InstanceSetting_UsageLimitsSetting) ProtoMessage() {}
func (x *InstanceSetting_UsageLimitsSetting) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[24]
+ mi := &file_api_instance_service_proto_msgTypes[23]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2012,7 +1945,7 @@ func (x *InstanceSetting_UsageLimitsSetting) ProtoReflect() protoreflect.Message
// Deprecated: Use InstanceSetting_UsageLimitsSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_UsageLimitsSetting) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 11}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 10}
}
func (x *InstanceSetting_UsageLimitsSetting) GetLimits() []*InstanceSetting_UsageLimitsSetting_UsageLimit {
@@ -2037,7 +1970,7 @@ type InstanceSetting_GeneralSetting_CustomProfile struct {
func (x *InstanceSetting_GeneralSetting_CustomProfile) Reset() {
*x = InstanceSetting_GeneralSetting_CustomProfile{}
- mi := &file_api_instance_service_proto_msgTypes[25]
+ mi := &file_api_instance_service_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2049,7 +1982,7 @@ func (x *InstanceSetting_GeneralSetting_CustomProfile) String() string {
func (*InstanceSetting_GeneralSetting_CustomProfile) ProtoMessage() {}
func (x *InstanceSetting_GeneralSetting_CustomProfile) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[25]
+ mi := &file_api_instance_service_proto_msgTypes[24]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2112,7 +2045,7 @@ type InstanceSetting_StorageSetting_S3Config struct {
func (x *InstanceSetting_StorageSetting_S3Config) Reset() {
*x = InstanceSetting_StorageSetting_S3Config{}
- mi := &file_api_instance_service_proto_msgTypes[26]
+ mi := &file_api_instance_service_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2124,7 +2057,7 @@ func (x *InstanceSetting_StorageSetting_S3Config) String() string {
func (*InstanceSetting_StorageSetting_S3Config) ProtoMessage() {}
func (x *InstanceSetting_StorageSetting_S3Config) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[26]
+ mi := &file_api_instance_service_proto_msgTypes[25]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2215,7 +2148,7 @@ type InstanceSetting_Storage_S3Config struct {
func (x *InstanceSetting_Storage_S3Config) Reset() {
*x = InstanceSetting_Storage_S3Config{}
- mi := &file_api_instance_service_proto_msgTypes[27]
+ mi := &file_api_instance_service_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2227,7 +2160,7 @@ func (x *InstanceSetting_Storage_S3Config) String() string {
func (*InstanceSetting_Storage_S3Config) ProtoMessage() {}
func (x *InstanceSetting_Storage_S3Config) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[27]
+ mi := &file_api_instance_service_proto_msgTypes[26]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2322,7 +2255,7 @@ type InstanceSetting_NotificationSetting_EmailSetting struct {
func (x *InstanceSetting_NotificationSetting_EmailSetting) Reset() {
*x = InstanceSetting_NotificationSetting_EmailSetting{}
- mi := &file_api_instance_service_proto_msgTypes[29]
+ mi := &file_api_instance_service_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2334,7 +2267,7 @@ func (x *InstanceSetting_NotificationSetting_EmailSetting) String() string {
func (*InstanceSetting_NotificationSetting_EmailSetting) ProtoMessage() {}
func (x *InstanceSetting_NotificationSetting_EmailSetting) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[29]
+ mi := &file_api_instance_service_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2347,7 +2280,7 @@ func (x *InstanceSetting_NotificationSetting_EmailSetting) ProtoReflect() protor
// Deprecated: Use InstanceSetting_NotificationSetting_EmailSetting.ProtoReflect.Descriptor instead.
func (*InstanceSetting_NotificationSetting_EmailSetting) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 6, 0}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 5, 0}
}
func (x *InstanceSetting_NotificationSetting_EmailSetting) GetEnabled() bool {
@@ -2446,7 +2379,7 @@ type InstanceSetting_UsageLimitsSetting_UsageLimit struct {
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) Reset() {
*x = InstanceSetting_UsageLimitsSetting_UsageLimit{}
- mi := &file_api_instance_service_proto_msgTypes[30]
+ mi := &file_api_instance_service_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2458,7 +2391,7 @@ func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) String() string {
func (*InstanceSetting_UsageLimitsSetting_UsageLimit) ProtoMessage() {}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[30]
+ mi := &file_api_instance_service_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2471,7 +2404,7 @@ func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) ProtoReflect() protorefl
// Deprecated: Use InstanceSetting_UsageLimitsSetting_UsageLimit.ProtoReflect.Descriptor instead.
func (*InstanceSetting_UsageLimitsSetting_UsageLimit) Descriptor() ([]byte, []int) {
- return file_api_instance_service_proto_rawDescGZIP(), []int{2, 11, 0}
+ return file_api_instance_service_proto_rawDescGZIP(), []int{2, 10, 0}
}
func (x *InstanceSetting_UsageLimitsSetting_UsageLimit) GetUsers() []string {
@@ -2529,7 +2462,7 @@ type InstanceStats_DatabaseStats struct {
func (x *InstanceStats_DatabaseStats) Reset() {
*x = InstanceStats_DatabaseStats{}
- mi := &file_api_instance_service_proto_msgTypes[31]
+ mi := &file_api_instance_service_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2541,7 +2474,7 @@ func (x *InstanceStats_DatabaseStats) String() string {
func (*InstanceStats_DatabaseStats) ProtoMessage() {}
func (x *InstanceStats_DatabaseStats) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[31]
+ mi := &file_api_instance_service_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2589,7 +2522,7 @@ type ConfigurationStatus_ManagedResource struct {
func (x *ConfigurationStatus_ManagedResource) Reset() {
*x = ConfigurationStatus_ManagedResource{}
- mi := &file_api_instance_service_proto_msgTypes[32]
+ mi := &file_api_instance_service_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2601,7 +2534,7 @@ func (x *ConfigurationStatus_ManagedResource) String() string {
func (*ConfigurationStatus_ManagedResource) ProtoMessage() {}
func (x *ConfigurationStatus_ManagedResource) ProtoReflect() protoreflect.Message {
- mi := &file_api_instance_service_proto_msgTypes[32]
+ mi := &file_api_instance_service_proto_msgTypes[31]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2664,12 +2597,11 @@ const file_api_instance_service_proto_rawDesc = "" +
"\tChallenge\x12\x1a\n" +
"\bprovider\x18\x01 \x01(\tR\bprovider\x12\x19\n" +
"\bsite_key\x18\x02 \x01(\tR\asiteKey\"\x1b\n" +
- "\x19GetInstanceProfileRequest\"\xfc$\n" +
+ "\x19GetInstanceProfileRequest\"\x83$\n" +
"\x0fInstanceSetting\x12\x17\n" +
"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12T\n" +
"\x0fgeneral_setting\x18\x02 \x01(\v2).memos.api.InstanceSetting.GeneralSettingH\x00R\x0egeneralSetting\x12T\n" +
- "\x0fstorage_setting\x18\x03 \x01(\v2).memos.api.InstanceSetting.StorageSettingH\x00R\x0estorageSetting\x12a\n" +
- "\x14memo_related_setting\x18\x04 \x01(\v2-.memos.api.InstanceSetting.MemoRelatedSettingH\x00R\x12memoRelatedSetting\x12K\n" +
+ "\x0fstorage_setting\x18\x03 \x01(\v2).memos.api.InstanceSetting.StorageSettingH\x00R\x0estorageSetting\x12K\n" +
"\ftags_setting\x18\x05 \x01(\v2&.memos.api.InstanceSetting.TagsSettingH\x00R\vtagsSetting\x12c\n" +
"\x14notification_setting\x18\x06 \x01(\v2..memos.api.InstanceSetting.NotificationSettingH\x00R\x13notificationSetting\x12E\n" +
"\n" +
@@ -2721,9 +2653,7 @@ const file_api_instance_service_proto_rawDesc = "" +
"\x11access_key_secret\x18\x05 \x01(\tB\x03\xe0A\x04R\x0faccessKeySecret\x12$\n" +
"\x0euse_path_style\x18\x06 \x01(\bR\fusePathStyle\x127\n" +
"\x18insecure_skip_tls_verify\x18\a \x01(\bR\x15insecureSkipTlsVerifyB\b\n" +
- "\x06config\x1a2\n" +
- "\x12MemoRelatedSetting\x12\x1c\n" +
- "\treactions\x18\x01 \x03(\tR\treactions\x1a\xb4\x01\n" +
+ "\x06config\x1a\xb4\x01\n" +
"\vTagsSetting\x12D\n" +
"\x04tags\x18\x01 \x03(\v20.memos.api.InstanceSetting.TagsSetting.TagsEntryR\x04tags\x1a_\n" +
"\tTagsEntry\x12\x10\n" +
@@ -2783,18 +2713,17 @@ const file_api_instance_service_proto_rawDesc = "" +
"\v_memo_countB\x15\n" +
"\x13_memo_content_bytesB\x10\n" +
"\x0e_storage_bytesB\x0f\n" +
- "\r_upload_bytes\"\x88\x01\n" +
+ "\r_upload_bytes\"\x8a\x01\n" +
"\x03Key\x12\x13\n" +
"\x0fKEY_UNSPECIFIED\x10\x00\x12\v\n" +
"\aGENERAL\x10\x01\x12\v\n" +
- "\aSTORAGE\x10\x02\x12\x10\n" +
- "\fMEMO_RELATED\x10\x03\x12\b\n" +
+ "\aSTORAGE\x10\x02\x12\b\n" +
"\x04TAGS\x10\x04\x12\x10\n" +
"\fNOTIFICATION\x10\x05\x12\x06\n" +
"\x02AI\x10\x06\x12\n" +
"\n" +
"\x06ACCESS\x10\a\x12\x10\n" +
- "\fUSAGE_LIMITS\x10\b\"L\n" +
+ "\fUSAGE_LIMITS\x10\b\"\x04\b\x03\x10\x03*\fMEMO_RELATED\"L\n" +
"\vStorageType\x12\x1c\n" +
"\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\f\n" +
"\bDATABASE\x10\x01\x12\t\n" +
@@ -2807,7 +2736,7 @@ const file_api_instance_service_proto_rawDesc = "" +
"\n" +
"\x06GEMINI\x10\x02:^\xeaA[\n" +
"\x19memos.api/InstanceSetting\x12\x1binstance/settings/{setting}*\x10instanceSettings2\x0finstanceSettingB\a\n" +
- "\x05value\"R\n" +
+ "\x05valueJ\x04\b\x04\x10\x05R\x14memo_related_setting\"R\n" +
"\x19GetInstanceSettingRequest\x125\n" +
"\x04name\x18\x01 \x01(\tB!\xe0A\x02\xfaA\x1b\n" +
"\x19memos.api/InstanceSettingR\x04name\"Z\n" +
@@ -2875,7 +2804,7 @@ func file_api_instance_service_proto_rawDescGZIP() []byte {
}
var file_api_instance_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
-var file_api_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 33)
+var file_api_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 32)
var file_api_instance_service_proto_goTypes = []any{
(InstanceAccessMode)(0), // 0: memos.api.InstanceAccessMode
(InstanceSetting_Key)(0), // 1: memos.api.InstanceSetting.Key
@@ -2898,83 +2827,81 @@ var file_api_instance_service_proto_goTypes = []any{
(*InstanceSetting_GeneralSetting)(nil), // 18: memos.api.InstanceSetting.GeneralSetting
(*InstanceSetting_StorageSetting)(nil), // 19: memos.api.InstanceSetting.StorageSetting
(*InstanceSetting_Storage)(nil), // 20: memos.api.InstanceSetting.Storage
- (*InstanceSetting_MemoRelatedSetting)(nil), // 21: memos.api.InstanceSetting.MemoRelatedSetting
- (*InstanceSetting_TagsSetting)(nil), // 22: memos.api.InstanceSetting.TagsSetting
- (*InstanceSetting_TagMetadata)(nil), // 23: memos.api.InstanceSetting.TagMetadata
- (*InstanceSetting_NotificationSetting)(nil), // 24: memos.api.InstanceSetting.NotificationSetting
- (*InstanceSetting_AISetting)(nil), // 25: memos.api.InstanceSetting.AISetting
- (*InstanceSetting_AIProviderConfig)(nil), // 26: memos.api.InstanceSetting.AIProviderConfig
- (*InstanceSetting_TranscriptionConfig)(nil), // 27: memos.api.InstanceSetting.TranscriptionConfig
- (*InstanceSetting_AccessSetting)(nil), // 28: memos.api.InstanceSetting.AccessSetting
- (*InstanceSetting_UsageLimitsSetting)(nil), // 29: memos.api.InstanceSetting.UsageLimitsSetting
- (*InstanceSetting_GeneralSetting_CustomProfile)(nil), // 30: memos.api.InstanceSetting.GeneralSetting.CustomProfile
- (*InstanceSetting_StorageSetting_S3Config)(nil), // 31: memos.api.InstanceSetting.StorageSetting.S3Config
- (*InstanceSetting_Storage_S3Config)(nil), // 32: memos.api.InstanceSetting.Storage.S3Config
- nil, // 33: memos.api.InstanceSetting.TagsSetting.TagsEntry
- (*InstanceSetting_NotificationSetting_EmailSetting)(nil), // 34: memos.api.InstanceSetting.NotificationSetting.EmailSetting
- (*InstanceSetting_UsageLimitsSetting_UsageLimit)(nil), // 35: memos.api.InstanceSetting.UsageLimitsSetting.UsageLimit
- (*InstanceStats_DatabaseStats)(nil), // 36: memos.api.InstanceStats.DatabaseStats
- (*ConfigurationStatus_ManagedResource)(nil), // 37: memos.api.ConfigurationStatus.ManagedResource
- (*User)(nil), // 38: memos.api.User
- (*fieldmaskpb.FieldMask)(nil), // 39: google.protobuf.FieldMask
- (*timestamppb.Timestamp)(nil), // 40: google.protobuf.Timestamp
- (*color.Color)(nil), // 41: google.type.Color
- (*emptypb.Empty)(nil), // 42: google.protobuf.Empty
+ (*InstanceSetting_TagsSetting)(nil), // 21: memos.api.InstanceSetting.TagsSetting
+ (*InstanceSetting_TagMetadata)(nil), // 22: memos.api.InstanceSetting.TagMetadata
+ (*InstanceSetting_NotificationSetting)(nil), // 23: memos.api.InstanceSetting.NotificationSetting
+ (*InstanceSetting_AISetting)(nil), // 24: memos.api.InstanceSetting.AISetting
+ (*InstanceSetting_AIProviderConfig)(nil), // 25: memos.api.InstanceSetting.AIProviderConfig
+ (*InstanceSetting_TranscriptionConfig)(nil), // 26: memos.api.InstanceSetting.TranscriptionConfig
+ (*InstanceSetting_AccessSetting)(nil), // 27: memos.api.InstanceSetting.AccessSetting
+ (*InstanceSetting_UsageLimitsSetting)(nil), // 28: memos.api.InstanceSetting.UsageLimitsSetting
+ (*InstanceSetting_GeneralSetting_CustomProfile)(nil), // 29: memos.api.InstanceSetting.GeneralSetting.CustomProfile
+ (*InstanceSetting_StorageSetting_S3Config)(nil), // 30: memos.api.InstanceSetting.StorageSetting.S3Config
+ (*InstanceSetting_Storage_S3Config)(nil), // 31: memos.api.InstanceSetting.Storage.S3Config
+ nil, // 32: memos.api.InstanceSetting.TagsSetting.TagsEntry
+ (*InstanceSetting_NotificationSetting_EmailSetting)(nil), // 33: memos.api.InstanceSetting.NotificationSetting.EmailSetting
+ (*InstanceSetting_UsageLimitsSetting_UsageLimit)(nil), // 34: memos.api.InstanceSetting.UsageLimitsSetting.UsageLimit
+ (*InstanceStats_DatabaseStats)(nil), // 35: memos.api.InstanceStats.DatabaseStats
+ (*ConfigurationStatus_ManagedResource)(nil), // 36: memos.api.ConfigurationStatus.ManagedResource
+ (*User)(nil), // 37: memos.api.User
+ (*fieldmaskpb.FieldMask)(nil), // 38: google.protobuf.FieldMask
+ (*timestamppb.Timestamp)(nil), // 39: google.protobuf.Timestamp
+ (*color.Color)(nil), // 40: google.type.Color
+ (*emptypb.Empty)(nil), // 41: google.protobuf.Empty
}
var file_api_instance_service_proto_depIdxs = []int32{
0, // 0: memos.api.InstanceProfile.access_mode:type_name -> memos.api.InstanceAccessMode
- 38, // 1: memos.api.InstanceProfile.admin:type_name -> memos.api.User
+ 37, // 1: memos.api.InstanceProfile.admin:type_name -> memos.api.User
17, // 2: memos.api.InstanceProfile.challenge:type_name -> memos.api.InstanceProfile.Challenge
18, // 3: memos.api.InstanceSetting.general_setting:type_name -> memos.api.InstanceSetting.GeneralSetting
19, // 4: memos.api.InstanceSetting.storage_setting:type_name -> memos.api.InstanceSetting.StorageSetting
- 21, // 5: memos.api.InstanceSetting.memo_related_setting:type_name -> memos.api.InstanceSetting.MemoRelatedSetting
- 22, // 6: memos.api.InstanceSetting.tags_setting:type_name -> memos.api.InstanceSetting.TagsSetting
- 24, // 7: memos.api.InstanceSetting.notification_setting:type_name -> memos.api.InstanceSetting.NotificationSetting
- 25, // 8: memos.api.InstanceSetting.ai_setting:type_name -> memos.api.InstanceSetting.AISetting
- 28, // 9: memos.api.InstanceSetting.access_setting:type_name -> memos.api.InstanceSetting.AccessSetting
- 29, // 10: memos.api.InstanceSetting.usage_limits_setting:type_name -> memos.api.InstanceSetting.UsageLimitsSetting
- 7, // 11: memos.api.BatchGetInstanceSettingsResponse.instance_settings:type_name -> memos.api.InstanceSetting
- 7, // 12: memos.api.UpdateInstanceSettingRequest.instance_setting:type_name -> memos.api.InstanceSetting
- 39, // 13: memos.api.UpdateInstanceSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
- 34, // 14: memos.api.TestInstanceEmailSettingRequest.email:type_name -> memos.api.InstanceSetting.NotificationSetting.EmailSetting
- 36, // 15: memos.api.InstanceStats.database:type_name -> memos.api.InstanceStats.DatabaseStats
- 40, // 16: memos.api.InstanceStats.generated_time:type_name -> google.protobuf.Timestamp
- 37, // 17: memos.api.ConfigurationStatus.managed_resources:type_name -> memos.api.ConfigurationStatus.ManagedResource
- 40, // 18: memos.api.ConfigurationStatus.apply_time:type_name -> google.protobuf.Timestamp
- 30, // 19: memos.api.InstanceSetting.GeneralSetting.custom_profile:type_name -> memos.api.InstanceSetting.GeneralSetting.CustomProfile
- 20, // 20: memos.api.InstanceSetting.StorageSetting.storages:type_name -> memos.api.InstanceSetting.Storage
- 4, // 21: memos.api.InstanceSetting.StorageSetting.storage_type:type_name -> memos.api.InstanceSetting.StorageSetting.StorageType
- 31, // 22: memos.api.InstanceSetting.StorageSetting.s3_config:type_name -> memos.api.InstanceSetting.StorageSetting.S3Config
- 2, // 23: memos.api.InstanceSetting.Storage.type:type_name -> memos.api.InstanceSetting.StorageType
- 32, // 24: memos.api.InstanceSetting.Storage.s3_config:type_name -> memos.api.InstanceSetting.Storage.S3Config
- 33, // 25: memos.api.InstanceSetting.TagsSetting.tags:type_name -> memos.api.InstanceSetting.TagsSetting.TagsEntry
- 41, // 26: memos.api.InstanceSetting.TagMetadata.background_color:type_name -> google.type.Color
- 34, // 27: memos.api.InstanceSetting.NotificationSetting.email:type_name -> memos.api.InstanceSetting.NotificationSetting.EmailSetting
- 26, // 28: memos.api.InstanceSetting.AISetting.providers:type_name -> memos.api.InstanceSetting.AIProviderConfig
- 27, // 29: memos.api.InstanceSetting.AISetting.transcription:type_name -> memos.api.InstanceSetting.TranscriptionConfig
- 3, // 30: memos.api.InstanceSetting.AIProviderConfig.type:type_name -> memos.api.InstanceSetting.AIProviderType
- 0, // 31: memos.api.InstanceSetting.AccessSetting.access_mode:type_name -> memos.api.InstanceAccessMode
- 35, // 32: memos.api.InstanceSetting.UsageLimitsSetting.limits:type_name -> memos.api.InstanceSetting.UsageLimitsSetting.UsageLimit
- 23, // 33: memos.api.InstanceSetting.TagsSetting.TagsEntry.value:type_name -> memos.api.InstanceSetting.TagMetadata
- 6, // 34: memos.api.InstanceService.GetInstanceProfile:input_type -> memos.api.GetInstanceProfileRequest
- 8, // 35: memos.api.InstanceService.GetInstanceSetting:input_type -> memos.api.GetInstanceSettingRequest
- 9, // 36: memos.api.InstanceService.BatchGetInstanceSettings:input_type -> memos.api.BatchGetInstanceSettingsRequest
- 11, // 37: memos.api.InstanceService.UpdateInstanceSetting:input_type -> memos.api.UpdateInstanceSettingRequest
- 12, // 38: memos.api.InstanceService.TestInstanceEmailSetting:input_type -> memos.api.TestInstanceEmailSettingRequest
- 14, // 39: memos.api.InstanceService.GetInstanceStats:input_type -> memos.api.GetInstanceStatsRequest
- 15, // 40: memos.api.InstanceService.GetConfigurationStatus:input_type -> memos.api.GetConfigurationStatusRequest
- 5, // 41: memos.api.InstanceService.GetInstanceProfile:output_type -> memos.api.InstanceProfile
- 7, // 42: memos.api.InstanceService.GetInstanceSetting:output_type -> memos.api.InstanceSetting
- 10, // 43: memos.api.InstanceService.BatchGetInstanceSettings:output_type -> memos.api.BatchGetInstanceSettingsResponse
- 7, // 44: memos.api.InstanceService.UpdateInstanceSetting:output_type -> memos.api.InstanceSetting
- 42, // 45: memos.api.InstanceService.TestInstanceEmailSetting:output_type -> google.protobuf.Empty
- 13, // 46: memos.api.InstanceService.GetInstanceStats:output_type -> memos.api.InstanceStats
- 16, // 47: memos.api.InstanceService.GetConfigurationStatus:output_type -> memos.api.ConfigurationStatus
- 41, // [41:48] is the sub-list for method output_type
- 34, // [34:41] is the sub-list for method input_type
- 34, // [34:34] is the sub-list for extension type_name
- 34, // [34:34] is the sub-list for extension extendee
- 0, // [0:34] is the sub-list for field type_name
+ 21, // 5: memos.api.InstanceSetting.tags_setting:type_name -> memos.api.InstanceSetting.TagsSetting
+ 23, // 6: memos.api.InstanceSetting.notification_setting:type_name -> memos.api.InstanceSetting.NotificationSetting
+ 24, // 7: memos.api.InstanceSetting.ai_setting:type_name -> memos.api.InstanceSetting.AISetting
+ 27, // 8: memos.api.InstanceSetting.access_setting:type_name -> memos.api.InstanceSetting.AccessSetting
+ 28, // 9: memos.api.InstanceSetting.usage_limits_setting:type_name -> memos.api.InstanceSetting.UsageLimitsSetting
+ 7, // 10: memos.api.BatchGetInstanceSettingsResponse.instance_settings:type_name -> memos.api.InstanceSetting
+ 7, // 11: memos.api.UpdateInstanceSettingRequest.instance_setting:type_name -> memos.api.InstanceSetting
+ 38, // 12: memos.api.UpdateInstanceSettingRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 33, // 13: memos.api.TestInstanceEmailSettingRequest.email:type_name -> memos.api.InstanceSetting.NotificationSetting.EmailSetting
+ 35, // 14: memos.api.InstanceStats.database:type_name -> memos.api.InstanceStats.DatabaseStats
+ 39, // 15: memos.api.InstanceStats.generated_time:type_name -> google.protobuf.Timestamp
+ 36, // 16: memos.api.ConfigurationStatus.managed_resources:type_name -> memos.api.ConfigurationStatus.ManagedResource
+ 39, // 17: memos.api.ConfigurationStatus.apply_time:type_name -> google.protobuf.Timestamp
+ 29, // 18: memos.api.InstanceSetting.GeneralSetting.custom_profile:type_name -> memos.api.InstanceSetting.GeneralSetting.CustomProfile
+ 20, // 19: memos.api.InstanceSetting.StorageSetting.storages:type_name -> memos.api.InstanceSetting.Storage
+ 4, // 20: memos.api.InstanceSetting.StorageSetting.storage_type:type_name -> memos.api.InstanceSetting.StorageSetting.StorageType
+ 30, // 21: memos.api.InstanceSetting.StorageSetting.s3_config:type_name -> memos.api.InstanceSetting.StorageSetting.S3Config
+ 2, // 22: memos.api.InstanceSetting.Storage.type:type_name -> memos.api.InstanceSetting.StorageType
+ 31, // 23: memos.api.InstanceSetting.Storage.s3_config:type_name -> memos.api.InstanceSetting.Storage.S3Config
+ 32, // 24: memos.api.InstanceSetting.TagsSetting.tags:type_name -> memos.api.InstanceSetting.TagsSetting.TagsEntry
+ 40, // 25: memos.api.InstanceSetting.TagMetadata.background_color:type_name -> google.type.Color
+ 33, // 26: memos.api.InstanceSetting.NotificationSetting.email:type_name -> memos.api.InstanceSetting.NotificationSetting.EmailSetting
+ 25, // 27: memos.api.InstanceSetting.AISetting.providers:type_name -> memos.api.InstanceSetting.AIProviderConfig
+ 26, // 28: memos.api.InstanceSetting.AISetting.transcription:type_name -> memos.api.InstanceSetting.TranscriptionConfig
+ 3, // 29: memos.api.InstanceSetting.AIProviderConfig.type:type_name -> memos.api.InstanceSetting.AIProviderType
+ 0, // 30: memos.api.InstanceSetting.AccessSetting.access_mode:type_name -> memos.api.InstanceAccessMode
+ 34, // 31: memos.api.InstanceSetting.UsageLimitsSetting.limits:type_name -> memos.api.InstanceSetting.UsageLimitsSetting.UsageLimit
+ 22, // 32: memos.api.InstanceSetting.TagsSetting.TagsEntry.value:type_name -> memos.api.InstanceSetting.TagMetadata
+ 6, // 33: memos.api.InstanceService.GetInstanceProfile:input_type -> memos.api.GetInstanceProfileRequest
+ 8, // 34: memos.api.InstanceService.GetInstanceSetting:input_type -> memos.api.GetInstanceSettingRequest
+ 9, // 35: memos.api.InstanceService.BatchGetInstanceSettings:input_type -> memos.api.BatchGetInstanceSettingsRequest
+ 11, // 36: memos.api.InstanceService.UpdateInstanceSetting:input_type -> memos.api.UpdateInstanceSettingRequest
+ 12, // 37: memos.api.InstanceService.TestInstanceEmailSetting:input_type -> memos.api.TestInstanceEmailSettingRequest
+ 14, // 38: memos.api.InstanceService.GetInstanceStats:input_type -> memos.api.GetInstanceStatsRequest
+ 15, // 39: memos.api.InstanceService.GetConfigurationStatus:input_type -> memos.api.GetConfigurationStatusRequest
+ 5, // 40: memos.api.InstanceService.GetInstanceProfile:output_type -> memos.api.InstanceProfile
+ 7, // 41: memos.api.InstanceService.GetInstanceSetting:output_type -> memos.api.InstanceSetting
+ 10, // 42: memos.api.InstanceService.BatchGetInstanceSettings:output_type -> memos.api.BatchGetInstanceSettingsResponse
+ 7, // 43: memos.api.InstanceService.UpdateInstanceSetting:output_type -> memos.api.InstanceSetting
+ 41, // 44: memos.api.InstanceService.TestInstanceEmailSetting:output_type -> google.protobuf.Empty
+ 13, // 45: memos.api.InstanceService.GetInstanceStats:output_type -> memos.api.InstanceStats
+ 16, // 46: memos.api.InstanceService.GetConfigurationStatus:output_type -> memos.api.ConfigurationStatus
+ 40, // [40:47] is the sub-list for method output_type
+ 33, // [33:40] is the sub-list for method input_type
+ 33, // [33:33] is the sub-list for extension type_name
+ 33, // [33:33] is the sub-list for extension extendee
+ 0, // [0:33] is the sub-list for field type_name
}
func init() { file_api_instance_service_proto_init() }
@@ -2986,7 +2913,6 @@ func file_api_instance_service_proto_init() {
file_api_instance_service_proto_msgTypes[2].OneofWrappers = []any{
(*InstanceSetting_GeneralSetting_)(nil),
(*InstanceSetting_StorageSetting_)(nil),
- (*InstanceSetting_MemoRelatedSetting_)(nil),
(*InstanceSetting_TagsSetting_)(nil),
(*InstanceSetting_NotificationSetting_)(nil),
(*InstanceSetting_AiSetting)(nil),
@@ -2996,14 +2922,14 @@ func file_api_instance_service_proto_init() {
file_api_instance_service_proto_msgTypes[15].OneofWrappers = []any{
(*InstanceSetting_Storage_S3Config_)(nil),
}
- file_api_instance_service_proto_msgTypes[30].OneofWrappers = []any{}
+ file_api_instance_service_proto_msgTypes[29].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_instance_service_proto_rawDesc), len(file_api_instance_service_proto_rawDesc)),
NumEnums: 5,
- NumMessages: 33,
+ NumMessages: 32,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/proto/gen/openapi.yaml b/proto/gen/openapi.yaml
index 272e13a52..77f4ce091 100644
--- a/proto/gen/openapi.yaml
+++ b/proto/gen/openapi.yaml
@@ -3943,10 +3943,6 @@ components:
allOf:
- $ref: '#/components/schemas/InstanceSetting_StorageSetting'
description: The value of the STORAGE setting.
- memoRelatedSetting:
- allOf:
- - $ref: '#/components/schemas/InstanceSetting_MemoRelatedSetting'
- description: The value of the MEMO_RELATED setting.
tagsSetting:
allOf:
- $ref: '#/components/schemas/InstanceSetting_TagsSetting'
@@ -4062,15 +4058,6 @@ components:
type: string
description: Custom JavaScript injected into the web app.
description: GeneralSetting is the general instance configuration.
- InstanceSetting_MemoRelatedSetting:
- type: object
- properties:
- reactions:
- type: array
- items:
- type: string
- description: The reactions users can choose from. Defaults to a built-in emoji set when empty.
- description: MemoRelatedSetting is the memo-related instance configuration.
InstanceSetting_NotificationSetting:
type: object
properties:
diff --git a/proto/gen/store/instance_setting.pb.go b/proto/gen/store/instance_setting.pb.go
index 07f3623ac..4d1840fff 100644
--- a/proto/gen/store/instance_setting.pb.go
+++ b/proto/gen/store/instance_setting.pb.go
@@ -32,8 +32,6 @@ const (
InstanceSettingKey_GENERAL InstanceSettingKey = 2
// STORAGE is the key for storage settings.
InstanceSettingKey_STORAGE InstanceSettingKey = 3
- // MEMO_RELATED is the key for memo related settings.
- InstanceSettingKey_MEMO_RELATED InstanceSettingKey = 4
// TAGS is the key for tag metadata.
InstanceSettingKey_TAGS InstanceSettingKey = 5
// NOTIFICATION is the key for notification transport settings.
@@ -58,7 +56,6 @@ var (
1: "BASIC",
2: "GENERAL",
3: "STORAGE",
- 4: "MEMO_RELATED",
5: "TAGS",
6: "NOTIFICATION",
7: "AI",
@@ -71,7 +68,6 @@ var (
"BASIC": 1,
"GENERAL": 2,
"STORAGE": 3,
- "MEMO_RELATED": 4,
"TAGS": 5,
"NOTIFICATION": 6,
"AI": 7,
@@ -325,7 +321,6 @@ type InstanceSetting struct {
// *InstanceSetting_BasicSetting
// *InstanceSetting_GeneralSetting
// *InstanceSetting_StorageSetting
- // *InstanceSetting_MemoRelatedSetting
// *InstanceSetting_TagsSetting
// *InstanceSetting_NotificationSetting
// *InstanceSetting_AiSetting
@@ -407,15 +402,6 @@ func (x *InstanceSetting) GetStorageSetting() *InstanceStorageSetting {
return nil
}
-func (x *InstanceSetting) GetMemoRelatedSetting() *InstanceMemoRelatedSetting {
- if x != nil {
- if x, ok := x.Value.(*InstanceSetting_MemoRelatedSetting); ok {
- return x.MemoRelatedSetting
- }
- }
- return nil
-}
-
func (x *InstanceSetting) GetTagsSetting() *InstanceTagsSetting {
if x != nil {
if x, ok := x.Value.(*InstanceSetting_TagsSetting); ok {
@@ -477,10 +463,6 @@ type InstanceSetting_StorageSetting struct {
StorageSetting *InstanceStorageSetting `protobuf:"bytes,4,opt,name=storage_setting,json=storageSetting,proto3,oneof"`
}
-type InstanceSetting_MemoRelatedSetting struct {
- MemoRelatedSetting *InstanceMemoRelatedSetting `protobuf:"bytes,5,opt,name=memo_related_setting,json=memoRelatedSetting,proto3,oneof"`
-}
-
type InstanceSetting_TagsSetting struct {
TagsSetting *InstanceTagsSetting `protobuf:"bytes,6,opt,name=tags_setting,json=tagsSetting,proto3,oneof"`
}
@@ -507,8 +489,6 @@ func (*InstanceSetting_GeneralSetting) isInstanceSetting_Value() {}
func (*InstanceSetting_StorageSetting) isInstanceSetting_Value() {}
-func (*InstanceSetting_MemoRelatedSetting) isInstanceSetting_Value() {}
-
func (*InstanceSetting_TagsSetting) isInstanceSetting_Value() {}
func (*InstanceSetting_NotificationSetting) isInstanceSetting_Value() {}
@@ -1025,51 +1005,6 @@ func (x *StorageS3Config) GetInsecureSkipTlsVerify() bool {
return false
}
-type InstanceMemoRelatedSetting struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // reactions is the list of reactions.
- Reactions []string `protobuf:"bytes,1,rep,name=reactions,proto3" json:"reactions,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *InstanceMemoRelatedSetting) Reset() {
- *x = InstanceMemoRelatedSetting{}
- mi := &file_store_instance_setting_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *InstanceMemoRelatedSetting) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*InstanceMemoRelatedSetting) ProtoMessage() {}
-
-func (x *InstanceMemoRelatedSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[7]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use InstanceMemoRelatedSetting.ProtoReflect.Descriptor instead.
-func (*InstanceMemoRelatedSetting) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{7}
-}
-
-func (x *InstanceMemoRelatedSetting) GetReactions() []string {
- if x != nil {
- return x.Reactions
- }
- return nil
-}
-
type InstanceTagMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Optional background color for the tag label.
@@ -1083,7 +1018,7 @@ type InstanceTagMetadata struct {
func (x *InstanceTagMetadata) Reset() {
*x = InstanceTagMetadata{}
- mi := &file_store_instance_setting_proto_msgTypes[8]
+ mi := &file_store_instance_setting_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1095,7 +1030,7 @@ func (x *InstanceTagMetadata) String() string {
func (*InstanceTagMetadata) ProtoMessage() {}
func (x *InstanceTagMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[8]
+ mi := &file_store_instance_setting_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1108,7 +1043,7 @@ func (x *InstanceTagMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceTagMetadata.ProtoReflect.Descriptor instead.
func (*InstanceTagMetadata) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{8}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{7}
}
func (x *InstanceTagMetadata) GetBackgroundColor() *color.Color {
@@ -1140,7 +1075,7 @@ type InstanceTagsSetting struct {
func (x *InstanceTagsSetting) Reset() {
*x = InstanceTagsSetting{}
- mi := &file_store_instance_setting_proto_msgTypes[9]
+ mi := &file_store_instance_setting_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1152,7 +1087,7 @@ func (x *InstanceTagsSetting) String() string {
func (*InstanceTagsSetting) ProtoMessage() {}
func (x *InstanceTagsSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[9]
+ mi := &file_store_instance_setting_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1165,7 +1100,7 @@ func (x *InstanceTagsSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceTagsSetting.ProtoReflect.Descriptor instead.
func (*InstanceTagsSetting) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{9}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{8}
}
func (x *InstanceTagsSetting) GetTags() map[string]*InstanceTagMetadata {
@@ -1184,7 +1119,7 @@ type InstanceNotificationSetting struct {
func (x *InstanceNotificationSetting) Reset() {
*x = InstanceNotificationSetting{}
- mi := &file_store_instance_setting_proto_msgTypes[10]
+ mi := &file_store_instance_setting_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1196,7 +1131,7 @@ func (x *InstanceNotificationSetting) String() string {
func (*InstanceNotificationSetting) ProtoMessage() {}
func (x *InstanceNotificationSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[10]
+ mi := &file_store_instance_setting_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1209,7 +1144,7 @@ func (x *InstanceNotificationSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceNotificationSetting.ProtoReflect.Descriptor instead.
func (*InstanceNotificationSetting) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{10}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{9}
}
func (x *InstanceNotificationSetting) GetEmail() *InstanceNotificationSetting_EmailSetting {
@@ -1232,7 +1167,7 @@ type InstanceAISetting struct {
func (x *InstanceAISetting) Reset() {
*x = InstanceAISetting{}
- mi := &file_store_instance_setting_proto_msgTypes[11]
+ mi := &file_store_instance_setting_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1244,7 +1179,7 @@ func (x *InstanceAISetting) String() string {
func (*InstanceAISetting) ProtoMessage() {}
func (x *InstanceAISetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[11]
+ mi := &file_store_instance_setting_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1257,7 +1192,7 @@ func (x *InstanceAISetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceAISetting.ProtoReflect.Descriptor instead.
func (*InstanceAISetting) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{11}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{10}
}
func (x *InstanceAISetting) GetProviders() []*AIProviderConfig {
@@ -1288,7 +1223,7 @@ type AIProviderConfig struct {
func (x *AIProviderConfig) Reset() {
*x = AIProviderConfig{}
- mi := &file_store_instance_setting_proto_msgTypes[12]
+ mi := &file_store_instance_setting_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1300,7 +1235,7 @@ func (x *AIProviderConfig) String() string {
func (*AIProviderConfig) ProtoMessage() {}
func (x *AIProviderConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[12]
+ mi := &file_store_instance_setting_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1313,7 +1248,7 @@ func (x *AIProviderConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use AIProviderConfig.ProtoReflect.Descriptor instead.
func (*AIProviderConfig) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{12}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{11}
}
func (x *AIProviderConfig) GetId() string {
@@ -1382,7 +1317,7 @@ type TranscriptionConfig struct {
func (x *TranscriptionConfig) Reset() {
*x = TranscriptionConfig{}
- mi := &file_store_instance_setting_proto_msgTypes[13]
+ mi := &file_store_instance_setting_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1394,7 +1329,7 @@ func (x *TranscriptionConfig) String() string {
func (*TranscriptionConfig) ProtoMessage() {}
func (x *TranscriptionConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[13]
+ mi := &file_store_instance_setting_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1407,7 +1342,7 @@ func (x *TranscriptionConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use TranscriptionConfig.ProtoReflect.Descriptor instead.
func (*TranscriptionConfig) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{13}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{12}
}
func (x *TranscriptionConfig) GetProviderId() string {
@@ -1447,7 +1382,7 @@ type InstanceAccessSetting struct {
func (x *InstanceAccessSetting) Reset() {
*x = InstanceAccessSetting{}
- mi := &file_store_instance_setting_proto_msgTypes[14]
+ mi := &file_store_instance_setting_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1459,7 +1394,7 @@ func (x *InstanceAccessSetting) String() string {
func (*InstanceAccessSetting) ProtoMessage() {}
func (x *InstanceAccessSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[14]
+ mi := &file_store_instance_setting_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1472,7 +1407,7 @@ func (x *InstanceAccessSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceAccessSetting.ProtoReflect.Descriptor instead.
func (*InstanceAccessSetting) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{14}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{13}
}
func (x *InstanceAccessSetting) GetAccessMode() InstanceAccessMode {
@@ -1494,7 +1429,7 @@ type InstanceUsageLimitsSetting struct {
func (x *InstanceUsageLimitsSetting) Reset() {
*x = InstanceUsageLimitsSetting{}
- mi := &file_store_instance_setting_proto_msgTypes[15]
+ mi := &file_store_instance_setting_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1506,7 +1441,7 @@ func (x *InstanceUsageLimitsSetting) String() string {
func (*InstanceUsageLimitsSetting) ProtoMessage() {}
func (x *InstanceUsageLimitsSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[15]
+ mi := &file_store_instance_setting_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1519,7 +1454,7 @@ func (x *InstanceUsageLimitsSetting) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceUsageLimitsSetting.ProtoReflect.Descriptor instead.
func (*InstanceUsageLimitsSetting) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{15}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{14}
}
func (x *InstanceUsageLimitsSetting) GetLimits() []*InstanceUsageLimitsSetting_UsageLimit {
@@ -1553,7 +1488,7 @@ type InstanceConfigurationState struct {
func (x *InstanceConfigurationState) Reset() {
*x = InstanceConfigurationState{}
- mi := &file_store_instance_setting_proto_msgTypes[16]
+ mi := &file_store_instance_setting_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1565,7 +1500,7 @@ func (x *InstanceConfigurationState) String() string {
func (*InstanceConfigurationState) ProtoMessage() {}
func (x *InstanceConfigurationState) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[16]
+ mi := &file_store_instance_setting_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1578,7 +1513,7 @@ func (x *InstanceConfigurationState) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceConfigurationState.ProtoReflect.Descriptor instead.
func (*InstanceConfigurationState) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{16}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{15}
}
func (x *InstanceConfigurationState) GetSerial() int64 {
@@ -1641,7 +1576,7 @@ type InstanceNotificationSetting_EmailSetting struct {
func (x *InstanceNotificationSetting_EmailSetting) Reset() {
*x = InstanceNotificationSetting_EmailSetting{}
- mi := &file_store_instance_setting_proto_msgTypes[18]
+ mi := &file_store_instance_setting_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1653,7 +1588,7 @@ func (x *InstanceNotificationSetting_EmailSetting) String() string {
func (*InstanceNotificationSetting_EmailSetting) ProtoMessage() {}
func (x *InstanceNotificationSetting_EmailSetting) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[18]
+ mi := &file_store_instance_setting_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1666,7 +1601,7 @@ func (x *InstanceNotificationSetting_EmailSetting) ProtoReflect() protoreflect.M
// Deprecated: Use InstanceNotificationSetting_EmailSetting.ProtoReflect.Descriptor instead.
func (*InstanceNotificationSetting_EmailSetting) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{10, 0}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{9, 0}
}
func (x *InstanceNotificationSetting_EmailSetting) GetEnabled() bool {
@@ -1762,7 +1697,7 @@ type InstanceUsageLimitsSetting_UsageLimit struct {
func (x *InstanceUsageLimitsSetting_UsageLimit) Reset() {
*x = InstanceUsageLimitsSetting_UsageLimit{}
- mi := &file_store_instance_setting_proto_msgTypes[19]
+ mi := &file_store_instance_setting_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1774,7 +1709,7 @@ func (x *InstanceUsageLimitsSetting_UsageLimit) String() string {
func (*InstanceUsageLimitsSetting_UsageLimit) ProtoMessage() {}
func (x *InstanceUsageLimitsSetting_UsageLimit) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[19]
+ mi := &file_store_instance_setting_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1787,7 +1722,7 @@ func (x *InstanceUsageLimitsSetting_UsageLimit) ProtoReflect() protoreflect.Mess
// Deprecated: Use InstanceUsageLimitsSetting_UsageLimit.ProtoReflect.Descriptor instead.
func (*InstanceUsageLimitsSetting_UsageLimit) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{15, 0}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{14, 0}
}
func (x *InstanceUsageLimitsSetting_UsageLimit) GetUserIds() []int32 {
@@ -1867,7 +1802,7 @@ type InstanceConfigurationState_ManagedResource struct {
func (x *InstanceConfigurationState_ManagedResource) Reset() {
*x = InstanceConfigurationState_ManagedResource{}
- mi := &file_store_instance_setting_proto_msgTypes[20]
+ mi := &file_store_instance_setting_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1879,7 +1814,7 @@ func (x *InstanceConfigurationState_ManagedResource) String() string {
func (*InstanceConfigurationState_ManagedResource) ProtoMessage() {}
func (x *InstanceConfigurationState_ManagedResource) ProtoReflect() protoreflect.Message {
- mi := &file_store_instance_setting_proto_msgTypes[20]
+ mi := &file_store_instance_setting_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1892,7 +1827,7 @@ func (x *InstanceConfigurationState_ManagedResource) ProtoReflect() protoreflect
// Deprecated: Use InstanceConfigurationState_ManagedResource.ProtoReflect.Descriptor instead.
func (*InstanceConfigurationState_ManagedResource) Descriptor() ([]byte, []int) {
- return file_store_instance_setting_proto_rawDescGZIP(), []int{16, 0}
+ return file_store_instance_setting_proto_rawDescGZIP(), []int{15, 0}
}
func (x *InstanceConfigurationState_ManagedResource) GetName() string {
@@ -1969,13 +1904,12 @@ var File_store_instance_setting_proto protoreflect.FileDescriptor
const file_store_instance_setting_proto_rawDesc = "" +
"\n" +
- "\x1cstore/instance_setting.proto\x12\vmemos.store\x1a\x17google/type/color.proto\"\xa5\x06\n" +
+ "\x1cstore/instance_setting.proto\x12\vmemos.store\x1a\x17google/type/color.proto\"\xe4\x05\n" +
"\x0fInstanceSetting\x121\n" +
"\x03key\x18\x01 \x01(\x0e2\x1f.memos.store.InstanceSettingKeyR\x03key\x12H\n" +
"\rbasic_setting\x18\x02 \x01(\v2!.memos.store.InstanceBasicSettingH\x00R\fbasicSetting\x12N\n" +
"\x0fgeneral_setting\x18\x03 \x01(\v2#.memos.store.InstanceGeneralSettingH\x00R\x0egeneralSetting\x12N\n" +
- "\x0fstorage_setting\x18\x04 \x01(\v2#.memos.store.InstanceStorageSettingH\x00R\x0estorageSetting\x12[\n" +
- "\x14memo_related_setting\x18\x05 \x01(\v2'.memos.store.InstanceMemoRelatedSettingH\x00R\x12memoRelatedSetting\x12E\n" +
+ "\x0fstorage_setting\x18\x04 \x01(\v2#.memos.store.InstanceStorageSettingH\x00R\x0estorageSetting\x12E\n" +
"\ftags_setting\x18\x06 \x01(\v2 .memos.store.InstanceTagsSettingH\x00R\vtagsSetting\x12]\n" +
"\x14notification_setting\x18\a \x01(\v2(.memos.store.InstanceNotificationSettingH\x00R\x13notificationSetting\x12?\n" +
"\n" +
@@ -1983,7 +1917,7 @@ const file_store_instance_setting_proto_rawDesc = "" +
"\x0eaccess_setting\x18\t \x01(\v2\".memos.store.InstanceAccessSettingH\x00R\raccessSetting\x12[\n" +
"\x14usage_limits_setting\x18\n" +
" \x01(\v2'.memos.store.InstanceUsageLimitsSettingH\x00R\x12usageLimitsSettingB\a\n" +
- "\x05value\"\x85\x01\n" +
+ "\x05valueJ\x04\b\x05\x10\x06R\x14memo_related_setting\"\x85\x01\n" +
"\x14InstanceBasicSetting\x12\x1d\n" +
"\n" +
"secret_key\x18\x01 \x01(\tR\tsecretKey\x12%\n" +
@@ -2026,9 +1960,7 @@ const file_store_instance_setting_proto_rawDesc = "" +
"\x06region\x18\x04 \x01(\tR\x06region\x12\x16\n" +
"\x06bucket\x18\x05 \x01(\tR\x06bucket\x12$\n" +
"\x0euse_path_style\x18\x06 \x01(\bR\fusePathStyle\x127\n" +
- "\x18insecure_skip_tls_verify\x18\a \x01(\bR\x15insecureSkipTlsVerify\":\n" +
- "\x1aInstanceMemoRelatedSetting\x12\x1c\n" +
- "\treactions\x18\x01 \x03(\tR\treactions\"w\n" +
+ "\x18insecure_skip_tls_verify\x18\a \x01(\bR\x15insecureSkipTlsVerify\"w\n" +
"\x13InstanceTagMetadata\x12=\n" +
"\x10background_color\x18\x01 \x01(\v2\x12.google.type.ColorR\x0fbackgroundColor\x12!\n" +
"\fblur_content\x18\x02 \x01(\bR\vblurContent\"\xb0\x01\n" +
@@ -2108,13 +2040,12 @@ const file_store_instance_setting_proto_rawDesc = "" +
"\n" +
"references\x18\n" +
" \x03(\tR\n" +
- "references*\xcc\x01\n" +
+ "references*\xce\x01\n" +
"\x12InstanceSettingKey\x12$\n" +
" INSTANCE_SETTING_KEY_UNSPECIFIED\x10\x00\x12\t\n" +
"\x05BASIC\x10\x01\x12\v\n" +
"\aGENERAL\x10\x02\x12\v\n" +
- "\aSTORAGE\x10\x03\x12\x10\n" +
- "\fMEMO_RELATED\x10\x04\x12\b\n" +
+ "\aSTORAGE\x10\x03\x12\b\n" +
"\x04TAGS\x10\x05\x12\x10\n" +
"\fNOTIFICATION\x10\x06\x12\x06\n" +
"\x02AI\x10\a\x12\n" +
@@ -2122,7 +2053,7 @@ const file_store_instance_setting_proto_rawDesc = "" +
"\x06ACCESS\x10\b\x12\x10\n" +
"\fUSAGE_LIMITS\x10\t\x12\x17\n" +
"\x13CONFIGURATION_STATE\x10\n" +
- "*s\n" +
+ "\"\x04\b\x04\x10\x04*\fMEMO_RELATED*s\n" +
"\vStorageType\x12\x1c\n" +
"\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\x19\n" +
"\x15STORAGE_TYPE_DATABASE\x10\x01\x12\x16\n" +
@@ -2153,7 +2084,7 @@ func file_store_instance_setting_proto_rawDescGZIP() []byte {
}
var file_store_instance_setting_proto_enumTypes = make([]protoimpl.EnumInfo, 5)
-var file_store_instance_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
+var file_store_instance_setting_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
var file_store_instance_setting_proto_goTypes = []any{
(InstanceSettingKey)(0), // 0: memos.store.InstanceSettingKey
(StorageType)(0), // 1: memos.store.StorageType
@@ -2167,54 +2098,52 @@ var file_store_instance_setting_proto_goTypes = []any{
(*Storage)(nil), // 9: memos.store.Storage
(*InstanceStorageSetting)(nil), // 10: memos.store.InstanceStorageSetting
(*StorageS3Config)(nil), // 11: memos.store.StorageS3Config
- (*InstanceMemoRelatedSetting)(nil), // 12: memos.store.InstanceMemoRelatedSetting
- (*InstanceTagMetadata)(nil), // 13: memos.store.InstanceTagMetadata
- (*InstanceTagsSetting)(nil), // 14: memos.store.InstanceTagsSetting
- (*InstanceNotificationSetting)(nil), // 15: memos.store.InstanceNotificationSetting
- (*InstanceAISetting)(nil), // 16: memos.store.InstanceAISetting
- (*AIProviderConfig)(nil), // 17: memos.store.AIProviderConfig
- (*TranscriptionConfig)(nil), // 18: memos.store.TranscriptionConfig
- (*InstanceAccessSetting)(nil), // 19: memos.store.InstanceAccessSetting
- (*InstanceUsageLimitsSetting)(nil), // 20: memos.store.InstanceUsageLimitsSetting
- (*InstanceConfigurationState)(nil), // 21: memos.store.InstanceConfigurationState
- nil, // 22: memos.store.InstanceTagsSetting.TagsEntry
- (*InstanceNotificationSetting_EmailSetting)(nil), // 23: memos.store.InstanceNotificationSetting.EmailSetting
- (*InstanceUsageLimitsSetting_UsageLimit)(nil), // 24: memos.store.InstanceUsageLimitsSetting.UsageLimit
- (*InstanceConfigurationState_ManagedResource)(nil), // 25: memos.store.InstanceConfigurationState.ManagedResource
- (*color.Color)(nil), // 26: google.type.Color
+ (*InstanceTagMetadata)(nil), // 12: memos.store.InstanceTagMetadata
+ (*InstanceTagsSetting)(nil), // 13: memos.store.InstanceTagsSetting
+ (*InstanceNotificationSetting)(nil), // 14: memos.store.InstanceNotificationSetting
+ (*InstanceAISetting)(nil), // 15: memos.store.InstanceAISetting
+ (*AIProviderConfig)(nil), // 16: memos.store.AIProviderConfig
+ (*TranscriptionConfig)(nil), // 17: memos.store.TranscriptionConfig
+ (*InstanceAccessSetting)(nil), // 18: memos.store.InstanceAccessSetting
+ (*InstanceUsageLimitsSetting)(nil), // 19: memos.store.InstanceUsageLimitsSetting
+ (*InstanceConfigurationState)(nil), // 20: memos.store.InstanceConfigurationState
+ nil, // 21: memos.store.InstanceTagsSetting.TagsEntry
+ (*InstanceNotificationSetting_EmailSetting)(nil), // 22: memos.store.InstanceNotificationSetting.EmailSetting
+ (*InstanceUsageLimitsSetting_UsageLimit)(nil), // 23: memos.store.InstanceUsageLimitsSetting.UsageLimit
+ (*InstanceConfigurationState_ManagedResource)(nil), // 24: memos.store.InstanceConfigurationState.ManagedResource
+ (*color.Color)(nil), // 25: google.type.Color
}
var file_store_instance_setting_proto_depIdxs = []int32{
0, // 0: memos.store.InstanceSetting.key:type_name -> memos.store.InstanceSettingKey
6, // 1: memos.store.InstanceSetting.basic_setting:type_name -> memos.store.InstanceBasicSetting
7, // 2: memos.store.InstanceSetting.general_setting:type_name -> memos.store.InstanceGeneralSetting
10, // 3: memos.store.InstanceSetting.storage_setting:type_name -> memos.store.InstanceStorageSetting
- 12, // 4: memos.store.InstanceSetting.memo_related_setting:type_name -> memos.store.InstanceMemoRelatedSetting
- 14, // 5: memos.store.InstanceSetting.tags_setting:type_name -> memos.store.InstanceTagsSetting
- 15, // 6: memos.store.InstanceSetting.notification_setting:type_name -> memos.store.InstanceNotificationSetting
- 16, // 7: memos.store.InstanceSetting.ai_setting:type_name -> memos.store.InstanceAISetting
- 19, // 8: memos.store.InstanceSetting.access_setting:type_name -> memos.store.InstanceAccessSetting
- 20, // 9: memos.store.InstanceSetting.usage_limits_setting:type_name -> memos.store.InstanceUsageLimitsSetting
- 8, // 10: memos.store.InstanceGeneralSetting.custom_profile:type_name -> memos.store.InstanceCustomProfile
- 1, // 11: memos.store.Storage.type:type_name -> memos.store.StorageType
- 11, // 12: memos.store.Storage.s3_config:type_name -> memos.store.StorageS3Config
- 4, // 13: memos.store.InstanceStorageSetting.storage_type:type_name -> memos.store.InstanceStorageSetting.StorageType
- 11, // 14: memos.store.InstanceStorageSetting.s3_config:type_name -> memos.store.StorageS3Config
- 9, // 15: memos.store.InstanceStorageSetting.storages:type_name -> memos.store.Storage
- 26, // 16: memos.store.InstanceTagMetadata.background_color:type_name -> google.type.Color
- 22, // 17: memos.store.InstanceTagsSetting.tags:type_name -> memos.store.InstanceTagsSetting.TagsEntry
- 23, // 18: memos.store.InstanceNotificationSetting.email:type_name -> memos.store.InstanceNotificationSetting.EmailSetting
- 17, // 19: memos.store.InstanceAISetting.providers:type_name -> memos.store.AIProviderConfig
- 18, // 20: memos.store.InstanceAISetting.transcription:type_name -> memos.store.TranscriptionConfig
- 2, // 21: memos.store.AIProviderConfig.type:type_name -> memos.store.AIProviderType
- 3, // 22: memos.store.InstanceAccessSetting.access_mode:type_name -> memos.store.InstanceAccessMode
- 24, // 23: memos.store.InstanceUsageLimitsSetting.limits:type_name -> memos.store.InstanceUsageLimitsSetting.UsageLimit
- 25, // 24: memos.store.InstanceConfigurationState.resources:type_name -> memos.store.InstanceConfigurationState.ManagedResource
- 13, // 25: memos.store.InstanceTagsSetting.TagsEntry.value:type_name -> memos.store.InstanceTagMetadata
- 26, // [26:26] is the sub-list for method output_type
- 26, // [26:26] is the sub-list for method input_type
- 26, // [26:26] is the sub-list for extension type_name
- 26, // [26:26] is the sub-list for extension extendee
- 0, // [0:26] is the sub-list for field type_name
+ 13, // 4: memos.store.InstanceSetting.tags_setting:type_name -> memos.store.InstanceTagsSetting
+ 14, // 5: memos.store.InstanceSetting.notification_setting:type_name -> memos.store.InstanceNotificationSetting
+ 15, // 6: memos.store.InstanceSetting.ai_setting:type_name -> memos.store.InstanceAISetting
+ 18, // 7: memos.store.InstanceSetting.access_setting:type_name -> memos.store.InstanceAccessSetting
+ 19, // 8: memos.store.InstanceSetting.usage_limits_setting:type_name -> memos.store.InstanceUsageLimitsSetting
+ 8, // 9: memos.store.InstanceGeneralSetting.custom_profile:type_name -> memos.store.InstanceCustomProfile
+ 1, // 10: memos.store.Storage.type:type_name -> memos.store.StorageType
+ 11, // 11: memos.store.Storage.s3_config:type_name -> memos.store.StorageS3Config
+ 4, // 12: memos.store.InstanceStorageSetting.storage_type:type_name -> memos.store.InstanceStorageSetting.StorageType
+ 11, // 13: memos.store.InstanceStorageSetting.s3_config:type_name -> memos.store.StorageS3Config
+ 9, // 14: memos.store.InstanceStorageSetting.storages:type_name -> memos.store.Storage
+ 25, // 15: memos.store.InstanceTagMetadata.background_color:type_name -> google.type.Color
+ 21, // 16: memos.store.InstanceTagsSetting.tags:type_name -> memos.store.InstanceTagsSetting.TagsEntry
+ 22, // 17: memos.store.InstanceNotificationSetting.email:type_name -> memos.store.InstanceNotificationSetting.EmailSetting
+ 16, // 18: memos.store.InstanceAISetting.providers:type_name -> memos.store.AIProviderConfig
+ 17, // 19: memos.store.InstanceAISetting.transcription:type_name -> memos.store.TranscriptionConfig
+ 2, // 20: memos.store.AIProviderConfig.type:type_name -> memos.store.AIProviderType
+ 3, // 21: memos.store.InstanceAccessSetting.access_mode:type_name -> memos.store.InstanceAccessMode
+ 23, // 22: memos.store.InstanceUsageLimitsSetting.limits:type_name -> memos.store.InstanceUsageLimitsSetting.UsageLimit
+ 24, // 23: memos.store.InstanceConfigurationState.resources:type_name -> memos.store.InstanceConfigurationState.ManagedResource
+ 12, // 24: memos.store.InstanceTagsSetting.TagsEntry.value:type_name -> memos.store.InstanceTagMetadata
+ 25, // [25:25] is the sub-list for method output_type
+ 25, // [25:25] is the sub-list for method input_type
+ 25, // [25:25] is the sub-list for extension type_name
+ 25, // [25:25] is the sub-list for extension extendee
+ 0, // [0:25] is the sub-list for field type_name
}
func init() { file_store_instance_setting_proto_init() }
@@ -2226,7 +2155,6 @@ func file_store_instance_setting_proto_init() {
(*InstanceSetting_BasicSetting)(nil),
(*InstanceSetting_GeneralSetting)(nil),
(*InstanceSetting_StorageSetting)(nil),
- (*InstanceSetting_MemoRelatedSetting)(nil),
(*InstanceSetting_TagsSetting)(nil),
(*InstanceSetting_NotificationSetting)(nil),
(*InstanceSetting_AiSetting)(nil),
@@ -2236,14 +2164,14 @@ func file_store_instance_setting_proto_init() {
file_store_instance_setting_proto_msgTypes[4].OneofWrappers = []any{
(*Storage_S3Config)(nil),
}
- file_store_instance_setting_proto_msgTypes[19].OneofWrappers = []any{}
+ file_store_instance_setting_proto_msgTypes[18].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_instance_setting_proto_rawDesc), len(file_store_instance_setting_proto_rawDesc)),
NumEnums: 5,
- NumMessages: 21,
+ NumMessages: 20,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/store/instance_setting.proto b/proto/store/instance_setting.proto
index dd6d0579a..c17a3c9cc 100644
--- a/proto/store/instance_setting.proto
+++ b/proto/store/instance_setting.proto
@@ -14,8 +14,8 @@ enum InstanceSettingKey {
GENERAL = 2;
// STORAGE is the key for storage settings.
STORAGE = 3;
- // MEMO_RELATED is the key for memo related settings.
- MEMO_RELATED = 4;
+ reserved 4;
+ reserved "MEMO_RELATED";
// TAGS is the key for tag metadata.
TAGS = 5;
// NOTIFICATION is the key for notification transport settings.
@@ -34,12 +34,13 @@ enum InstanceSettingKey {
}
message InstanceSetting {
+ reserved 5;
+ reserved "memo_related_setting";
InstanceSettingKey key = 1;
oneof value {
InstanceBasicSetting basic_setting = 2;
InstanceGeneralSetting general_setting = 3;
InstanceStorageSetting storage_setting = 4;
- InstanceMemoRelatedSetting memo_related_setting = 5;
InstanceTagsSetting tags_setting = 6;
InstanceNotificationSetting notification_setting = 7;
InstanceAISetting ai_setting = 8;
@@ -147,11 +148,6 @@ message StorageS3Config {
bool insecure_skip_tls_verify = 7;
}
-message InstanceMemoRelatedSetting {
- // reactions is the list of reactions.
- repeated string reactions = 1;
-}
-
message InstanceTagMetadata {
// Optional background color for the tag label.
// When unset, the default tag color is used.
diff --git a/server/api/instance_service.go b/server/api/instance_service.go
index 5b07b239d..89f8055c4 100644
--- a/server/api/instance_service.go
+++ b/server/api/instance_service.go
@@ -118,10 +118,6 @@ func (s *APIService) getInstanceSettingByName(ctx context.Context, name string,
var setting *storepb.InstanceGeneralSetting
setting, err = s.Store.GetInstanceGeneralSetting(ctx)
instanceSetting = &storepb.InstanceSetting{Key: instanceSettingKey, Value: &storepb.InstanceSetting_GeneralSetting{GeneralSetting: setting}}
- case storepb.InstanceSettingKey_MEMO_RELATED:
- var setting *storepb.InstanceMemoRelatedSetting
- setting, err = s.Store.GetInstanceMemoRelatedSetting(ctx)
- instanceSetting = &storepb.InstanceSetting{Key: instanceSettingKey, Value: &storepb.InstanceSetting_MemoRelatedSetting{MemoRelatedSetting: setting}}
case storepb.InstanceSettingKey_STORAGE:
var setting *storepb.InstanceStorageSetting
setting, err = s.Store.GetInstanceStorageSetting(ctx)
diff --git a/server/api/test/instance_service_configuration_test.go b/server/api/test/instance_service_configuration_test.go
index 038bf85a8..1164a6fc5 100644
--- a/server/api/test/instance_service_configuration_test.go
+++ b/server/api/test/instance_service_configuration_test.go
@@ -109,8 +109,8 @@ func TestConfigurationGuard(t *testing.T) {
// Unmanaged resources are not guarded.
_, err = ts.Service.UpdateInstanceSetting(adminCtx, &apipb.UpdateInstanceSettingRequest{InstanceSetting: &apipb.InstanceSetting{
- Name: "instance/settings/MEMO_RELATED",
- Value: &apipb.InstanceSetting_MemoRelatedSetting_{MemoRelatedSetting: &apipb.InstanceSetting_MemoRelatedSetting{Reactions: []string{"👍"}}},
+ Name: "instance/settings/NOTIFICATION",
+ Value: &apipb.InstanceSetting_NotificationSetting_{NotificationSetting: &apipb.InstanceSetting_NotificationSetting{}},
}})
require.NoError(t, err)
}
diff --git a/server/api/test/instance_service_test.go b/server/api/test/instance_service_test.go
index 48ff24037..04b9ea4fb 100644
--- a/server/api/test/instance_service_test.go
+++ b/server/api/test/instance_service_test.go
@@ -225,25 +225,16 @@ func TestGetInstanceSetting(t *testing.T) {
require.NotNil(t, storageSetting)
})
- t.Run("GetInstanceSetting - memo related setting", func(t *testing.T) {
+ t.Run("GetInstanceSetting - retired reaction setting", func(t *testing.T) {
// Create test service for this specific test
ts := NewTestService(t)
defer ts.Cleanup()
- // Call GetInstanceSetting for memo related setting
- req := &apipb.GetInstanceSettingRequest{
+ _, err := ts.Service.GetInstanceSetting(ctx, &apipb.GetInstanceSettingRequest{
Name: "instance/settings/MEMO_RELATED",
- }
- resp, err := ts.Service.GetInstanceSetting(ctx, req)
+ })
+ require.Error(t, err)
- // Verify response
- require.NoError(t, err)
- require.NotNil(t, resp)
- require.Equal(t, "instance/settings/MEMO_RELATED", resp.Name)
-
- // The memo related setting should have a memo_related_setting field
- memoRelatedSetting := resp.GetMemoRelatedSetting()
- require.NotNil(t, memoRelatedSetting)
})
t.Run("GetInstanceSetting - tags setting", func(t *testing.T) {
@@ -366,7 +357,7 @@ func TestBatchGetInstanceSettings(t *testing.T) {
Names: []string{
"instance/settings/TAGS",
"instance/settings/GENERAL",
- "instance/settings/MEMO_RELATED",
+ "instance/settings/ACCESS",
},
})
@@ -377,8 +368,8 @@ func TestBatchGetInstanceSettings(t *testing.T) {
require.NotNil(t, resp.InstanceSettings[0].GetTagsSetting())
require.Equal(t, "instance/settings/GENERAL", resp.InstanceSettings[1].Name)
require.NotNil(t, resp.InstanceSettings[1].GetGeneralSetting())
- require.Equal(t, "instance/settings/MEMO_RELATED", resp.InstanceSettings[2].Name)
- require.NotNil(t, resp.InstanceSettings[2].GetMemoRelatedSetting())
+ require.Equal(t, "instance/settings/ACCESS", resp.InstanceSettings[2].Name)
+ require.NotNil(t, resp.InstanceSettings[2].GetAccessSetting())
})
t.Run("BatchGetInstanceSettings - admin-only setting requires admin", func(t *testing.T) {
diff --git a/store/db/mysql/reaction.go b/store/db/mysql/reaction.go
index a31327258..e88b05297 100644
--- a/store/db/mysql/reaction.go
+++ b/store/db/mysql/reaction.go
@@ -26,32 +26,27 @@ func (d *DB) UpsertReaction(ctx context.Context, upsert *store.Reaction) (*store
}
}
- result, err := tx.ExecContext(ctx, `
+ _, err = tx.ExecContext(ctx, `
INSERT INTO reaction (creator_id, memo_id, reaction_type)
SELECT ?, memo.id, ?
FROM memo
WHERE memo.id = ?
LOCK IN SHARE MODE
+ ON DUPLICATE KEY UPDATE id = reaction.id
`, upsert.CreatorID, upsert.ReactionType, upsert.MemoID)
if err != nil {
return nil, err
}
- rowsAffected, err := result.RowsAffected()
- if err != nil {
- return nil, err
- }
- if rowsAffected == 0 {
- return nil, errors.Wrap(store.ErrReactionMemoNotFound, "failed to create reaction")
+ if err := tx.QueryRowContext(ctx, `
+ SELECT id, UNIX_TIMESTAMP(created_ts) FROM reaction
+ WHERE creator_id = ? AND memo_id = ? AND reaction_type = ?
+ `, upsert.CreatorID, upsert.MemoID, upsert.ReactionType).Scan(&upsert.ID, &upsert.CreatedTs); err != nil {
+ if errors.Is(err, sql.ErrNoRows) {
+ return nil, errors.Wrap(store.ErrReactionMemoNotFound, "failed to create reaction")
+ }
+ return nil, errors.Wrap(err, "failed to read reaction")
}
- rawID, err := result.LastInsertId()
- if err != nil {
- return nil, err
- }
- upsert.ID = int32(rawID)
- if err := tx.QueryRowContext(ctx, "SELECT UNIX_TIMESTAMP(created_ts) FROM reaction WHERE id = ?", upsert.ID).Scan(&upsert.CreatedTs); err != nil {
- return nil, errors.Wrap(err, "failed to read created reaction")
- }
if err := tx.Commit(); err != nil {
return nil, errors.Wrap(err, "failed to commit reaction upsert transaction")
}
diff --git a/store/db/postgres/reaction.go b/store/db/postgres/reaction.go
index c246c8fed..c18842b78 100644
--- a/store/db/postgres/reaction.go
+++ b/store/db/postgres/reaction.go
@@ -43,6 +43,7 @@ func upsertPostgresReaction(ctx context.Context, querier postgresReactionUpsertQ
FROM memo
WHERE memo.id = $3
FOR KEY SHARE OF memo
+ ON CONFLICT (creator_id, memo_id, reaction_type) DO UPDATE SET reaction_type = EXCLUDED.reaction_type
RETURNING id, created_ts
`, upsert.CreatorID, upsert.ReactionType, upsert.MemoID).Scan(
&upsert.ID,
diff --git a/store/db/sqlite/reaction.go b/store/db/sqlite/reaction.go
index e1284ced1..cfeb8a0eb 100644
--- a/store/db/sqlite/reaction.go
+++ b/store/db/sqlite/reaction.go
@@ -42,6 +42,7 @@ func upsertSQLiteReaction(ctx context.Context, querier sqliteReactionUpsertQueri
SELECT ?, memo.id, ?
FROM memo
WHERE memo.id = ?
+ ON CONFLICT (creator_id, memo_id, reaction_type) DO UPDATE SET reaction_type = excluded.reaction_type
RETURNING id, created_ts
`, upsert.CreatorID, upsert.ReactionType, upsert.MemoID).Scan(
&upsert.ID,
diff --git a/store/demo_seed_test.go b/store/demo_seed_test.go
index f8c33484e..8a547f53d 100644
--- a/store/demo_seed_test.go
+++ b/store/demo_seed_test.go
@@ -8,8 +8,10 @@ import (
"github.com/stretchr/testify/require"
"golang.org/x/crypto/bcrypt"
+ "google.golang.org/protobuf/proto"
"github.com/usememos/memos/internal/profile"
+ "github.com/usememos/memos/markdown"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store/db/sqlite"
)
@@ -63,7 +65,12 @@ func TestDemoSeed(t *testing.T) {
require.GreaterOrEqual(t, len(memos), 20)
var hasPublic, hasProtected, hasLocation, hasNestedTag, hasMention bool
+ markdownService := markdown.NewService(markdown.WithTagExtension(), markdown.WithMentionExtension())
for _, memo := range memos {
+ derived, err := markdownService.ExtractAll([]byte(memo.Content))
+ require.NoError(t, err)
+ require.ElementsMatch(t, derived.Tags, memo.Payload.GetTags(), "seed tags match %s", memo.UID)
+ require.True(t, proto.Equal(derived.Property, memo.Payload.GetProperty()), "seed properties match %s", memo.UID)
hasPublic = hasPublic || memo.Visibility == store.Public
hasProtected = hasProtected || memo.Visibility == store.Protected
hasLocation = hasLocation || memo.Payload.GetLocation() != nil
@@ -77,6 +84,9 @@ func TestDemoSeed(t *testing.T) {
require.True(t, hasLocation, "demo should include location metadata")
require.True(t, hasNestedTag, "demo should include nested tags")
require.True(t, hasMention, "demo should include a mention")
+ rootMemos, err := stores.ListMemos(ctx, &store.FindMemo{ExcludeComments: true})
+ require.NoError(t, err)
+ require.Equal(t, "welcome0000001", rootMemos[0].UID, "Explore opens with the welcome memo")
relations, err := stores.ListMemoRelations(ctx, &store.FindMemoRelation{})
require.NoError(t, err)
@@ -91,22 +101,47 @@ func TestDemoSeed(t *testing.T) {
reactions, err := stores.ListReactions(ctx, &store.FindReaction{})
require.NoError(t, err)
require.NotEmpty(t, reactions, "demo should include reactions")
+ for _, reaction := range reactions {
+ reaction.Policy = &store.ReactionWritePolicy{ActorUserID: reaction.CreatorID}
+ _, err := stores.UpsertReaction(ctx, reaction)
+ require.NoError(t, err, "seed reactor can participate in memo %d", reaction.MemoID)
+ }
attachments, err := stores.ListAttachments(ctx, &store.FindAttachment{HasRelatedMemo: true})
require.NoError(t, err)
require.NotEmpty(t, attachments, "demo should include a memo attachment")
- // The seed holds content only: settings, including the reaction list, come
+ // The seed holds content only: settings come
// from the demo's declarative configuration, and no account carries a
// seeded credential.
- memoRelated, err := stores.GetUncachedInstanceSetting(ctx, &store.FindInstanceSetting{Name: "MEMO_RELATED"})
+ notification, err := stores.GetUncachedInstanceSetting(ctx, &store.FindInstanceSetting{Name: "NOTIFICATION"})
require.NoError(t, err)
- require.Nil(t, memoRelated, "the seed does not set instance settings")
+ require.Nil(t, notification, "the seed does not set instance settings")
userSettings, err := stores.ListUserSettings(ctx, &store.FindUserSetting{})
require.NoError(t, err)
require.Empty(t, userSettings, "the seed does not set user settings or access tokens")
}
+func TestDemoSeedVisitorParticipation(t *testing.T) {
+ ctx := context.Background()
+ stores := newDemoStore(t)
+ require.NoError(t, stores.Seed(ctx))
+ visitor, err := stores.CreateUser(ctx, &store.User{Username: "demo-visitor", Role: store.RoleUser, PasswordHash: "hash"})
+ require.NoError(t, err)
+
+ for _, uid := range []string{"welcome0000001", "goldenhour0001", "johnnygitcheat1", "protectedintro"} {
+ memo, err := stores.GetMemo(ctx, &store.FindMemo{UID: &uid})
+ require.NoError(t, err)
+ require.NotNil(t, memo)
+ require.Nil(t, memo.SpaceID, "visitors can participate without sample Space membership")
+ _, err = stores.UpsertReaction(ctx, &store.Reaction{
+ CreatorID: visitor.ID, MemoID: memo.ID, ReactionType: "👍",
+ Policy: &store.ReactionWritePolicy{ActorUserID: visitor.ID},
+ })
+ require.NoError(t, err, "new visitors can react to %s", uid)
+ }
+}
+
// The server seeds after the declarative configuration is applied, so the
// administrator may already exist: the seed keeps that row, fills only the
// profile fields left empty, and attaches its content to it.
diff --git a/store/instance_setting.go b/store/instance_setting.go
index dba9671b3..ef1a201a9 100644
--- a/store/instance_setting.go
+++ b/store/instance_setting.go
@@ -39,8 +39,7 @@ func encodeInstanceSetting(upsert *storepb.InstanceSetting) (*InstanceSetting, e
} else if upsert.Key == storepb.InstanceSettingKey_STORAGE {
NormalizeInstanceStorageSetting(upsert.GetStorageSetting())
valueBytes, err = protojson.Marshal(upsert.GetStorageSetting())
- } else if upsert.Key == storepb.InstanceSettingKey_MEMO_RELATED {
- valueBytes, err = protojson.Marshal(upsert.GetMemoRelatedSetting())
+
} else if upsert.Key == storepb.InstanceSettingKey_TAGS {
valueBytes, err = protojson.Marshal(upsert.GetTagsSetting())
} else if upsert.Key == storepb.InstanceSettingKey_NOTIFICATION {
@@ -229,31 +228,6 @@ func (s *Store) AllowsAnonymousAccess(ctx context.Context) (bool, error) {
return setting.AccessMode == storepb.InstanceAccessMode_INSTANCE_ACCESS_MODE_PUBLIC, nil
}
-// DefaultReactions is the default reactions for memo related setting.
-var DefaultReactions = []string{"👍", "👎", "❤️", "🎉", "😄", "😕", "😢", "😡"}
-
-func (s *Store) GetInstanceMemoRelatedSetting(ctx context.Context) (*storepb.InstanceMemoRelatedSetting, error) {
- instanceSetting, err := s.GetInstanceSetting(ctx, &FindInstanceSetting{
- Name: storepb.InstanceSettingKey_MEMO_RELATED.String(),
- })
- if err != nil {
- return nil, errors.Wrap(err, "failed to get instance general setting")
- }
-
- instanceMemoRelatedSetting := &storepb.InstanceMemoRelatedSetting{}
- if instanceSetting != nil {
- instanceMemoRelatedSetting = instanceSetting.GetMemoRelatedSetting()
- }
- if len(instanceMemoRelatedSetting.Reactions) == 0 {
- instanceMemoRelatedSetting.Reactions = append(instanceMemoRelatedSetting.Reactions, DefaultReactions...)
- }
- s.cacheInstanceSetting(ctx, &storepb.InstanceSetting{
- Key: storepb.InstanceSettingKey_MEMO_RELATED,
- Value: &storepb.InstanceSetting_MemoRelatedSetting{MemoRelatedSetting: instanceMemoRelatedSetting},
- })
- return instanceMemoRelatedSetting, nil
-}
-
func (s *Store) GetInstanceTagsSetting(ctx context.Context) (*storepb.InstanceTagsSetting, error) {
instanceSetting, err := s.GetInstanceSetting(ctx, &FindInstanceSetting{
Name: storepb.InstanceSettingKey_TAGS.String(),
@@ -379,12 +353,6 @@ func convertInstanceSettingFromRaw(instanceSettingRaw *InstanceSetting) (*storep
return nil, err
}
instanceSetting.Value = &storepb.InstanceSetting_StorageSetting{StorageSetting: storageSetting}
- case storepb.InstanceSettingKey_MEMO_RELATED.String():
- memoRelatedSetting := &storepb.InstanceMemoRelatedSetting{}
- if err := protojsonUnmarshaler.Unmarshal([]byte(instanceSettingRaw.Value), memoRelatedSetting); err != nil {
- return nil, err
- }
- instanceSetting.Value = &storepb.InstanceSetting_MemoRelatedSetting{MemoRelatedSetting: memoRelatedSetting}
case storepb.InstanceSettingKey_TAGS.String():
tagsSetting := &storepb.InstanceTagsSetting{}
if err := protojsonUnmarshaler.Unmarshal([]byte(instanceSettingRaw.Value), tagsSetting); err != nil {
diff --git a/store/seed/sqlite/01__dump.sql b/store/seed/sqlite/01__dump.sql
index c5b24d1d9..50fc926cd 100644
--- a/store/seed/sqlite/01__dump.sql
+++ b/store/seed/sqlite/01__dump.sql
@@ -16,20 +16,20 @@
-- or access their Space memberships
--
-- Cast (passwords were random and discarded — seed users are NPCs):
--- 1 steven (ADMIN) — Memos maintainer; welcome, sponsors, changelog, tips
+-- 1 steven (ADMIN) — Memos maintainer; welcome, sponsors, release notes, tips
-- 2 johnny (USER) — backend dev & reader; TILs, cheat sheets, weekly review
-- 3 bob (USER) — traveling photographer; locations, photo attachment
-- 4 sam (USER) — reader & cook; books, recipes, movie lists
-- ============================================================================
-INSERT OR IGNORE INTO user (username,role,nickname,description,password_hash) VALUES('steven','ADMIN','Steven','Creator & maintainer of Memos. Product updates and notes from building it 🪴','$2y$12$A/8h4XS6hQmRVVSRFQHsR.wWVJbSG40avhuphOBdK5ws99W1kunr6');
-UPDATE user SET nickname = CASE WHEN nickname = '' THEN 'Steven' ELSE nickname END, description = CASE WHEN description = '' THEN 'Creator & maintainer of Memos. Product updates and notes from building it 🪴' ELSE description END WHERE username = 'steven';
-INSERT OR IGNORE INTO user (username,role,nickname,description,password_hash) VALUES('johnny','USER','Johnny','Backend dev. Notes about Git, Go, and whatever I broke today 🔧','$2y$12$CaqLYlvpHjL1qbVNny0lre59ctT2doIvVLh4Pn1yipsDUtbcbeum6');
-UPDATE user SET nickname = CASE WHEN nickname = '' THEN 'Johnny' ELSE nickname END, description = CASE WHEN description = '' THEN 'Backend dev. Notes about Git, Go, and whatever I broke today 🔧' ELSE description END WHERE username = 'johnny';
-INSERT OR IGNORE INTO user (username,role,nickname,description,password_hash) VALUES('bob','USER','Bob','Traveling photographer. Writing places down before I forget them 🌍','$2y$12$A/8h4XS6hQmRVVSRFQHsR.wWVJbSG40avhuphOBdK5ws99W1kunr6');
-UPDATE user SET nickname = CASE WHEN nickname = '' THEN 'Bob' ELSE nickname END, description = CASE WHEN description = '' THEN 'Traveling photographer. Writing places down before I forget them 🌍' ELSE description END WHERE username = 'bob';
-INSERT OR IGNORE INTO user (username,role,nickname,description,password_hash) VALUES('sam','USER','Sam','Reader, cook, maker of lists 📚🍜','$2y$12$CaqLYlvpHjL1qbVNny0lre59ctT2doIvVLh4Pn1yipsDUtbcbeum6');
-UPDATE user SET nickname = CASE WHEN nickname = '' THEN 'Sam' ELSE nickname END, description = CASE WHEN description = '' THEN 'Reader, cook, maker of lists 📚🍜' ELSE description END WHERE username = 'sam';
+INSERT OR IGNORE INTO user (username,role,nickname,description,password_hash) VALUES('steven','ADMIN','Steven','Building Memos. Product notes and the occasional release checklist.','$2y$12$A/8h4XS6hQmRVVSRFQHsR.wWVJbSG40avhuphOBdK5ws99W1kunr6');
+UPDATE user SET nickname = CASE WHEN nickname = '' THEN 'Steven' ELSE nickname END, description = CASE WHEN description = '' THEN 'Building Memos. Product notes and the occasional release checklist.' ELSE description END WHERE username = 'steven';
+INSERT OR IGNORE INTO user (username,role,nickname,description,password_hash) VALUES('johnny','USER','Johnny','Backend developer. Git notes, side projects, and a growing reading list.','$2y$12$CaqLYlvpHjL1qbVNny0lre59ctT2doIvVLh4Pn1yipsDUtbcbeum6');
+UPDATE user SET nickname = CASE WHEN nickname = '' THEN 'Johnny' ELSE nickname END, description = CASE WHEN description = '' THEN 'Backend developer. Git notes, side projects, and a growing reading list.' ELSE description END WHERE username = 'johnny';
+INSERT OR IGNORE INTO user (username,role,nickname,description,password_hash) VALUES('bob','USER','Bob','Walks, train journeys, and sketches from the way home.','$2y$12$A/8h4XS6hQmRVVSRFQHsR.wWVJbSG40avhuphOBdK5ws99W1kunr6');
+UPDATE user SET nickname = CASE WHEN nickname = '' THEN 'Bob' ELSE nickname END, description = CASE WHEN description = '' THEN 'Walks, train journeys, and sketches from the way home.' ELSE description END WHERE username = 'bob';
+INSERT OR IGNORE INTO user (username,role,nickname,description,password_hash) VALUES('sam','USER','Sam','Books to read, films to watch, and things to cook.','$2y$12$CaqLYlvpHjL1qbVNny0lre59ctT2doIvVLh4Pn1yipsDUtbcbeum6');
+UPDATE user SET nickname = CASE WHEN nickname = '' THEN 'Sam' ELSE nickname END, description = CASE WHEN description = '' THEN 'Books to read, films to watch, and things to cook.' ELSE description END WHERE username = 'sam';
-- ============================================================================
-- Spaces — placement and audience are independent. Public and protected memos
@@ -63,114 +63,115 @@ INSERT INTO space_member (space_id,user_id,status,role) VALUES(4,(SELECT id FROM
INSERT INTO space_member (space_id,user_id,status,role) VALUES(4,(SELECT id FROM user WHERE username='steven'),'ACTIVE','USER');
INSERT INTO space_member (space_id,user_id,status,role) VALUES(4,(SELECT id FROM user WHERE username='johnny'),'ACTIVE','USER');
--- Recipes and movies stay unassigned; a memo does not need a Space.
+-- Most examples stay unassigned so any signed-in visitor can react and comment.
+-- A few notes remain in each sample Space to demonstrate placement.
-- ============================================================================
--- Pinned memos (Welcome leads — newest created_ts in the pinned section)
+-- Pinned memos (Welcome is also the newest root memo, so it leads Explore)
-- ============================================================================
--- 1. Welcome (steven, pinned) — orientation + SSO call-to-action + protected teaser
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,pinned,payload,space_id) VALUES(1,'welcome0000001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-2 days'),strftime('%s','now','-2 days'),replace('# Welcome to Memos 👋\n\nHi, I''m Steven — I build Memos. Welcome to our shared home for product updates, projects, trips, and reading notes.\n\nMemos is an open-source, self-hosted home for short-form thoughts. Capture quickly, organize lightly, own everything.\n\n> Most apps treat notes like documents. Memos treats them like thoughts — small, timestamped, searchable.\n\n## Make yourself at home\n\n- [ ] Scroll this Explore feed — everything here was written with Memos\n- [ ] React to a memo you like (🎉 works great on this one)\n- [ ] **Sign in** to write your own memos. Create a Space for a project or a group.\n- [ ] Write your first memo. One sentence is plenty. That''s the point.\n- [ ] Like it? Star [the repo](https://github.com/usememos/memos) ⭐\n\n🔒 *Psst — a few memos on this instance are hidden until you sign in. Anyone signed in can read them.*\n\n## What Memos can do\n\n| Feature | Where to see it |\n|---------|-----------------|\n| **Markdown** | Everywhere — tables, `code`, task lists, quotes |\n| **Tags** | `#dev/git` — nested tags grow a tree in the sidebar |\n| **Spaces** | Group related memos and invite people to contribute |\n| **Space icons** | Choose an emoji or a symbol for each Space |\n| **Comments & reactions** | Right under this memo 👇 |\n| **Memo references** | Johnny''s weekly review links back to his week |\n| **Attachments** | Bob''s golden-hour art from the coastal trail |\n| **Locations** | Look for the 📍 pins |\n| **Visibility** | Public, protected, private, or Space members — chosen per memo |\n\n## Take it home\n\n```bash\ndocker run -d -p 5230:5230 -v ~/.memos:/var/opt/memos neosmemo/memos:stable\n```\n\nYour data lives in one SQLite file, on your machine. #welcome #getting-started','\n',char(10)),'PUBLIC',1,'{"tags":["welcome","getting-started"],"property":{"hasLink":true,"hasCode":true,"hasTaskList":true,"hasIncompleteTasks":true}}',1);
+-- 1. Welcome (steven, pinned) — a short introduction and a route into the examples
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,pinned,payload,space_id) VALUES(1,'welcome0000001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-10 minutes'),strftime('%s','now','-10 minutes'),replace('# Welcome to Memos\n\nMemos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.\n\nThis Explore feed contains sample memos from four people. Sign in to write on your own timeline. You can also add reactions and comments to the unassigned examples here.\n\nTry [Bob’s coastal sketch](/memos/goldenhour0001), [Sam’s watchlist](/memos/sammovies00001), or the references in [Johnny’s weekly review](/memos/johnnyweekly001). A few Protected memos appear after sign-in. The sample spaces belong to the demo accounts; you can create a space of your own.\n\n[Documentation](https://usememos.com/docs) · [Source code](https://github.com/usememos/memos)\n\n#welcome #getting-started','\n',char(10)),'PUBLIC',1,'{"property":{"hasLink":true,"title":"Welcome to Memos"},"tags":["welcome","getting-started"]}',NULL);
-- 2. Sponsors (steven, pinned) — sits below Welcome (older created_ts)
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,pinned,payload,space_id) VALUES(2,'sponsors000001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-6 days'),strftime('%s','now','-6 days'),replace('Memos is free and open source, kept independent by its sponsors — no ads, no telemetry, no paywalls. 🙏 If you build with Memos, please consider supporting them in return.\n\n## ⭐ Sponsors\n\n\n\nCut code review time & bugs in half, instantly. [coderabbit.link/usememos →](https://coderabbit.link/usememos)\n\n---\n\n**TestMu AI** — The world’s first full-stack Agentic AI Quality Engineering platform. [testmuai.com →](https://www.testmuai.com/?utm_medium=sponsor&utm_source=memos)\n\n---\n\nWant to see your company here? Reach out via [GitHub Sponsors](https://github.com/sponsors/usememos).\n\n#sponsors','\n',char(10)),'PUBLIC',1,'{"tags":["sponsors"],"property":{"hasLink":true}}',1);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,pinned,payload,space_id) VALUES(2,'sponsors000001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-6 days'),strftime('%s','now','-6 days'),replace('Memos is free and open source, kept independent by its sponsors — no ads, no telemetry, no paywalls. 🙏 If you build with Memos, please consider supporting them in return.\n\n## ⭐ Sponsors\n\n\n\nCut code review time & bugs in half, instantly. [coderabbit.link/usememos →](https://coderabbit.link/usememos)\n\n---\n\n**TestMu AI** — The world’s first full-stack Agentic AI Quality Engineering platform. [testmuai.com →](https://www.testmuai.com/?utm_medium=sponsor&utm_source=memos)\n\n---\n\nWant to see your company here? Reach out via [GitHub Sponsors](https://github.com/sponsors/usememos).\n\n#sponsors','\n',char(10)),'PUBLIC',1,'{"property":{"hasLink":true},"tags":["sponsors"]}',1);
-- ============================================================================
-- Public timeline — mixed lengths, four voices, dense in the last 48 hours
-- and thinning out toward -22 days so the feed reads as a living instance
-- ============================================================================
--- 10. Steven: official Chrome extension launch (featured first in Explore)
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(10,'webclipper0001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-30 minutes'),strftime('%s','now','-30 minutes'),replace('# ✂️ Memos Web Clipper for Chrome\n\nThe ***official*** Memos Web Clipper turns the page you''re reading into a source-linked memo in under five seconds.\n\n[Add Memos Web Clipper to Chrome →](https://chromewebstore.google.com/detail/memos-web-clipper/nebaoebnljalfegiidibihhkebeiklbl)\n\n| Capture from Chrome | What lands in Memos |\n|---------------------|---------------------|\n| Current page | Title, summary, and source link |\n| Text selection | Quoted excerpt with its source |\n| Selected image | A real attachment on your instance |\n\nEdit the generated memo, choose its visibility, or customize the template and default tags before saving.\n\n### Private by design\n\nThe clipper sends captured content only to the self-hosted Memos instance you connect — and only when you save. No analytics, third-party servers, or tracking. #memos/extensions','\n',char(10)),'PUBLIC','{"tags":["memos","memos/extensions"],"property":{"hasLink":true}}',1);
+-- 10. Steven: a browser bookmark and the web clipper (first in the timeline)
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(10,'webclipper0001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-30 minutes'),strftime('%s','now','-30 minutes'),replace('## Saving things from the browser\n\nI keep a #read-later tag for pages I don’t have time to finish. A link and one sentence about why I saved it are usually enough.\n\nThe [Memos Web Clipper for Chrome](https://chromewebstore.google.com/detail/memos-web-clipper/nebaoebnljalfegiidibihhkebeiklbl) can save a page to your instance. I still add that sentence myself; otherwise I forget what caught my attention.\n\n#memos/extensions','\n',char(10)),'PUBLIC','{"property":{"hasLink":true},"tags":["read-later","memos","memos/extensions"]}',NULL);
-- 3. Bob: photo memo with an image attachment + location
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(3,'goldenhour0001',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-3 hours'),strftime('%s','now','-3 hours'),'Golden hour on the coastal trail tonight. The camera couldn''t hold the colors, so here''s my minimal-art rendition instead 🎨 #travel/hikes','PUBLIC','{"tags":["travel","travel/hikes"],"property":{"hasLink":false},"location":{"placeholder":"Point Reyes, California, United States","latitude":37.9954,"longitude":-123.0204}}',3);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(3,'goldenhour0001',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-3 hours'),strftime('%s','now','-3 hours'),replace('Point Reyes, from memory.\n\nI made this little sketch after the walk. The sky was still pink when we reached the car. Next time: bring a warmer layer and stay another half hour.\n\n#travel/hikes','\n',char(10)),'PUBLIC','{"property":{},"location":{"placeholder":"Point Reyes, California, United States","latitude":37.9954,"longitude":-123.0204},"tags":["travel","travel/hikes"]}',NULL);
-- 27. Steven: introducing Spaces and custom icons
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(27,'v030changelog1',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-6 hours'),strftime('%s','now','-6 hours'),replace('## Spaces for the things we share\n\nWe''ve organized our memos into four Spaces:\n\n- **Updates** — announcements and tips\n- **Dev** — projects and technical notes\n- **Travel** — trips and photography\n- **Reading** — books and quotes\n\nEach Space has its own members and an emoji or symbol to help you recognize it. Tags still work inside Spaces, and memos can stay unassigned.\n\nA public memo remains public when placed in a Space. Choose Space visibility to share it only with that Space''s members.\n\nCreate your own Space, or accept an invitation to join an existing one.\n\nMore updates: [release notes](https://github.com/usememos/memos/releases). #memos/changelog','\n',char(10)),'PUBLIC','{"tags":["memos","memos/changelog"],"property":{"hasLink":true}}',1);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(27,'v030changelog1',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-5 days'),strftime('%s','now','-5 days'),replace('## Keeping shared notes in spaces\n\nThe sample accounts use Updates, Dev, Travel, and Reading to keep their shared memos together. Each space has its own members and an icon.\n\nYou can create a space for your own project and invite people to join. Memos can also stay unassigned, like the welcome memo and most of the examples in this feed.\n\nPlacement doesn’t decide the audience: a Public memo stays public inside a space. Choose Space visibility for members-only notes.\n\n#memos/spaces','\n',char(10)),'PUBLIC','{"property":{},"tags":["memos","memos/spaces"]}',1);
-- 4. Sam: one-line book quote
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(4,'samquote000001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-7 hours'),strftime('%s','now','-7 hours'),replace('> "We tell ourselves stories in order to live." — Joan Didion\n\nBeen thinking about this all morning. #books','\n',char(10)),'PUBLIC','{"tags":["books"],"property":{"hasLink":false}}',4);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(4,'samquote000001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-7 hours'),strftime('%s','now','-7 hours'),replace('> "We tell ourselves stories in order to live." — Joan Didion\n\nBeen thinking about this all morning. #books','\n',char(10)),'PUBLIC','{"property":{},"tags":["books"]}',NULL);
-- 5. Johnny: weekly review — REFERENCES his memos from the past week (see memo_relation)
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(5,'johnnyweekly001',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-22 hours'),strftime('%s','now','-22 hours'),replace('## 🗓️ Weekly review\n\n**Shipped:** v0.2 of the side project finally went out.\n\n**Learned:** the single-file branch diff trick — small thing, saves me daily.\n\n**Reading:** still working through *Deep Work*. The no-Slack-before-11am rule survived its second week.\n\n**Next week:** actually write the digest CLI I keep talking about, or stop talking about it.\n\nLinked the memos below so future me can retrace the week. #weekly','\n',char(10)),'PUBLIC','{"tags":["weekly"],"property":{"hasLink":false}}',2);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(5,'johnnyweekly001',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-22 hours'),strftime('%s','now','-22 hours'),replace('## This week\n\nShipped the sync rewrite. The startup delay is finally gone.\n\nKept three mornings free for coding. On the other two, I opened email first and never quite got back to it.\n\nThe branch diff command is in the linked memo below. I have already needed it twice.\n\nNext week: make a first version of the digest script. A text file is enough for now.\n\n#weekly','\n',char(10)),'PUBLIC','{"property":{},"tags":["weekly"]}',NULL);
--- 6. Steven: short product tip
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(6,'tagtipmemo0001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-26 hours'),strftime('%s','now','-26 hours'),'Tip: tags are just typed inline — `#like/this` — and nested ones grow a tree in the sidebar. No setup, no tag manager. #getting-started','PUBLIC','{"tags":["getting-started"],"property":{"hasLink":false}}',1);
+-- 6. Steven: a short reaction tip
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(6,'tagtipmemo0001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-26 hours'),strftime('%s','now','-26 hours'),replace('I’ve been using 👀 on memos I want to come back to. Search “eyes” in the reaction picker to find it.\n\n#getting-started','\n',char(10)),'PUBLIC','{"property":{},"tags":["getting-started"]}',NULL);
-- 7. Johnny: shipped-it note
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(7,'johnnyshipped01',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-2 days','+3 hours'),strftime('%s','now','-2 days','+3 hours'),'Shipped v0.2 of my side project tonight 🚀 Rewrote the sync engine and cut startup time in half. Scrolling back through my own #dev/til memos made the changelog write itself.','PUBLIC','{"tags":["dev","dev/til"],"property":{"hasLink":false}}',2);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(7,'johnnyshipped01',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-2 days','+3 hours'),strftime('%s','now','-2 days','+3 hours'),replace('The sync rewrite is out. It now loads the local cache before checking the server, so I can start reading straight away.\n\nLeaving the old branch around until Monday. Just in case.\n\n#dev/til','\n',char(10)),'PUBLIC','{"property":{},"tags":["dev","dev/til"]}',NULL);
-- 8. Johnny: short TIL with a code block (referenced by the weekly review)
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(8,'johnnytilgit001',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-3 days'),strftime('%s','now','-3 days'),replace('TIL you can diff a single file between branches — no checkout, no stash dance:\n\n```bash\ngit diff main..feature -- path/to/file.go\n```\n\n#dev/til #dev/git','\n',char(10)),'PUBLIC','{"tags":["dev","dev/til","dev/git"],"property":{"hasLink":false,"hasCode":true}}',2);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(8,'johnnytilgit001',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-3 days'),strftime('%s','now','-3 days'),replace('Compare one file across branches without switching branches:\n\n```bash\ngit diff main..feature -- path/to/file.go\n```\n\nUsed this to check what I had changed in the sync code without disturbing the work in my editor.\n\n#dev/til #dev/git','\n',char(10)),'PUBLIC','{"property":{"hasCode":true},"tags":["dev","dev/til","dev/git"]}',NULL);
-- 29. Johnny: link/bookmark capture — a core Memos use case
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(29,'johnnybookmark1',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-32 hours'),strftime('%s','now','-32 hours'),'Weekend read, bookmarking before I lose it: [SQLite: 35% faster than the filesystem](https://sqlite.org/fasterthanfs.html) — makes me feel better about my entire digital life being one .db file 😄 #dev/reading','PUBLIC','{"tags":["dev","dev/reading"],"property":{"hasLink":true}}',2);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(29,'johnnybookmark1',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-32 hours'),strftime('%s','now','-32 hours'),replace('Saved for the weekend: [SQLite’s filesystem comparison](https://sqlite.org/fasterthanfs.html).\n\nI want to try the benchmark with the small files from the sync project before deciding where to keep them.\n\n#dev/reading','\n',char(10)),'PUBLIC','{"property":{"hasLink":true},"tags":["dev","dev/reading"]}',2);
-- 9. Sam: recipe with a task list
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload) VALUES(9,'samramen000001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-4 days'),strftime('%s','now','-4 days'),replace('## 🍜 Midnight miso ramen (15 minutes)\n\nFor nights when the book was too good to stop reading.\n\n- [x] Dashi or veg stock, 500ml\n- [x] Miso paste, 2 big spoons\n- [x] Noodles, one nest\n- [x] Soft egg — 6½ minutes, exactly\n- [ ] Scallions (always forget the scallions)\n\nSteep the miso, don''t boil it. That''s the whole secret. #cooking','\n',char(10)),'PUBLIC','{"tags":["cooking"],"property":{"hasLink":false,"hasTaskList":true,"hasIncompleteTasks":true}}');
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload) VALUES(9,'samramen000001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-4 days'),strftime('%s','now','-4 days'),replace('## Miso noodles for one\n\nShopping list for the late-night version:\n\n- [x] Vegetable stock, 500 ml\n- [x] Miso paste\n- [x] Noodles\n- [x] Eggs\n- [ ] Spring onions\n\nCook the noodles and egg separately. Take the stock off the heat before stirring in the miso. Start with one spoonful and taste before adding more.\n\nI keep forgetting the spring onions. They make a difference.\n\n#cooking','\n',char(10)),'PUBLIC','{"property":{"hasTaskList":true,"hasIncompleteTasks":true},"tags":["cooking"]}');
--- 30. Steven: compact Markdown rendering check framed as maintainer dogfooding
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(30,'rendertest0001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-10 days'),strftime('%s','now','-10 days'),replace('## 🧪 Markdown rendering check #memos/dev\n\nA quick smoke test I open after releases:\n\n**Bold**, *italic*, ~~strikethrough~~, `inline code`, and a [docs link](https://www.usememos.com/docs).\n\n> Simple notes should render beautifully.\n\n```go\nfmt.Println("syntax highlighting ✓")\n```\n\n| Check | Status |\n|-------|--------|\n| Text styles | ✅ |\n| Code blocks | ✅ |\n| Tables | ✅ |\n\n- [x] Check desktop\n- [x] Check mobile\n- [ ] Ship the next release','\n',char(10)),'PUBLIC','{"tags":["memos","memos/dev"],"property":{"hasLink":true,"hasCode":true,"hasTaskList":true,"hasIncompleteTasks":true}}',1);
+-- 30. Steven: a release checklist with Markdown formatting
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(30,'rendertest0001',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-10 days'),strftime('%s','now','-10 days'),replace('## Before the next release\n\n**Check the upgrade path**, then try a fresh install. ~~Desktop only~~ Remember the phone this time.\n\nQuick check that code blocks still render:\n\n```go\nfmt.Println("ready for another test run")\n```\n\n| Check | Result |\n| --- | --- |\n| Fresh install | Passed |\n| Existing data | Passed |\n| Narrow screen | Still to do |\n\n- [x] Read through the [release notes](https://github.com/usememos/memos/releases)\n- [x] Open the sample image\n- [ ] Finish the phone check\n\n#memos/dev','\n',char(10)),'PUBLIC','{"property":{"hasLink":true,"hasTaskList":true,"hasCode":true,"hasIncompleteTasks":true},"tags":["memos","memos/dev"]}',NULL);
-- 11. Sam: movie watchlist with a table
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload) VALUES(11,'sammovies00001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-9 days'),strftime('%s','now','-9 days'),replace('## 🎬 Movie catch-up #movies\n\nWorking through films I''ve been meaning to watch for, uh, years.\n\n| Movie | Status | Rating |\n|-------|--------|--------|\n| The Grand Budapest Hotel | ✅ Watched | ⭐⭐⭐⭐⭐ |\n| Spirited Away | ✅ Watched | ⭐⭐⭐⭐⭐ |\n| Everything Everywhere All at Once | ✅ Watched | ⭐⭐⭐⭐⭐ |\n| Dune: Part Two | 📅 This weekend | — |\n| Oppenheimer | 📋 Queued | — |\n\n**Spirited Away**: cried twice, no regrets. **Everything Everywhere**: went in cold, did not expect the bagel.\n\nNext month: full Miyazaki marathon 🎨 Taking suggestions for where to start.','\n',char(10)),'PUBLIC','{"tags":["movies"],"property":{"hasLink":false}}');
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload) VALUES(11,'sammovies00001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-9 days'),strftime('%s','now','-9 days'),replace('## Weekend watchlist\n\n| Film | Status | Note |\n| --- | --- | --- |\n| Spirited Away | Watched | The train scene. Still thinking about it. |\n| The Grand Budapest Hotel | Watched | Want to pause every frame. |\n| Everything Everywhere All at Once | Watched | Glad I knew very little going in. |\n| Porco Rosso | Next | Johnny’s recommendation. |\n| Dune: Part Two | Later | Save for a night with no interruptions. |\n\nMight make this a Miyazaki month. What should come after *Porco Rosso*?\n\n#movies','\n',char(10)),'PUBLIC','{"property":{},"tags":["movies"]}');
-- 12. Bob: short travel journal + location
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(12,'bobnighttrain1',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-12 days'),strftime('%s','now','-12 days'),'Overnight train from Oslo to Bergen. Woke at 5am to fjords in fog and couldn''t go back to sleep. Some views are worth the bad coffee ☕ #travel','PUBLIC','{"tags":["travel"],"property":{"hasLink":false},"location":{"placeholder":"Bergen, Vestland, Norway","latitude":60.3913,"longitude":5.3221}}',3);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(12,'bobnighttrain1',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-12 days'),strftime('%s','now','-12 days'),replace('Night train to Bergen. Woke before everyone else and watched the mountains go past with a cup of very bad coffee.\n\nDidn’t take a single photo for the first hour.\n\n#travel','\n',char(10)),'PUBLIC','{"property":{},"location":{"placeholder":"Bergen, Vestland, Norway","latitude":60.3913,"longitude":5.3221},"tags":["travel"]}',NULL);
--- 13. Bob: travel bucket list + location
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(13,'bobbucketlist1',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-13 days'),strftime('%s','now','-13 days'),replace('## 🌍 My travel bucket list #travel/bucketlist\n\n> Writing this from a tiny café near the Seine. Will keep updating after each trip. 📍\n\n### Been\n- [x] Paris, France — the croissants ruined every croissant after\n- [x] Shanghai, China — modern skyline next to thousand-year-old temples, somehow it works\n- [x] Grand Canyon, USA — photos do not do it justice, and I say that professionally\n- [x] Barcelona, Spain — Gaudí''s buildings look grown, not built\n\n### Next\n- [ ] Northern Lights in Iceland — booking for winter, *finally*\n- [ ] Safari in Tanzania\n- [ ] Great Barrier Reef, before it gets worse\n- [ ] New Zealand road trip — south island, two weeks minimum','\n',char(10)),'PUBLIC','{"tags":["travel","travel/bucketlist"],"property":{"hasTaskList":true,"hasIncompleteTasks":true},"location":{"placeholder":"Paris, Île-de-France, France","latitude":48.8566,"longitude":2.3522}}',3);
+-- 13. Bob: return-trip plans + location
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(13,'bobbucketlist1',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-13 days'),strftime('%s','now','-13 days'),replace('## Places to go back to\n\n- [x] Paris: the bookshop I found on the last afternoon\n- [x] Barcelona: a full day with no route planned\n- [ ] Point Reyes: walk the coastal trail in winter\n- [ ] Bergen: take the train in daylight this time\n\nStill want to do a two-week road trip around New Zealand’s South Island. Leaving that one on the list until I can take the time off.\n\n#travel/plans','\n',char(10)),'PUBLIC','{"property":{"hasTaskList":true,"hasIncompleteTasks":true},"location":{"placeholder":"Paris, Île-de-France, France","latitude":48.8566,"longitude":2.3522},"tags":["travel","travel/plans"]}',3);
-- 14. Johnny: git cheat sheet — long-form anchor with code blocks
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(14,'johnnygitcheat1',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-17 days'),strftime('%s','now','-17 days'),replace('## ⚡ Git commands I keep forgetting #dev/git #dev/cheatsheet\n\nWriting these down so I stop googling the same things every week.\n\n```bash\n# Show the last commit in detail\ngit show --stat HEAD\n\n# Undo the last commit, keep changes staged\ngit reset --soft HEAD~1\n\n# Stash including untracked files\ngit stash push -u -m "wip: before refactor"\n\n# Find which commit introduced a string\ngit log -S "function_name" --source --all\n```\n\nThe `-S` one is gold for archaeology — way better than scrolling blame.','\n',char(10)),'PUBLIC','{"tags":["dev","dev/git","dev/cheatsheet"],"property":{"hasLink":false,"hasCode":true}}',2);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(14,'johnnygitcheat1',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-17 days'),strftime('%s','now','-17 days'),replace('## Git commands I keep looking up\n\n```bash\n# Summarize the last commit\ngit show --stat HEAD\n\n# Undo the last commit, keeping its changes staged\ngit reset --soft HEAD~1\n\n# Stash tracked and untracked files\ngit stash push -u -m "before the sync refactor"\n\n# Find commits that changed the number of occurrences of a string\ngit log -S "loadCache" --all\n```\n\n`git log -S` found the commit where I removed the cache check. It was mine, of course.\n\n#dev/git #dev/cheatsheet','\n',char(10)),'PUBLIC','{"property":{"hasCode":true},"tags":["dev","dev/git","dev/cheatsheet"]}',NULL);
-- 15. Johnny: reading note + café location (oldest memo — the back of the feed)
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(15,'johnnyreading01',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-22 days'),strftime('%s','now','-22 days'),replace('## 📖 Reading: Deep Work #books\n\nStarted Cal Newport''s *Deep Work* this week. This passage stopped me:\n\n> "Human beings, it seems, are at their best when immersed deeply in something challenging."\n\nThat''s the whole pitch in one sentence. The rest of the book is evidence.\n\nExperiment for the next two weeks: no Slack or email before 11am. See what shifts when the morning is mine.','\n',char(10)),'PUBLIC','{"tags":["books"],"property":{"hasLink":false},"location":{"placeholder":"Sightglass Coffee, San Francisco, California, United States","latitude":37.7726,"longitude":-122.4099}}',4);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(15,'johnnyreading01',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-22 days'),strftime('%s','now','-22 days'),replace('## Reading: Deep Work\n\nTrying one idea from Cal Newport’s book: keep the first part of the morning free for work that needs concentration.\n\nMy rule for the next two weeks:\n\n> No email before 11. Leave a note about where to start tomorrow before closing the laptop today.\n\nThe second part might be more useful than the first. Starting is easier when I left myself something specific to do.\n\n#books','\n',char(10)),'PUBLIC','{"property":{},"location":{"placeholder":"Sightglass Coffee, San Francisco, California, United States","latitude":37.7726,"longitude":-122.4099},"tags":["books"]}',NULL);
-- ============================================================================
-- Protected memos — invisible when logged out; Explore gains these after SSO
-- sign-in, which is how visitors *experience* the visibility model
-- ============================================================================
--- 16. Steven: self-referential visibility explainer
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(16,'protectedintro',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-20 hours'),strftime('%s','now','-20 hours'),replace('🔓 **If you can read this, you''re signed in.**\n\nThis memo uses **Protected** visibility: anyone signed in to this instance can read it.\n\nEach memo has its own audience:\n\n- **Public** — anyone, including visitors who aren''t signed in.\n- **Protected** — anyone signed in to this instance.\n- **Private** — only its author.\n- **Space** — active members of the Space where the memo is placed.\n\nPlacing a memo in a Space doesn''t automatically make it members-only. Choose **Space** visibility when that''s the audience you want. #getting-started','\n',char(10)),'PROTECTED','{"tags":["getting-started"],"property":{"hasLink":false}}',1);
+-- 16. Steven: visibility examples for signed-in visitors
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(16,'protectedintro',(SELECT id FROM user WHERE username='steven'),strftime('%s','now','-20 hours'),strftime('%s','now','-20 hours'),replace('## A note for signed-in readers\n\nThis memo uses **Protected** visibility. Anyone signed in to this instance can read it; signed-out visitors cannot.\n\nPublic memos are readable without signing in. Private memos are for their author. Space visibility is for active members of that space. Instance administrators can access memos across these audiences.\n\nA memo’s space and its visibility are separate choices. Moving a Public memo into a space keeps it public. Choose Space visibility when you want it to be members-only.\n\n#getting-started','\n',char(10)),'PROTECTED','{"property":{},"tags":["getting-started"]}',NULL);
-- 17. Johnny: half-formed idea — protected memos are naturally rougher
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(17,'johnnydigestcli',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-9 hours'),strftime('%s','now','-9 hours'),'Half-formed idea: a tiny CLI that collects my #dev/til memos into a weekly digest. Memos has a full API with access tokens, so this is one evening of work. Parking it here so future me has no excuses.','PROTECTED','{"tags":["dev","dev/til"],"property":{"hasLink":false}}',2);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(17,'johnnydigestcli',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-9 hours'),strftime('%s','now','-9 hours'),replace('Idea for the weekend: turn my #dev/til memos into a weekly digest.\n\nFirst version:\n\n- [ ] Fetch this week’s memos through the API\n- [ ] Keep the ones tagged #dev/til\n- [ ] Write them to a Markdown file\n\nNo scheduling yet. I want to run it by hand a few times before deciding what to automate.','\n',char(10)),'PROTECTED','{"property":{"hasTaskList":true,"hasIncompleteTasks":true},"tags":["dev","dev/til"]}',NULL);
-- 18. Bob: packing list for signed-in readers
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(18,'bobpacklist001',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-5 days'),strftime('%s','now','-5 days'),replace('Coast trip packing list — sharing this with everyone signed in, because you deserve to know how much coffee gear I carry:\n\n- [x] Camera + the one lens I''ll actually use\n- [x] AeroPress, hand grinder, scale ☕\n- [x] Rain shell\n- [ ] The second lens I won''t use but will pack anyway\n\n#travel/hikes','\n',char(10)),'PROTECTED','{"tags":["travel","travel/hikes"],"property":{"hasLink":false,"hasTaskList":true,"hasIncompleteTasks":true}}',3);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(18,'bobpacklist001',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-5 days'),strftime('%s','now','-5 days'),replace('## Coast trip packing list\n\n- [x] Camera and one lens\n- [x] Spare battery and an empty memory card\n- [x] Rain shell\n- [x] Coffee flask\n- [ ] A warmer layer for the walk back\n- [ ] Check the forecast the night before\n\nThe last trip is why the warm layer is on here.\n\n#travel/hikes','\n',char(10)),'PROTECTED','{"property":{"hasTaskList":true,"hasIncompleteTasks":true},"tags":["travel","travel/hikes"]}',NULL);
--- 19. Sam: confession
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(19,'sambookpile001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-30 hours'),strftime('%s','now','-30 hours'),'Note to self: stop buying books faster than I read them. Current pile: 9. Keeping this memo protected so only people signed in witness my shame 📚 #books','PROTECTED','{"tags":["books"],"property":{"hasLink":false}}',4);
+-- 19. Sam: the unread book pile
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(19,'sambookpile001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-30 hours'),strftime('%s','now','-30 hours'),replace('Nine books in the unread pile. Borrowed another one today.\n\nFinishing the one on my bedside table before I start it. Writing that down so Johnny can hold me to it.\n\n#books','\n',char(10)),'PROTECTED','{"property":{},"tags":["books"]}',4);
-- ============================================================================
-- Comments (memos linked via memo_relation COMMENT)
-- ============================================================================
-- 20. Sam on Welcome
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(20,'cmtwelcome0001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-21 hours'),strftime('%s','now','-21 hours'),'Signed in with SSO and posted my first memo inside a minute. Lowest-friction note app I''ve used 👏','PUBLIC','{"property":{"hasLink":false}}',1);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(20,'cmtwelcome0001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-7 minutes'),strftime('%s','now','-7 minutes'),replace('I started with a reading list. Now half my memos are just things I don’t want to forget before I get home.','\n',char(10)),'PUBLIC','{"property":{}}',NULL);
-- 21–22. Thread on Johnny's git cheat sheet
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(21,'cmtgitcheat001',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-17 days','+5 hours'),strftime('%s','now','-17 days','+5 hours'),'Saving the `git log -S` one. Code archaeology mode unlocked 🔥','PUBLIC','{"property":{"hasLink":false}}',2);
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(22,'cmtgitcheat002',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-17 days','+6 hours'),strftime('%s','now','-17 days','+6 hours'),'Also try `git log -p -- path/to/file` when you want the actual content changes for one file. Same archaeology vibe.','PUBLIC','{"property":{"hasLink":false}}',2);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(21,'cmtgitcheat001',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-17 days','+5 hours'),strftime('%s','now','-17 days','+5 hours'),replace('The `-S` command found a setting I thought we had lost. Adding this to my own notes.','\n',char(10)),'PUBLIC','{"property":{"hasCode":true}}',NULL);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(22,'cmtgitcheat002',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-17 days','+6 hours'),strftime('%s','now','-17 days','+6 hours'),replace('For the full history of one file, I use `git log -p -- path/to/file`. Useful alongside this.','\n',char(10)),'PUBLIC','{"property":{"hasCode":true}}',NULL);
-- 23–24. Thread on Bob's golden-hour memo
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(23,'cmtgolden00001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-2 hours'),strftime('%s','now','-2 hours'),'Okay, the gradient sky is gorgeous. Which trail is this?','PUBLIC','{"property":{"hasLink":false}}',3);
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(24,'cmtgolden00002',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-1 hours'),strftime('%s','now','-1 hours'),'Point Reyes, the stretch north of the lighthouse — tap the 📍 on the memo. Golden hour there never misses.','PUBLIC','{"property":{"hasLink":false}}',3);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(23,'cmtgolden00001',(SELECT id FROM user WHERE username='sam'),strftime('%s','now','-2 hours'),strftime('%s','now','-2 hours'),replace('Was this the walk where you forgot your jacket? I like the pink strip above the water.','\n',char(10)),'PUBLIC','{"property":{}}',NULL);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(24,'cmtgolden00002',(SELECT id FROM user WHERE username='bob'),strftime('%s','now','-1 hours'),strftime('%s','now','-1 hours'),replace('That’s the one. Point Reyes, near the lighthouse. The location is attached to the memo if you want to find it.','\n',char(10)),'PUBLIC','{"property":{}}',NULL);
-- 25. Johnny on Sam's movie list
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload) VALUES(25,'cmtmovies00001',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-8 days'),strftime('%s','now','-8 days'),'Start the Miyazaki marathon with *Porco Rosso*. Trust me.','PUBLIC','{"property":{"hasLink":false}}');
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload) VALUES(25,'cmtmovies00001',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-8 days'),strftime('%s','now','-8 days'),replace('Start with *Porco Rosso*. Then *Kiki’s Delivery Service* if you want something gentler.','\n',char(10)),'PUBLIC','{"property":{}}');
-- 28. Johnny on Steven's changelog note
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(28,'cmtchangelog01',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-4 hours'),strftime('%s','now','-4 hours'),'Gave Dev a wrench icon. Much easier to spot when switching between coding notes and Reading 🔧','PUBLIC','{"property":{"hasLink":false}}',1);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(28,'cmtchangelog01',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-4 hours'),strftime('%s','now','-4 hours'),replace('Moved my Git notes into Dev and left the book notes in Reading. The wrench icon helps when I’m switching between them.','\n',char(10)),'PUBLIC','{"property":{}}',1);
-- 31. Johnny on the rendering test memo (includes an @mention)
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(31,'cmtrendertest1',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-10 days','+4 hours'),strftime('%s','now','-10 days','+4 hours'),'Keeping a Markdown checklist right alongside the release notes makes sense, @steven 😄','PUBLIC','{"property":{"hasLink":false}}',1);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(31,'cmtrendertest1',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-10 days','+4 hours'),strftime('%s','now','-10 days','+4 hours'),replace('The image looks right on my phone, @steven. The table is readable too.','\n',char(10)),'PUBLIC','{"property":{}}',NULL);
-- 26. Johnny on the protected explainer (protected too — consistent visibility)
-INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(26,'cmtprotected01',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-18 hours'),strftime('%s','now','-18 hours'),'Can confirm: this memo did not exist for me until I signed in. Neat trick 👀','PROTECTED','{"property":{"hasLink":false}}',1);
+INSERT INTO memo (id,uid,creator_id,created_ts,updated_ts,content,visibility,payload,space_id) VALUES(26,'cmtprotected01',(SELECT id FROM user WHERE username='johnny'),strftime('%s','now','-18 hours'),strftime('%s','now','-18 hours'),replace('I use Protected for book-club recommendations I want everyone here to read, and Private for the rough notes I’m still writing.','\n',char(10)),'PROTECTED','{"property":{}}',NULL);
-- ============================================================================
-- Relations
@@ -193,44 +194,48 @@ INSERT INTO memo_relation VALUES(5,8,'REFERENCE'); -- weekly review → git di
INSERT INTO memo_relation VALUES(5,15,'REFERENCE'); -- weekly review → Deep Work note
-- ============================================================================
--- Reactions (types must appear in the configured MEMO_RELATED reactions list)
+-- Reactions
-- ============================================================================
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(1,(SELECT id FROM user WHERE username='johnny'),1,'🎉');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(2,(SELECT id FROM user WHERE username='bob'),1,'🎉');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(3,(SELECT id FROM user WHERE username='sam'),1,'👍');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(4,(SELECT id FROM user WHERE username='johnny'),2,'🚀');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(5,(SELECT id FROM user WHERE username='bob'),2,'👍');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(6,(SELECT id FROM user WHERE username='johnny'),3,'🔥');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(7,(SELECT id FROM user WHERE username='sam'),3,'💛');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(4,(SELECT id FROM user WHERE username='johnny'),2,'❤️');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(5,(SELECT id FROM user WHERE username='bob'),2,'🙏');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(6,(SELECT id FROM user WHERE username='johnny'),3,'🤩');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(7,(SELECT id FROM user WHERE username='sam'),3,'👏');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(8,(SELECT id FROM user WHERE username='steven'),3,'👏');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(9,(SELECT id FROM user WHERE username='johnny'),4,'💛');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(10,(SELECT id FROM user WHERE username='bob'),4,'👀');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(11,(SELECT id FROM user WHERE username='steven'),5,'👏');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(12,(SELECT id FROM user WHERE username='sam'),5,'💡');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(9,(SELECT id FROM user WHERE username='johnny'),4,'❤️');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(10,(SELECT id FROM user WHERE username='bob'),4,'❤️');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(11,(SELECT id FROM user WHERE username='steven'),5,'✅');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(12,(SELECT id FROM user WHERE username='sam'),5,'👍🏽');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(13,(SELECT id FROM user WHERE username='steven'),7,'🚀');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(14,(SELECT id FROM user WHERE username='sam'),7,'🎉');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(15,(SELECT id FROM user WHERE username='bob'),7,'🔥');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(15,(SELECT id FROM user WHERE username='bob'),7,'🚀');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(16,(SELECT id FROM user WHERE username='bob'),8,'💡');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(17,(SELECT id FROM user WHERE username='sam'),8,'+1');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(18,(SELECT id FROM user WHERE username='bob'),9,'👌');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(19,(SELECT id FROM user WHERE username='johnny'),9,'💛');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(17,(SELECT id FROM user WHERE username='sam'),8,'👍');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(18,(SELECT id FROM user WHERE username='bob'),9,'🍜');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(19,(SELECT id FROM user WHERE username='johnny'),9,'🍜');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(20,(SELECT id FROM user WHERE username='steven'),11,'👍');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(21,(SELECT id FROM user WHERE username='sam'),12,'💛');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(21,(SELECT id FROM user WHERE username='sam'),12,'🇳🇴');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(22,(SELECT id FROM user WHERE username='bob'),14,'🔥');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(23,(SELECT id FROM user WHERE username='sam'),14,'💡');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(24,(SELECT id FROM user WHERE username='sam'),10,'💡');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(25,(SELECT id FROM user WHERE username='steven'),6,'👍');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(24,(SELECT id FROM user WHERE username='sam'),10,'📎');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(25,(SELECT id FROM user WHERE username='johnny'),6,'👀');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(26,(SELECT id FROM user WHERE username='johnny'),16,'👀');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(27,(SELECT id FROM user WHERE username='bob'),16,'✅');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(28,(SELECT id FROM user WHERE username='sam'),18,'😂');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(29,(SELECT id FROM user WHERE username='bob'),19,'😂');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(28,(SELECT id FROM user WHERE username='sam'),18,'🧳');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(29,(SELECT id FROM user WHERE username='johnny'),19,'📚');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(30,(SELECT id FROM user WHERE username='johnny'),27,'🎉');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(31,(SELECT id FROM user WHERE username='sam'),27,'🚀');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(32,(SELECT id FROM user WHERE username='bob'),27,'🔥');
INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(33,(SELECT id FROM user WHERE username='steven'),29,'👀');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(34,(SELECT id FROM user WHERE username='johnny'),30,'😂');
-INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(35,(SELECT id FROM user WHERE username='sam'),30,'💡');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(34,(SELECT id FROM user WHERE username='johnny'),30,'✅');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(35,(SELECT id FROM user WHERE username='sam'),30,'👀');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(36,(SELECT id FROM user WHERE username='steven'),31,'👍');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(37,(SELECT id FROM user WHERE username='johnny'),24,'🧭');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(38,(SELECT id FROM user WHERE username='sam'),25,'🎬');
+INSERT INTO reaction (id,creator_id,memo_id,reaction_type) VALUES(39,(SELECT id FROM user WHERE username='steven'),21,'💡');
-- ============================================================================
-- Attachment: Bob's golden-hour art (stored in the database blob column;
diff --git a/store/test/configuration_state_test.go b/store/test/configuration_state_test.go
index 910fe610a..23780340a 100644
--- a/store/test/configuration_state_test.go
+++ b/store/test/configuration_state_test.go
@@ -164,7 +164,7 @@ func TestConfigurationTransactionWrites(t *testing.T) {
general, err := tx.GetUncachedInstanceSetting(ctx, &store.FindInstanceSetting{Name: "GENERAL"})
require.NoError(t, err)
require.Equal(t, "Configured", general.GetGeneralSetting().GetCustomProfile().GetTitle())
- require.NoError(t, tx.DeleteInstanceSetting(ctx, storepb.InstanceSettingKey_MEMO_RELATED))
+ require.NoError(t, tx.DeleteInstanceSetting(ctx, storepb.InstanceSettingKey_NOTIFICATION))
created, err := tx.CreateUser(ctx, &store.User{Username: "admin", Role: store.RoleAdmin, Email: " Admin@Example.com ", PasswordHash: "hash"})
require.NoError(t, err)
@@ -186,9 +186,9 @@ func TestConfigurationTransactionWrites(t *testing.T) {
general, err := ts.GetInstanceGeneralSetting(ctx)
require.NoError(t, err)
require.Equal(t, "Configured", general.GetCustomProfile().GetTitle(), "the commit invalidated the cached setting")
- memoRelated, err := ts.GetUncachedInstanceSetting(ctx, &store.FindInstanceSetting{Name: "MEMO_RELATED"})
+ notification, err := ts.GetUncachedInstanceSetting(ctx, &store.FindInstanceSetting{Name: "NOTIFICATION"})
require.NoError(t, err)
- require.Nil(t, memoRelated)
+ require.Nil(t, notification)
demoted, err := ts.GetUser(ctx, &store.FindUser{ID: &existing.ID})
require.NoError(t, err)
require.Equal(t, store.RoleUser, demoted.Role)
diff --git a/store/test/instance_setting_test.go b/store/test/instance_setting_test.go
index 4467a9013..10b1b9d8c 100644
--- a/store/test/instance_setting_test.go
+++ b/store/test/instance_setting_test.go
@@ -241,37 +241,6 @@ func TestCreateInstanceSettingIfNotExistsIsFirstWriterWins(t *testing.T) {
require.Equal(t, winner, settings[0].Value, "a later insert attempt must not overwrite the persisted value")
}
-func TestInstanceSettingMemoRelatedSetting(t *testing.T) {
- t.Parallel()
- ctx := context.Background()
- ts := NewTestingStore(ctx, t)
-
- // Get default memo related setting (should have defaults)
- memoSetting, err := ts.GetInstanceMemoRelatedSetting(ctx)
- require.NoError(t, err)
- require.NotNil(t, memoSetting)
- require.NotEmpty(t, memoSetting.Reactions)
-
- // Set custom memo related setting
- customReactions := []string{"👍", "👎", "🚀"}
- _, err = ts.UpsertInstanceSetting(ctx, &storepb.InstanceSetting{
- Key: storepb.InstanceSettingKey_MEMO_RELATED,
- Value: &storepb.InstanceSetting_MemoRelatedSetting{
- MemoRelatedSetting: &storepb.InstanceMemoRelatedSetting{
- Reactions: customReactions,
- },
- },
- })
- require.NoError(t, err)
-
- // Verify
- memoSetting, err = ts.GetInstanceMemoRelatedSetting(ctx)
- require.NoError(t, err)
- require.Equal(t, customReactions, memoSetting.Reactions)
-
- ts.Close()
-}
-
func TestInstanceSettingStorageSetting(t *testing.T) {
t.Parallel()
ctx := context.Background()
@@ -619,21 +588,5 @@ func TestInstanceSettingEdgeCases(t *testing.T) {
require.Equal(t, specialScript, generalSetting.AdditionalScript)
require.Equal(t, specialStyle, generalSetting.AdditionalStyle)
- // Case 2: Memo Related Setting with Unicode reactions
- unicodeReactions := []string{"🐱", "🐶", "🦊", "🦄"}
- _, err = ts.UpsertInstanceSetting(ctx, &storepb.InstanceSetting{
- Key: storepb.InstanceSettingKey_MEMO_RELATED,
- Value: &storepb.InstanceSetting_MemoRelatedSetting{
- MemoRelatedSetting: &storepb.InstanceMemoRelatedSetting{
- Reactions: unicodeReactions,
- },
- },
- })
- require.NoError(t, err)
-
- memoSetting, err := ts.GetInstanceMemoRelatedSetting(ctx)
- require.NoError(t, err)
- require.Equal(t, unicodeReactions, memoSetting.Reactions)
-
ts.Close()
}
diff --git a/store/test/reaction_test.go b/store/test/reaction_test.go
index adb25e8a1..e25d01be2 100644
--- a/store/test/reaction_test.go
+++ b/store/test/reaction_test.go
@@ -29,6 +29,13 @@ func TestReactionStore(t *testing.T) {
require.NotNil(t, reaction)
require.NotEmpty(t, reaction.ID)
+ repeated, err := ts.UpsertReaction(ctx, &store.Reaction{
+ CreatorID: user.ID, MemoID: memo.ID, ReactionType: "💗",
+ })
+ require.NoError(t, err)
+ require.Equal(t, reaction.ID, repeated.ID)
+ require.Equal(t, reaction.CreatedTs, repeated.CreatedTs)
+
reactions, err := ts.ListReactions(ctx, &store.FindReaction{
MemoID: &memo.ID,
})
diff --git a/web/scripts/generate-tag-unicode-data.mjs b/web/scripts/generate-tag-unicode-data.mjs
index 471120064..d5268c640 100644
--- a/web/scripts/generate-tag-unicode-data.mjs
+++ b/web/scripts/generate-tag-unicode-data.mjs
@@ -120,3 +120,14 @@ const output = `// Generated by scripts/generate-tag-unicode-data.mjs. Do not ed
const outputURL = new URL("../src/utils/tag-unicode-data.ts", import.meta.url);
await writeFile(fileURLToPath(outputURL), output);
+
+const namedEmoji = emojiTest.split("\n").flatMap((line) => {
+ const match = line.match(/^([0-9A-F ]+)\s*;\s*fully-qualified\s*#\s*\S+\s+E[\d.]+\s+(.+)$/);
+ if (!match) return [];
+ const glyph = String.fromCodePoint(...match[1].trim().split(/\s+/).map((part) => Number.parseInt(part, 16)));
+ return [[glyph, match[2]]];
+});
+await writeFile(
+ new URL("../src/lib/emoji-data.ts", import.meta.url),
+ `// Generated by scripts/generate-tag-unicode-data.mjs. Do not edit.\n// Unicode Emoji ${UNICODE_RELEASE}: ${sources.emoji}\n// biome-ignore-all format: generated Unicode names\nexport const EMOJI: readonly (readonly [string, string])[] = [\n${namedEmoji.map((entry) => ` ${JSON.stringify(entry)},`).join("\n")}\n];\n`,
+);
diff --git a/web/src/components/MemoReactionListView/MemoReactionListView.tsx b/web/src/components/MemoReactionListView/MemoReactionListView.tsx
index eba4b7f95..edf919921 100644
--- a/web/src/components/MemoReactionListView/MemoReactionListView.tsx
+++ b/web/src/components/MemoReactionListView/MemoReactionListView.tsx
@@ -24,8 +24,8 @@ const MemoReactionListView = (props: Props) => {
return (
// Chips are filled surfaces, so their box edge, not their padding, sits on the text edge.