Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ node_modules/
dist/

# Auxiliary scripts
reset_demo.sh
reset_demo.sh

# LLM generated files
pr_description.md
2 changes: 1 addition & 1 deletion AI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## 🚦 Strict Workflow Protocol
Before modifying, generating, or deleting any files, the agent MUST follow these steps in exact order:
1. **Plan First:** Present a comprehensive architectural review, design summary, or pseudo-code strategy. Wait for explicit user greenlight.
2. **Git Branching:** Checkout to a distinct feature or refactor branch from `main` using the Conventional Commits specification (e.g., `feat(backend): ...`, `refactor(frontend): ...`).
2. **Git Branching:** Checkout to a distinct feature or refactor branch from `main` using the Conventional Commits specification (e.g., `feat(backend)/...`, `refactor(frontend)/...`).
3. **Execution:** Apply the changes within the tightly scoped workspace directory.
4. **Finalize:** Upon user validation, stage and commit changes with concise, structured commit messages.
5. **Documentation:** Auto-generate a pull request summary titled `pr_description.md` in the project root adhering to the workspace markdown template.
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/modules/auth/components/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ const redirect = route.query.redirect as string | undefined

const { handleSubmit } = useForm<LoginFormValues>({
validationSchema: toTypedSchema(loginSchema),
initialValues: isDemo
? {
email: 'demo@evsy.dev',
password: 'bestructured',
}
: undefined,
})

const { mutate: runLogin, isPending: isLoading } = useMutation({
Expand Down Expand Up @@ -91,7 +97,7 @@ const onSubmit = handleSubmit(values => runLogin(values))
<Button type="submit" class="w-full" :disabled="isLoading"> Log In </Button>

<!-- Link to signup -->
<div class="text-center text-sm">
<div v-if="!isDemo" class="text-center text-sm">
Don’t have an account?
<RouterLink
:to="{ path: '/signup', query: { redirect } }"
Expand Down
17 changes: 12 additions & 5 deletions frontend/src/modules/auth/router.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
import type { RouteRecordRaw } from 'vue-router'
import LoginPage from './pages/LoginPage.vue'
import SignupPage from './pages/SignupPage.vue'
import { useAppConfig } from '@/shared/composables/useAppConfig'

const { isDemo } = useAppConfig()

export const authRoutes: RouteRecordRaw[] = [
{
path: '/login',
name: 'Login',
component: LoginPage,
},
{
path: '/signup',
name: 'Signup',
component: SignupPage,
},
...(!isDemo

Check warning on line 14 in frontend/src/modules/auth/router.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Unexpected negated condition.

See more on https://sonarcloud.io/project/issues?id=ivanskv2000_evsy&issues=AZ462rmRLZvu6kXfMuRy&open=AZ462rmRLZvu6kXfMuRy&pullRequest=45
? [
{
path: '/signup',
name: 'Signup',
component: SignupPage,
},
]
: []),
]
Loading