• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / codegate-ui / 12809054037

16 Jan 2025 12:38PM UTC coverage: 68.451% (-0.2%) from 68.636%
12809054037

push

github

web-flow
refactor: fetch prompts data using react-query (#88)

* refator: split promt fetching from UI state

* refactor: fetch prompts using react query

* .

* Revert "."

This reverts commit 891f248dd.

* fix failing tests

205 of 379 branches covered (54.09%)

Branch coverage included in aggregate %.

18 of 19 new or added lines in 6 files covered. (94.74%)

1 existing line in 1 file now uncovered.

396 of 499 relevant lines covered (79.36%)

29.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/hooks/useCurrentPromptStore.ts
1
import { create } from "zustand";
2

3
type CurrentPromptState = {
4
  currentPromptId: string;
5
  setCurrentPromptId: (id: string) => void;
6
};
7

8
export const useCurrentPromptStore = create<CurrentPromptState>((set) => ({
2✔
9
  currentPromptId: "",
NEW
10
  setCurrentPromptId: (id: string) => set({ currentPromptId: id }),
×
11
}));
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc