[PR #2285] [MERGED] Fix and improve dashboard repo UI #16323

Closed
opened 2025-11-02 12:07:46 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2285
Author: @Morlinest
Created: 8/9/2017
Status: Merged
Merged: 8/17/2017
Merged by: @lunny

Base: masterHead: fix-dashboard-repo-ui


📝 Commits (7)

  • 6a9c783 Fix and improve dashboard repo UI
  • 6aeda5e Create vue component and change event for search
  • f599456 Change order of scripts loading
  • f3ae99e Add "mirrors" filter
  • 350c7c2 Remove "mirror" tab
  • 7472ab3 Remove single tab panel for "org user"
  • 569b1bf Add localization strings

📊 Changes

10 files changed (+205 additions, -121 deletions)

View changed files

📝 options/locale/locale_en-US.ini (+5 -0)
📝 public/css/index.css (+11 -0)
📝 public/js/index.js (+82 -20)
📝 public/less/_base.less (+14 -0)
📝 routers/api/v1/repo/repo.go (+2 -0)
📝 routers/user/home.go (+1 -0)
📝 templates/base/footer.tmpl (+4 -4)
📝 templates/base/head.tmpl (+3 -0)
📝 templates/user/dashboard/dashboard.tmpl (+2 -97)
templates/user/dashboard/repo-search.tmpl (+81 -0)

📄 Description

This commit contains one fix and few UI improvements:

  1. (Fix) Do not show Vue template data, show spinner instead
  2. Add search icon to input and show spinner/loader while loading data from server
  3. Resolve race condition in search ajax callback (just simple check)
  4. Add total count to repo search api (api/v1/repos/search) - new header X-Total-Count
  5. Move search input and add filter for repositories - All, Sources, Forks and Collaborative
  6. Add search limit to query (default value in meta tag _search_limit, filled by server)

Screenshots and animated gifs are in #2278 (scroll down; showing max 10 repos, this commit version is with default filled by server = 15).

First time working with Vue + new to Semantic UI so any advice is welcome.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2285 **Author:** [@Morlinest](https://github.com/Morlinest) **Created:** 8/9/2017 **Status:** ✅ Merged **Merged:** 8/17/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix-dashboard-repo-ui` --- ### 📝 Commits (7) - [`6a9c783`](https://github.com/go-gitea/gitea/commit/6a9c783940c60c2ed7a517d8aa7f387fbd9bec9b) Fix and improve dashboard repo UI - [`6aeda5e`](https://github.com/go-gitea/gitea/commit/6aeda5ec4b5b2b07720da8124964e304f10dfa85) Create vue component and change event for search - [`f599456`](https://github.com/go-gitea/gitea/commit/f599456cce0f8a4440c6c4c22e8b00c0e355826f) Change order of scripts loading - [`f3ae99e`](https://github.com/go-gitea/gitea/commit/f3ae99e9ad40144c6f96ea676e70c32749ab12e5) Add "mirrors" filter - [`350c7c2`](https://github.com/go-gitea/gitea/commit/350c7c2e49d593d6859e3fd876bb8cfd3815d201) Remove "mirror" tab - [`7472ab3`](https://github.com/go-gitea/gitea/commit/7472ab31cfeae1dc24faca0466751f117b6d0c2b) Remove single tab panel for "org user" - [`569b1bf`](https://github.com/go-gitea/gitea/commit/569b1bf4ff7d98eb50f35b9a9505bc67b608b2d1) Add localization strings ### 📊 Changes **10 files changed** (+205 additions, -121 deletions) <details> <summary>View changed files</summary> 📝 `options/locale/locale_en-US.ini` (+5 -0) 📝 `public/css/index.css` (+11 -0) 📝 `public/js/index.js` (+82 -20) 📝 `public/less/_base.less` (+14 -0) 📝 `routers/api/v1/repo/repo.go` (+2 -0) 📝 `routers/user/home.go` (+1 -0) 📝 `templates/base/footer.tmpl` (+4 -4) 📝 `templates/base/head.tmpl` (+3 -0) 📝 `templates/user/dashboard/dashboard.tmpl` (+2 -97) ➕ `templates/user/dashboard/repo-search.tmpl` (+81 -0) </details> ### 📄 Description This commit contains one fix and few UI improvements: 1. (Fix) Do not show Vue template data, show spinner instead 2. Add search icon to input and show spinner/loader while loading data from server 3. Resolve race condition in search ajax callback (just simple check) 4. Add total count to repo search api (api/v1/repos/search) - new header `X-Total-Count` 5. Move search input and add filter for repositories - `All`, `Sources`, `Forks` and `Collaborative` 6. Add search limit to query (default value in meta tag `_search_limit`, filled by server) Screenshots and animated gifs are in #2278 (scroll down; showing max 10 repos, this commit version is with default filled by server = 15). First time working with Vue + new to Semantic UI so any advice is welcome. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:07:46 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16323