Skip to content

Commit

Permalink
Show summaries on chats page
Browse files Browse the repository at this point in the history
  • Loading branch information
chokoswitch committed Nov 6, 2024
1 parent 40a598f commit 9b7be17
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 99 deletions.
Binary file modified api/descriptors/descriptorset.pb
Binary file not shown.
3 changes: 3 additions & 0 deletions api/frontendapi/frontend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ message Chat {

// The description of the chat.
string description = 2;

// Details of CEOs to presented to the user in this chat.
repeated CEODetails ceo_details = 3;
}

// A request to get all chats.
Expand Down
188 changes: 101 additions & 87 deletions api/go/frontend.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions api/typescript/frontendapi/frontend_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ export class Chat extends Message<Chat> {
*/
description = "";

/**
* Details of CEOs to presented to the user in this chat.
*
* @generated from field: repeated frontendapi.CEODetails ceo_details = 3;
*/
ceoDetails: CEODetails[] = [];

constructor(data?: PartialMessage<Chat>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -36,6 +43,7 @@ export class Chat extends Message<Chat> {
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "ceo_details", kind: "message", T: CEODetails, repeated: true },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Chat {
Expand Down
Loading

0 comments on commit 9b7be17

Please sign in to comment.