-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Implement AI scoring system with provider integration and criteria management #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8158718
feat: Implement AI scoring system with provider integration and crite…
JoachimLK 5222980
feat: implement autoScoreApplication for AI-driven application scoring
JoachimLK e6279d0
feat: add document parsing functionality
JoachimLK c09ea21
feat(ai-analysis): add AI analysis dashboard and stats endpoint with …
JoachimLK 71f0185
feat(ai): enhance AI scoring and configuration with rate limiting and…
JoachimLK 6f66efd
feat: add WordExtractor type declarations and update document permiss…
JoachimLK 2d6dea5
feat: enhance resume parser with PDF polyfills and dynamic import for…
JoachimLK 2b5ef4e
Refactor code structure for improved readability and maintainability
JoachimLK 30d87f0
feat: update scoring criteria steps in candidate application, job cre…
JoachimLK 65a363c
chore: update fast-xml-parser to version 5.5.6 and reduce default tok…
JoachimLK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| <script setup lang="ts"> | ||
| import { X, AlertTriangle, CheckCircle, Info, AlertCircle, ExternalLink, ChevronDown } from 'lucide-vue-next' | ||
| import type { Toast } from '~/composables/useToast' | ||
|
|
||
| const { toasts, remove } = useToast() | ||
|
|
||
| const expandedToasts = ref(new Set<string>()) | ||
|
|
||
| function toggleDetails(id: string) { | ||
| if (expandedToasts.value.has(id)) { | ||
| expandedToasts.value.delete(id) | ||
| } else { | ||
| expandedToasts.value.add(id) | ||
| } | ||
| } | ||
|
|
||
| const typeConfig: Record<string, { icon: typeof AlertTriangle; containerClass: string; iconClass: string; accentClass: string }> = { | ||
| error: { | ||
| icon: AlertCircle, | ||
| containerClass: 'border-danger-200/60 dark:border-danger-800/60 bg-white dark:bg-surface-900 ring-1 ring-danger-100 dark:ring-danger-900/30', | ||
| iconClass: 'text-danger-500', | ||
| accentClass: 'bg-danger-500', | ||
| }, | ||
| success: { | ||
| icon: CheckCircle, | ||
| containerClass: 'border-success-200/60 dark:border-success-800/60 bg-white dark:bg-surface-900 ring-1 ring-success-100 dark:ring-success-900/30', | ||
| iconClass: 'text-success-500', | ||
| accentClass: 'bg-success-500', | ||
| }, | ||
| warning: { | ||
| icon: AlertTriangle, | ||
| containerClass: 'border-warning-200/60 dark:border-warning-800/60 bg-white dark:bg-surface-900 ring-1 ring-warning-100 dark:ring-warning-900/30', | ||
| iconClass: 'text-warning-500', | ||
| accentClass: 'bg-warning-500', | ||
| }, | ||
| info: { | ||
| icon: Info, | ||
| containerClass: 'border-brand-200/60 dark:border-brand-800/60 bg-white dark:bg-surface-900 ring-1 ring-brand-100 dark:ring-brand-900/30', | ||
| iconClass: 'text-brand-500', | ||
| accentClass: 'bg-brand-500', | ||
| }, | ||
| } | ||
|
|
||
| function getConfig(type: string) { | ||
| return typeConfig[type] ?? typeConfig.info! | ||
| } | ||
| </script> | ||
|
|
||
| <template> | ||
| <Teleport to="body"> | ||
| <div | ||
| class="fixed bottom-4 right-4 z-[100] flex flex-col-reverse gap-3 max-w-md w-full pointer-events-none" | ||
| aria-live="polite" | ||
| > | ||
| <TransitionGroup | ||
| enter-active-class="transition-all duration-300 ease-out" | ||
| leave-active-class="transition-all duration-200 ease-in" | ||
| enter-from-class="opacity-0 translate-y-3 scale-95" | ||
| enter-to-class="opacity-100 translate-y-0 scale-100" | ||
| leave-from-class="opacity-100 translate-y-0 scale-100" | ||
| leave-to-class="opacity-0 translate-y-3 scale-95" | ||
| > | ||
| <div | ||
| v-for="toast in toasts" | ||
| :key="toast.id" | ||
| class="pointer-events-auto rounded-xl border shadow-xl overflow-hidden backdrop-blur-sm" | ||
| :class="getConfig(toast.type).containerClass" | ||
| > | ||
| <!-- Accent bar --> | ||
| <div class="h-0.5" :class="getConfig(toast.type).accentClass" /> | ||
|
|
||
| <div class="p-4"> | ||
| <div class="flex items-start gap-3"> | ||
| <div class="flex items-center justify-center size-8 rounded-lg bg-surface-50 dark:bg-surface-800 shrink-0"> | ||
| <component | ||
| :is="getConfig(toast.type).icon" | ||
| class="size-4" | ||
| :class="getConfig(toast.type).iconClass" | ||
| /> | ||
| </div> | ||
| <div class="flex-1 min-w-0"> | ||
| <p class="text-sm font-semibold text-surface-900 dark:text-surface-100 leading-snug"> | ||
| {{ toast.title }} | ||
| </p> | ||
| <p | ||
| v-if="toast.message" | ||
| class="mt-1 text-xs text-surface-500 dark:text-surface-400 leading-relaxed" | ||
| > | ||
| {{ toast.message }} | ||
| </p> | ||
|
|
||
| <!-- Expandable details toggle --> | ||
| <button | ||
| v-if="toast.details" | ||
| type="button" | ||
| class="mt-2 inline-flex items-center gap-1 text-xs font-medium text-surface-500 dark:text-surface-400 hover:text-surface-700 dark:hover:text-surface-200 transition-colors" | ||
| @click="toggleDetails(toast.id)" | ||
| > | ||
| <ChevronDown | ||
| class="size-3.5 transition-transform duration-200" | ||
| :class="{ 'rotate-180': expandedToasts.has(toast.id) }" | ||
| /> | ||
| {{ expandedToasts.has(toast.id) ? 'Hide details' : 'Show details' }} | ||
| </button> | ||
|
|
||
| <!-- Expanded details --> | ||
| <div | ||
| v-if="toast.details && expandedToasts.has(toast.id)" | ||
| class="mt-2 rounded-lg bg-surface-50 dark:bg-surface-800/80 border border-surface-200 dark:border-surface-700 p-2.5 text-[11px] font-mono text-surface-600 dark:text-surface-400 leading-relaxed break-all max-h-40 overflow-y-auto" | ||
| > | ||
| {{ toast.details }} | ||
| </div> | ||
|
|
||
| <div v-if="toast.link" class="mt-2.5"> | ||
| <a | ||
| :href="toast.link.href" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| class="inline-flex items-center gap-1 text-xs font-medium text-brand-600 dark:text-brand-400 hover:text-brand-700 dark:hover:text-brand-300 transition-colors" | ||
| > | ||
| {{ toast.link.label }} | ||
| <ExternalLink class="size-3" /> | ||
| </a> | ||
| </div> | ||
| </div> | ||
| <button | ||
| type="button" | ||
| class="shrink-0 rounded-lg p-1 text-surface-400 hover:text-surface-600 dark:hover:text-surface-200 hover:bg-surface-100 dark:hover:bg-surface-800 transition-colors" | ||
| @click="remove(toast.id)" | ||
| > | ||
| <X class="size-4" /> | ||
| </button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </TransitionGroup> | ||
| </div> | ||
| </Teleport> | ||
| </template> | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set mutations may not trigger reactivity.
Direct mutations on a
Setstored in aref(delete/add) don't trigger Vue's reactivity system. The toggle may not cause the UI to update when expanding/collapsing details.🛠️ Proposed fix using reactive Set replacement
function toggleDetails(id: string) { + const newSet = new Set(expandedToasts.value) if (expandedToasts.value.has(id)) { - expandedToasts.value.delete(id) + newSet.delete(id) } else { - expandedToasts.value.add(id) + newSet.add(id) } + expandedToasts.value = newSet }📝 Committable suggestion
🤖 Prompt for AI Agents