Add support for tags#1002
No reviewers
Labels
No labels
⌚ Major-release
⌚ Minor-release
⚔️ Wontfix
⚙️ CI
⛏️ Breaking
✅ Fixed
✨ Duplicate
❌ Invalid
❓ Question
❤️ Support
➡️ Frontport
➡️ Needs-frontport
🌐 Translation
🌠 Long-term
🎉 Feature
🎯 Enhancement
🏗️ Build
🐛 Bug
👋 Good-first-issue
💀 Deprecation
💡 Suggestion
💬 Discussion
💭 Brainstorming
💰 Sponsored
💻 UI/UX
📄 Documentation
📈 Performance
📌 Priority-critical
📌 Priority-high
📍 Priority-low
📍 Priority-medium
📡 Needs-feedback
📱 F-droid
📸 Release
🔒 Security
🔙 Backport
🔙 Has-backport
🔙 Needs-backport
🔙 Regression
🔭 Cannot-reproduce
🗄️ Repository
🗒️ Changelog
🗓️ Summary
🤾 Google-play
🥑 Ready
🧪 Testing
🧺 Cleanup
🧺 Needs-cleanup
🧾 Confirmed
🩹 External-dependecy
🪒 Refactor
🪜 Upstream
🙇♂️ Needs-help
🚀 Improvement
🚨 Investigate
🛡️ Blocked
🛰️ API-dependency
🟦 Website
No project
No assignees
3 participants Notifications
Due date No due date set.
Dependencies
No dependencies set.
Reference
gitnex/GitNex!1002
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch ":tags"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #983
TODO
You can add pagination if you would like.
I know, forgot in todo list
WIP: Add support for tagsto Add support for tagsI think it's ready
Thanks, I will review it soon when get some time.
Bdw, the pagination implementation with viewmodel will not work properly. Have you test it?
Yes, and for me it's working (but it uses a simple workaround, just send the adapter as a parameter of the function, maybe that's what you mean)
Can we add a progress indicator when we switch with filter, and for pages load?
For creating tag, If I tap on create tag. Will it create a release too or just tag?
Maybe we can enhance creating release screen to accomodate tag properly.
@ -43,2 +50,4 @@private String repoOwner;private String releaseTag;private boolean viewTypeIsTags = false;private int page = 1;Just initlization would work,
private int page;Well, I tried this and in this case
pagewas 0 at the beginning, it must be 1.@ -59,0 +73,4 @@Call<List<GitTag>> call = RetrofitClient.getApiInterface(ctx).getTags(token, owner, repo, 1, 50);Page limit should come from
helpers/Constants. Our default is 25 for new and 10 for old.@ -59,0 +99,4 @@Call<List<GitTag>> call = RetrofitClient.getApiInterface(ctx).getTags(token, owner, repo, page, 50);Page limit should come from
helpers/Constants. Our default is 25 for new and 10 for old.@ -772,0 +775,4 @@<string name="tagCreated">Tag created</string><string name="asRef">Use as reference</string><string name="deleteTagConfirmation">Do you really want to delete this tag?</string><string name="deleteTagTitle">Delete tag %s</string>How to delete a tag?
There should be a button with three dots next to the tag name in the list, there is the option.
Unfortunately I don't see one. I am on GitNex repo.
Ok, I'll see what's wrong.
Oh, I missed the permission system. I added the values used in #977 and currently this will always be false and it will be hidden... I'll disable the permission check so we can enable it if #977 is merged
Could you try again with this
gitnex/GitNex@d27b0e0db7?And while you are at it, can you add pagination to Releases too?
@mmarif
Sure!
Only the tag
I mostly copied this ui from gitea itself, but yes that would be probably good.
@mmarif
Requires a tea4j update, but yes I can do this👍
@ -771,1 +771,4 @@<string name="selectUpdateStrategy">Select Update Strategy</string><string name="tags">Tags</string><string name="releasesTags">Releases/Tags</string><string name="create_tag">Create Tag</string>As it is following the web UI, in that case can you change the button text to
Create Tag Onlygitnex/GitNex@49ce876332@qwerty287 can you add a check and only show this if gitea instance is >= 1.15 ?
conflicts :D
@qwerty287 can you fix the conflicts?
This
@string/labelMenuDeletedoes not exist inbottom_sheet_tag_in_list.xml. Am I missing something?It does in line 21 - 34?
@qwerty287
Sorry I was not clear. I mean that string is missing in strings.xml.
Yes, fixed it.
@ -111,0 +159,4 @@enableProcessButton();AlertDialogs.authorizationTokenRevokedDialog(ctx, ctx.getResources().getString(R.string.alertDialogTokenRevokedTitle),ctx.getResources().getString(R.string.alertDialogTokenRevokedMessage),ctx.getResources().getString(R.string.alertDialogTokenRevokedCopyNegativeButton),This should be
R.string.cancelButtonas there is no such string foralertDialogTokenRevokedCopyNegativeButton.@ -111,0 +160,4 @@AlertDialogs.authorizationTokenRevokedDialog(ctx, ctx.getResources().getString(R.string.alertDialogTokenRevokedTitle),ctx.getResources().getString(R.string.alertDialogTokenRevokedMessage),ctx.getResources().getString(R.string.alertDialogTokenRevokedCopyNegativeButton),ctx.getResources().getString(R.string.alertDialogTokenRevokedCopyPositiveButton));This should be
R.string.navLogoutinstead ofalertDialogTokenRevokedCopyPositiveButton. No such string.Can you help build the app from this PR to fix the missing bits. Thanks
@qwerty287 this is ready for mergning. Just one thing I wish was there, when delete a tag, refresh the view with updated list. But it can be done in another PR.