Add Key Results tab (KR list + detail + data source config)#83
Closed
devin-ai-integration[bot] wants to merge 1 commit into
Closed
Add Key Results tab (KR list + detail + data source config)#83devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Contributor
Author
Original prompt from API User
|
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Add KeyResult data model with weekly values and Keychain-backed bearer token storage (KeyResultKeychainHelper) - Add KeyResultStore for JSON file persistence (iCloud Documents, matching ConversationFileStore's pattern) - Add KeyResultFetcher for fetching values from a configured HTTP API - Insert Key Results as the first tab (index 0) in SideDrawerViewController - Implement KeyResultCell with title, current value, and mini bar chart - Implement KeyResultDetailVC with: - Editable title and metric name - Full bar chart (current week highlighted in orange) - Data source config (API URL, SecureField for bearer token, Fetch button) - Manual weekly value entry - Update NavigationSkill to support 'keyresults' panel navigation - Exclude KeyResults/ from macOS and visionOS targets (iOS only) Co-Authored-By: bot_apk <apk@cognition.ai>
20502ac to
de0bcf5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new Key Results tab as the first tab (index 0) in the side drawer, with full CRUD: a list view with mini sparkline charts, a detail/edit view with a bar chart (current week highlighted), data source configuration (API fetch with Keychain-stored bearer token), and manual weekly value entry.
Architecture at a glance
Key decisions
key_results.jsonin the same iCloud Documents container the conversation store uses. Atomic rewrite (dataset is small).KeyResultKeychainHelper(servicecom.bhat.intel.keyresults, account = KR UUID). Never written to the JSON file.UIView(no SwiftUI Charts dependency) —BarChartViewin the detail,MiniBarChartViewin the cell.["Key Results", "Conversations", "Files", "Skills"](indices 0/1/2/3). Segment restore and NavigationSkill routing updated accordingly.membershipExceptions.Implemented
keyresults/krpanel/tabExplicitly deferred (v2)
Link to Devin session: https://app.devin.ai/sessions/8b15efc191904095a8e20d6e1535878b