Repository navigation
Implement activities (files versions) - #3377
daniele-verducci wants to merge 72 commits into
Conversation
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Documentation | 69 minor |
| ErrorProne | 4 high |
| Performance | 1 medium |
| CodeStyle | 4 minor |
| Complexity | 13 medium |
🟢 Metrics 241 complexity · 2 duplication
Metric Results Complexity 241 Duplication 2
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
APK file: https://github.com/nextcloud/notes-android/actions/runs/37498486797/artifacts/11429388555 |
ffd85fa to
1500341
Compare
|
APK file: https://github.com/nextcloud/notes-android/actions/runs/38248370615/artifacts/11747525636 |
aa6b6e3 to
83b2a52
Compare
|
APK file: https://github.com/nextcloud/notes-android/actions/runs/38396893559/artifacts/11814684541 |
|
APK file: https://github.com/nextcloud/notes-android/actions/runs/38561146362/artifacts/11893339202 |
|
APK file: https://github.com/nextcloud/notes-android/actions/runs/38600254298/artifacts/11913732039 |
93f0456 to
3b9a44e
Compare
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…er and fragments Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…refactoring) Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…claration in the manifest (removed in commit 409e130), so componentName is always null Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…e for multiple selection Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
… present on main branch) Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…hen restoring from editor Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
49fde28 to
3a7f4f3
Compare
|
Hey @nimishavijay , can you please have a look to the screenshots and let me know what do you think about it? I basically tried to align them to the Files app while respecting the Notes app style, but I may have missed something (not a very good graphic eye here 😅) |
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
| binding.root.setOnClickListener { | ||
| when { | ||
| item.activity != null -> listener.onActivityItemClick(item.activity) | ||
| item.fileVersion != null -> listener.onVersionItemClick(item.fileVersion) |
There was a problem hiding this comment.
what if both of them exist and user wants to tap file version?
| binding.datetime.apply { | ||
| visibility = View.VISIBLE | ||
| text = dateFormatter.getConditionallyRelativeFormattedTimeSpan( | ||
| Calendar.getInstance().apply { |
There was a problem hiding this comment.
do we need calendar instance per item?
| fun getTitle() : String? = | ||
| when { | ||
| activity != null -> activity.subject | ||
| fileVersion != null -> context.getString(R.string.new_version_was_created) |
There was a problem hiding this comment.
why always activity first? cant both of them not null at the same time?
| import java.util.Date | ||
|
|
||
| data class Activity( | ||
| @SerializedName("activity_id") val id: Long, |
There was a problem hiding this comment.
Can we use kotlinx.serialization instead gson? Since Notes app needs to have r8 optimizations.
| override fun onVersionItemClick(version: FileVersion) { | ||
| binding.swipeContainingList.isRefreshing = true | ||
| // Restore the version | ||
| val ssoAccount = |
There was a problem hiding this comment.
val ssoAccount =
SingleAccountHelper.getCurrentSingleSignOnAccount(requireContext())
Can this be done on main thread?
| shareNote(); | ||
| return false; | ||
| } else if (itemId == R.id.menu_details) { | ||
| if (getActivity() instanceof EditNoteActivity) |
There was a problem hiding this comment.
getActivity() instanceof EditNoteActivity editNoteActivity
via this way you can directly access the editNoteActivity no need cast again
Before reviewing this it's needed to:
(...or build all the dependencies from the respective repositories and point to them)
What's this?
Android implementation of nextcloud/files-clients#132
🖼️ Screenshots
🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)