Repository navigation
feat(mac): Shortcuts and Siri actions - #57
Merged
Merged
Conversation
NextLectureUseCase finds the running or next lecture of an active module and phrases it („Als Nächstes: Analysis I, heute um 10:15 in HS 1.“); DueCardsUseCase counts due flashcards per module. Both are plain use cases so Shortcuts, Siri and later widgets share them. Refs #47 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TmmqmKmX8VDSfoPbzTS1ew
The interface is German throughout; declaring it lets Siri and the Shortcuts app match the German App Shortcut phrases and lets system components such as Sparkle pick German. Refs #47 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TmmqmKmX8VDSfoPbzTS1ew
App Intents for „Nächste Vorlesung“, „Fällige Karteikarten“ and „Karteikarten lernen“ (with a module entity), plus App Shortcuts with German phrases. Intents get StudyAppIntentServices through AppDependencyManager; the module list for Siri is refreshed on launch. Refs #47 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TmmqmKmX8VDSfoPbzTS1ew
Refs #47 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TmmqmKmX8VDSfoPbzTS1ew
# Conflicts: # App/StudyAppApp.swift
# Conflicts: # docs/FEATURES.md
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.
Closes #47
What changes and why?
Shortcuts and Siri actions. One commit per change:
NextLectureUseCaseandDueCardsUseCasewith German answer texts – shared later by widgetsdevelopmentRegion = deandCFBundleDevelopmentRegion, so Siri/Shortcuts match the German phrases (the UI is German throughout)NextLectureIntent,DueCardsIntent,OpenFlashcardsIntent(parameterModuleEntitywith anEntityStringQuery),StudyAppShortcutswith German phrases. Intents get their services viaAppDependencyManager/@Dependency– no global singleton.The study timer action („Lerntimer starten“) needs the timer from #55; I add it in the follow-up after #55 is merged.
Tests
QuickInfoTests(next lecture skips archived/unlinked, texts for running/upcoming/none, due cards per module)Checklist
Generated by Claude Code