feat: frontend improvements and Vue code review optimizations#171
Merged
zhenghaoz merged 6 commits intogorse-io:masterfrom Apr 28, 2026
Merged
feat: frontend improvements and Vue code review optimizations#171zhenghaoz merged 6 commits intogorse-io:masterfrom
zhenghaoz merged 6 commits intogorse-io:masterfrom
Conversation
Contributor
zhangzhenghao
commented
Apr 26, 2026
- Add Extensions menu with browser links in navigation drawer (Chrome/Edge/Firefox)
- Fix: show error message instead of infinite loading on Explore page API errors
- Fix: sync auth state between components on login/logout
- Refactor: extract auth logic into authMixin.js (DRY principle)
- Refactor: use scoped styles to prevent CSS pollution
- Refactor: extract TOPICS, LANGUAGES, EXTENSIONS as module constants
- Add loading states for like/next buttons
- Add error handling for like() method
- Add formatNumber utility for star counts (1000 → 1k)
- Remove unused variables (primaryColor, textColor, stargazers_url, forks_url)
- Remove console.log debug statements
- Add v-list-group for Extensions in v-navigation-drawer - Include Chrome, Edge, Firefox extension links with icons - Use mdi-puzzle, mdi-google-chrome, mdi-microsoft-edge, mdi-firefox icons
- Add error state to Home.vue - Add .catch() handlers to recommend() and next() methods - Show v-alert with error message when API fails - Add Retry button for user to retry fetching - Clear error state before new requests
- MainLayout dispatches 'gitrec-auth-change' custom event on logout - MainLayout also dispatches event on successful login check - Home.vue listens for the event and updates isAuthenticated state - Fixes issue where Explore page showed login prompt after logout
- Extract auth logic into authMixin.js (DRY principle) - Remove unused variables (primaryColor, textColor, stargazers_url, forks_url) - Add loading states for like/next buttons - Add error handling for like() method - Use scoped styles to prevent CSS pollution - Extract constants (TOPICS, LANGUAGES, EXTENSIONS) - Add formatNumber utility for star counts - Use computed topicPath for URL encoding - Use Promise chaining in next() method - Remove console.log statements
…ing views Co-authored-by: Copilot <copilot@github.com>
93cb900 to
fcfc2fd
Compare
… on viewport width Co-authored-by: Copilot <copilot@github.com>
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.