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

fix(component): utilized NcDateTime component #41334

Merged
merged 4 commits into from
Nov 16, 2023
Merged

Conversation

emoral435
Copy link
Contributor

Resolves #41261
Replaces span element with custom Nc Vue Component
Signed-off-by: Eduardo Morales emoral435@gmail.com

BEFORE

chrome_c0cPiphzOz

AFTER

chrome_c0cPiphzOz

Summary

Replaces span element with custom Nc Vue Component. Frontend looks the same, but the actual code uses the Nextcloud Component

TODO

  • utilize prebuilt NcDateTime component from @nextcloud/vue library

Checklist

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

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

Nice!!
See inline comments :)

@skjnldsv skjnldsv requested review from a team, Fenn-CS, sorbaugh and susnux and removed request for a team November 8, 2023 08:16
@skjnldsv skjnldsv added this to the Nextcloud 28 milestone Nov 8, 2023
@blizzz blizzz mentioned this pull request Nov 8, 2023
@susnux susnux requested review from Pytal and removed request for sorbaugh November 9, 2023 17:47
@emoral435
Copy link
Contributor Author

I removed the mtime computed section because yeah, it wasn't really being used! Nice catch!
And because the mtime member from the Node class returns a date object of when it was modified, I used that

@emoral435
Copy link
Contributor Author

/compile amend /

* Disable modification of the displayname property for files and
* folders via PROPPATCH. See PROPFIND for more information.
*/
$propPatch->handle(self::DISPLAYNAME_PROPERTYNAME, function ($displayName) {

Check notice

Code scanning / Psalm

MissingClosureParamType Note

Parameter $displayName has no provided type
@emoral435
Copy link
Contributor Author

/compile amend/

@blizzz blizzz mentioned this pull request Nov 14, 2023
@emoral435 emoral435 dismissed skjnldsv’s stale review November 16, 2023 17:59

resolved issues and comments

@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Nov 16, 2023
@emoral435 emoral435 force-pushed the fix/mtime-render branch 2 times, most recently from ff3ae33 to b4fb67b Compare November 16, 2023 20:23
@emoral435
Copy link
Contributor Author

/compile amend/

Resolves #41261
Replaces span element with custom Nc Vue Component
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
…Node.mtime returned date object

Signed-off-by: Eduardo Morales <emoral435@gmail.com>
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@emoral435 emoral435 merged commit 9a3d45b into master Nov 16, 2023
41 checks passed
@emoral435 emoral435 deleted the fix/mtime-render branch November 16, 2023 21:35
Copy link

welcome bot commented Nov 16, 2023

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

@blizzz blizzz mentioned this pull request Nov 20, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement feature: files
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Replace mtime render with NcDateTime
5 participants