Open
Conversation
Major Changes: - Replace Firebase Authentication with Supabase Auth - Implement Google OAuth 2.0 login flow with PKCE - Setup Supabase PostgreSQL database with 6 tables - Configure Row Level Security (RLS) policies - Create Storage bucket for activity documents Architecture: - Frontend: Quasar v2.16.0 + Vue 3 Composition API - Backend: Supabase (Auth, Database, Storage) - Deployment: Vercel ready with serverless functions Features Implemented: - Google OAuth authentication (useAuth composable) - Student dashboard with activity management - Activity application form with options dialog - Document upload system with Supabase Storage - Real-time data sync with useDashboard composable Database Schema: - users: User profiles with role-based access - dashboards: User statistics and metrics - activities: Activity applications and tracking - documents: File metadata and references - approvals: Two-level approval workflow - announcements: System-wide notifications Security: - RLS policies for all tables (16 policies) - Storage policies for document access (3 policies) - OAuth with PKCE flow for enhanced security - Environment variables properly configured
- 移除 useDashboard.js 中 Promise.race 超時邏輯(導致解構失敗) - 修復 DashboardPage.vue 活動創建後跳轉邏輯(留在 dashboard 而非跳轉到 application) - 更新成功通知訊息:「提交案已建立」→「活動案已建立」 - 新增 ActivityOptionsDialog.vue 必填欄位驗證與測試資料填寫功能 - 新增活動名稱、活動描述(選填)、日期時間、成果報告書繳交日期等欄位 - 新增有無外校同學選項與外校校名輸入 - 調整欄位順序:外校同學選項在活動地點之前 - 配置 Quasar Notify 插件 - 新增 .gitignore 排除 sql/ 資料夾與 googlefrom_pdf/ 資料夾 - 更新 PROJECT_WALKTHROUGH.md 記錄今日問題診斷與修復過程
- 新增 goToActivity 函數,點擊活動後導向 /application 並傳遞活動 ID - 更新活動卡片顯示狀態(待審核/已通過/草稿) - 統一使用 event icon 和 primary 顏色 - 移除未使用的 goTo 函數註解
…registration flow
…ard display - 將 Dashboard 背景改為中規中矩的灰白色系 - 移除玻璃態效果,使用標準 Quasar Card 設計 - 修復 useDashboard 初始數據加載問題 - 添加活動狀態顯示輔助函數 (getStatusColor, getStatusText, formatDate) - 整合文件定義到 constants.js,移除重複定義 - 添加 getDocumentNames 工具函數顯示文件中文名稱 - 移除未使用的 ActivityInfoDialog 組件 - 修復 CSS 語法錯誤和 ESLint 警告
- 實作 useStorage composable (上傳/下載/刪除/驗證) - 創建 DocumentUploadSection 組件 * 顯示所有文件定義,視覺區分需要/不需要上傳 * 需要上傳:正常色調,可操作 * 不需要上傳:淡色調,標註「本次活動不須上傳」 * 需要的排在上方,不需要的排在下方 - 整合到 ApplicationPage * 只在 approved 狀態顯示上傳區域 * 自動同步文件資訊到資料庫 uploaded_files 欄位 * 頁面刷新自動恢復已上傳文件列表 - 文件操作:上傳/查看/重新上傳/刪除 - 驗證:檔案類型、大小 (50MB) - UX 優化:進度條、Toast 提示、確認對話框
- Add useStorage composable with core upload/download/delete functions - Add DocumentUploadSection component for file management UI - Integrate file upload into ApplicationPage (shows after approval) - Add STORAGE_RLS_SETUP.md with RLS configuration guide - Update @supabase/supabase-js to 2.89.0 - Remove all debug logging and diagnostic code - Clean code following development guidelines
fixed am issue where uploaded files couldnt be deleted caused by quasar_config plugin setting
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.
重構專案