MCPcopy Index your code
hub / github.com/winfunc/opcode / handleProjectClick

Function handleProjectClick

src/App.tsx:169–182  ·  view source on GitHub ↗
(project: Project)

Source from the content-addressed store, hash-verified

167 * Handles project selection and loads its sessions
168 */
169 const handleProjectClick = async (project: Project) => {
170 try {
171 setLoading(true);
172 setError(null);
173 const sessionList = await api.getProjectSessions(project.id);
174 setSessions(sessionList);
175 setSelectedProject(project);
176 } catch (err) {
177 console.error("Failed to load sessions:", err);
178 setError("Failed to load sessions for this project.");
179 } finally {
180 setLoading(false);
181 }
182 };
183
184 /**
185 * Opens the project directory picker

Callers 1

AppContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected