Open
Conversation
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
…r-pwa Signed-off-by: E99p1ant <i@github.red> # Conflicts: # go.sum # internal/cmd/web.go # internal/db/db.go # internal/db/upload_images.go # internal/dbutil/testing.go # route/question/page.go # route/question/question.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the web application from a server-side rendered template-based architecture to a Progressive Web App (PWA) using Vue.js with a JSON API backend. The refactor maintains the same core functionality while modernizing the frontend architecture.
- Complete migration from server-rendered HTML templates to a Vue.js frontend with TypeScript
- Replacement of form-based endpoints with JSON API endpoints for authentication, user management, and question handling
- Modernization of the build and deployment pipeline to support separate backend and frontend containers
Reviewed Changes
Copilot reviewed 110 out of 115 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| web/* | New Vue.js PWA frontend with TypeScript, including components, pages, stores, and API clients |
| internal/route/* | Refactored backend routes to provide JSON APIs instead of template rendering |
| internal/form/* | Updated form validation to support JSON request bodies and multipart data |
| internal/context/* | Simplified context handling for API responses and removed template dependencies |
| templates/embed.go | Removed embedded HTML templates as they're no longer needed |
| go.mod | Updated Go version and dependencies to support the new architecture |
Files not reviewed (1)
- web/pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)
internal/form/form.go:1
- The logic for handling slice types appears incomplete. When the field is a slice of FileHeader pointers, it should continue to the file handling section below, but the current code structure may not reach that section properly.
// Copyright 2025 E99p1ant. All rights reserved.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…r-pwa Signed-off-by: E99p1ant <i@github.red> # Conflicts: # internal/conf/static.go # internal/context/context.go # templates/embed.go
Signed-off-by: E99p1ant <i@github.red>
…-pwa Signed-off-by: E99p1ant <i@github.red> # Conflicts: # .github/workflows/docker.yml # internal/context/context.go # internal/route/route.go # internal/template/template.go # route/auth/login.go # route/auth/logout.go # route/auth/recover.go # route/auth/register.go # route/home.go # route/pixel/pixel.go # route/question/page.go # route/question/question.go # route/user/harassment.go # route/user/profile.go # route/user/question.go # templates/base/footer.html # templates/pixel.html
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
Signed-off-by: E99p1ant <i@github.red>
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.
Signed-off-by: E99p1ant i@github.red