Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Improve dashboard repo search #872

Closed
wants to merge 2 commits into from
Closed

[WIP] Improve dashboard repo search #872

wants to merge 2 commits into from

Conversation

andreynering
Copy link
Contributor

@andreynering andreynering commented Feb 8, 2017

This is a WIP.

Followup of #773. This PR makes possible to search all repos, not just the 15 listed.

@andreynering andreynering added topic/ui Change the appearance of the Gitea UI pr/wip This PR is not ready for review labels Feb 8, 2017
@andreynering andreynering added this to the 1.2.0 milestone Feb 8, 2017
Copy link
Member

@bkcsoft bkcsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few notes that I just want answers for 😜

@@ -1474,16 +1475,45 @@ function selectRange($list, $select, $from) {
changeHash('#' + $select.attr('rel'));
}

$(function () {
if ($('.user.signin').length > 0) return;
$('form').areYouSure();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?


searchRepos: function() {
var self = this;
$.getJSON('/api/v1/repos/search?q=' + self.searchQuery, function(result) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And all of sudden I feel the urge to write an API-client for javascript (I hate hard-coded URLs 😆 )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work if gitea is reached on a subfolder

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☝️ Exactly my point :trollface:

</li>
{{end}}
<ul class="repo-owner-name-list">
<li v-for="repo in repos" :class="{'private': repo.private}">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means no more server-side rendering right? Is that a good idea?

@@ -54,9 +52,9 @@
{{.i18n.Tr "home.collaborative_repos"}}
</h4>
<div class="ui attached table segment">
<ul id="collaborative-repo-list" class="search-list">
<ul id="collaborative-repo-list">
{{range .CollaborativeRepos}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No search on collaborative repos?

@lunny
Copy link
Member

lunny commented Apr 19, 2017

any update?

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 19, 2017
@andreynering
Copy link
Contributor Author

@lunny Not yet. I'll have to review if the API is already complete to finalize this.

@lunny
Copy link
Member

lunny commented Apr 27, 2017

@andreynering I suggest move this to v1.3

@andreynering andreynering modified the milestones: 1.3.0, 1.2.0 Apr 27, 2017
@andreynering
Copy link
Contributor Author

@lunny Done. Sorry for the delay.

@appleboy
Copy link
Member

@andreynering conflicts.

@andreynering
Copy link
Contributor Author

Closed in favor of #1652

@lunny lunny removed this from the 1.3.0 milestone May 1, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. pr/wip This PR is not ready for review topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants