Skip to content

Feat/1908 coherence screen and chats#1972

Draft
evgenibir wants to merge 78 commits intomainfrom
feat/1908-coherence-screen-and-chats
Draft

Feat/1908 coherence screen and chats#1972
evgenibir wants to merge 78 commits intomainfrom
feat/1908-coherence-screen-and-chats

Conversation

@evgenibir
Copy link
Member

No description provided.

@evgenibir evgenibir linked an issue Feb 27, 2026 that may be closed by this pull request
13 tasks
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 27, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/1908-coherence-screen-and-chats

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

Neon logo Neon Schema Diff summary

Schema diff between the compare branch (preview/pr-1972-feat/1908-coherence-screen-and-chats) and the base branch (main).

Index: neondb-schema.sql
===================================================================
--- neondb-schema.sql	Branch main
+++ neondb-schema.sql	Branch preview/pr-1972-feat/1908-coherence-screen-and-chats
@@ -265,8 +265,55 @@
 ALTER SEQUENCE drizzle.__drizzle_migrations_id_seq OWNED BY drizzle.__drizzle_migrations.id;
 
 
 --
+-- Name: coherences; Type: TABLE; Schema: public; Owner: neondb_owner
+--
+
+CREATE TABLE public.coherences (
+    id integer NOT NULL,
+    creator_id integer NOT NULL,
+    space_id integer,
+    title text NOT NULL,
+    description text NOT NULL,
+    type text NOT NULL,
+    priority text DEFAULT 'medium'::text,
+    slug character varying(255),
+    room_id text,
+    archived boolean DEFAULT false,
+    views integer DEFAULT 0,
+    messages integer DEFAULT 0,
+    tags jsonb DEFAULT '[]'::jsonb NOT NULL,
+    created_at timestamp without time zone DEFAULT now() NOT NULL,
+    updated_at timestamp without time zone DEFAULT now() NOT NULL
+);
+
+
+ALTER TABLE public.coherences OWNER TO neondb_owner;
+
+--
+-- Name: coherences_id_seq; Type: SEQUENCE; Schema: public; Owner: neondb_owner
+--
+
+CREATE SEQUENCE public.coherences_id_seq
+    AS integer
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE public.coherences_id_seq OWNER TO neondb_owner;
+
+--
+-- Name: coherences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: neondb_owner
+--
+
+ALTER SEQUENCE public.coherences_id_seq OWNED BY public.coherences.id;
+
+
+--
 -- Name: documents; Type: TABLE; Schema: public; Owner: neondb_owner
 --
 
 CREATE TABLE public.documents (
@@ -348,8 +395,50 @@
 ALTER SEQUENCE public.events_id_seq OWNED BY public.events.id;
 
 
 --
+-- Name: matrix_user_links; Type: TABLE; Schema: public; Owner: neondb_owner
+--
+
+CREATE TABLE public.matrix_user_links (
+    id integer NOT NULL,
+    environment text NOT NULL,
+    privy_user_id text NOT NULL,
+    matrix_user_id text NOT NULL,
+    encrypted_access_token text NOT NULL,
+    device_id text,
+    created_at timestamp without time zone DEFAULT now() NOT NULL,
+    updated_at timestamp without time zone DEFAULT now() NOT NULL,
+    refresh_token text,
+    token_expires_at timestamp without time zone
+);
+
+
+ALTER TABLE public.matrix_user_links OWNER TO neondb_owner;
+
+--
+-- Name: matrix_user_links_id_seq; Type: SEQUENCE; Schema: public; Owner: neondb_owner
+--
+
+CREATE SEQUENCE public.matrix_user_links_id_seq
+    AS integer
+    START WITH 1
+    INCREMENT BY 1
+    NO MINVALUE
+    NO MAXVALUE
+    CACHE 1;
+
+
+ALTER TABLE public.matrix_user_links_id_seq OWNER TO neondb_owner;
+
+--
+-- Name: matrix_user_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: neondb_owner
+--
+
+ALTER SEQUENCE public.matrix_user_links_id_seq OWNED BY public.matrix_user_links.id;
+
+
+--
 -- Name: memberships; Type: TABLE; Schema: public; Owner: neondb_owner
 --
 
 CREATE TABLE public.memberships (
@@ -570,8 +659,15 @@
 ALTER TABLE ONLY drizzle.__drizzle_migrations ALTER COLUMN id SET DEFAULT nextval('drizzle.__drizzle_migrations_id_seq'::regclass);
 
 
 --
+-- Name: coherences id; Type: DEFAULT; Schema: public; Owner: neondb_owner
+--
+
+ALTER TABLE ONLY public.coherences ALTER COLUMN id SET DEFAULT nextval('public.coherences_id_seq'::regclass);
+
+
+--
 -- Name: documents id; Type: DEFAULT; Schema: public; Owner: neondb_owner
 --
 
 ALTER TABLE ONLY public.documents ALTER COLUMN id SET DEFAULT nextval('public.documents_id_seq'::regclass);
@@ -584,8 +680,15 @@
 ALTER TABLE ONLY public.events ALTER COLUMN id SET DEFAULT nextval('public.events_id_seq'::regclass);
 
 
 --
+-- Name: matrix_user_links id; Type: DEFAULT; Schema: public; Owner: neondb_owner
+--
+
+ALTER TABLE ONLY public.matrix_user_links ALTER COLUMN id SET DEFAULT nextval('public.matrix_user_links_id_seq'::regclass);
+
+
+--
 -- Name: memberships id; Type: DEFAULT; Schema: public; Owner: neondb_owner
 --
 
 ALTER TABLE ONLY public.memberships ALTER COLUMN id SET DEFAULT nextval('public.memberships_id_seq'::regclass);
@@ -627,8 +730,16 @@
     ADD CONSTRAINT __drizzle_migrations_pkey PRIMARY KEY (id);
 
 
 --
+-- Name: coherences coherences_pkey; Type: CONSTRAINT; Schema: public; Owner: neondb_owner
+--
+
+ALTER TABLE ONLY public.coherences
+    ADD CONSTRAINT coherences_pkey PRIMARY KEY (id);
+
+
+--
 -- Name: documents documents_pkey; Type: CONSTRAINT; Schema: public; Owner: neondb_owner
 --
 
 ALTER TABLE ONLY public.documents
@@ -643,8 +754,16 @@
     ADD CONSTRAINT events_pkey PRIMARY KEY (id);
 
 
 --
+-- Name: matrix_user_links matrix_user_links_pkey; Type: CONSTRAINT; Schema: public; Owner: neondb_owner
+--
+
+ALTER TABLE ONLY public.matrix_user_links
+    ADD CONSTRAINT matrix_user_links_pkey PRIMARY KEY (id);
+
+
+--
 -- Name: memberships memberships_pkey; Type: CONSTRAINT; Schema: public; Owner: neondb_owner
 --
 
 ALTER TABLE ONLY public.memberships
@@ -751,8 +870,43 @@
 CREATE UNIQUE INDEX person_space_idx ON public.memberships USING btree (person_id, space_id);
 
 
 --
+-- Name: search_archived; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_archived ON public.coherences USING btree (archived);
+
+
+--
+-- Name: search_device_id; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_device_id ON public.matrix_user_links USING btree (device_id);
+
+
+--
+-- Name: search_encrypted_access_token; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_encrypted_access_token ON public.matrix_user_links USING btree (encrypted_access_token);
+
+
+--
+-- Name: search_environment; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_environment ON public.matrix_user_links USING btree (environment);
+
+
+--
+-- Name: search_index_coherences; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_index_coherences ON public.coherences USING gin (((setweight(to_tsvector('english'::regconfig, title), 'A'::"char") || setweight(to_tsvector('english'::regconfig, description), 'B'::"char"))));
+
+
+--
 -- Name: search_index_documents; Type: INDEX; Schema: public; Owner: neondb_owner
 --
 
 CREATE INDEX search_index_documents ON public.documents USING gin (((setweight(to_tsvector('english'::regconfig, title), 'A'::"char") || setweight(to_tsvector('english'::regconfig, description), 'B'::"char"))));
@@ -765,8 +919,85 @@
 CREATE INDEX search_index_spaces ON public.spaces USING gin (((setweight(to_tsvector('english'::regconfig, title), 'A'::"char") || setweight(to_tsvector('english'::regconfig, description), 'B'::"char"))));
 
 
 --
+-- Name: search_matrix_user_id; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_matrix_user_id ON public.matrix_user_links USING btree (matrix_user_id);
+
+
+--
+-- Name: search_messages; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_messages ON public.coherences USING btree (messages);
+
+
+--
+-- Name: search_priority; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_priority ON public.coherences USING btree (priority);
+
+
+--
+-- Name: search_privy_user_id; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_privy_user_id ON public.matrix_user_links USING btree (privy_user_id);
+
+
+--
+-- Name: search_refresh_token; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_refresh_token ON public.matrix_user_links USING btree (refresh_token);
+
+
+--
+-- Name: search_room_id; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_room_id ON public.coherences USING btree (room_id);
+
+
+--
+-- Name: search_slug; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_slug ON public.coherences USING btree (slug);
+
+
+--
+-- Name: search_tags; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_tags ON public.coherences USING btree (tags);
+
+
+--
+-- Name: search_token_expires_at; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_token_expires_at ON public.matrix_user_links USING btree (token_expires_at);
+
+
+--
+-- Name: search_type; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_type ON public.coherences USING btree (type);
+
+
+--
+-- Name: search_views; Type: INDEX; Schema: public; Owner: neondb_owner
+--
+
+CREATE INDEX search_views ON public.coherences USING btree (views);
+
+
+--
 -- Name: documents before_insert_documents; Type: TRIGGER; Schema: public; Owner: neondb_owner
 --
 
 CREATE TRIGGER before_insert_documents BEFORE INSERT ON public.documents FOR EACH ROW EXECUTE FUNCTION public.generate_slug();
@@ -793,8 +1024,16 @@
 CREATE TRIGGER before_update_people BEFORE UPDATE ON public.people FOR EACH ROW EXECUTE FUNCTION public.generate_people_slug();
 
 
 --
+-- Name: coherences coherences_space_id_spaces_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: neondb_owner
+--
+
+ALTER TABLE ONLY public.coherences
+    ADD CONSTRAINT coherences_space_id_spaces_id_fk FOREIGN KEY (space_id) REFERENCES public.spaces(id);
+
+
+--
 -- Name: documents documents_space_id_spaces_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: neondb_owner
 --
 
 ALTER TABLE ONLY public.documents
@@ -890,8 +1129,16 @@
 GRANT USAGE ON SCHEMA auth TO authenticated;
 
 
 --
+-- Name: TABLE coherences; Type: ACL; Schema: public; Owner: neondb_owner
+--
+
+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.coherences TO authenticated;
+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.coherences TO anonymous;
+
+
+--
 -- Name: TABLE documents; Type: ACL; Schema: public; Owner: neondb_owner
 --
 
 GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.documents TO authenticated;
@@ -906,8 +1153,16 @@
 GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.events TO anonymous;
 
 
 --
+-- Name: TABLE matrix_user_links; Type: ACL; Schema: public; Owner: neondb_owner
+--
+
+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.matrix_user_links TO authenticated;
+GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.matrix_user_links TO anonymous;
+
+
+--
 -- Name: TABLE memberships; Type: ACL; Schema: public; Owner: neondb_owner
 --
 
 GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.memberships TO authenticated;

This comment was last updated at Fri, 27 Feb 2026 14:38:15 GMT

@evgenibir evgenibir force-pushed the feat/1908-coherence-screen-and-chats branch 2 times, most recently from 9791cc6 to 98e8015 Compare March 2, 2026 07:36
@evgenibir evgenibir force-pushed the feat/1908-coherence-screen-and-chats branch from 98e8015 to 0f1b2b1 Compare March 2, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iFrame and screen to include signals and conversation

1 participant