Skip to content

#7542:show creator and created date in respective card#7650

Merged
samin-z merged 6 commits intomainfrom
feature/7542-show-card-creator
Apr 15, 2026
Merged

#7542:show creator and created date in respective card#7650
samin-z merged 6 commits intomainfrom
feature/7542-show-card-creator

Conversation

@samin-z
Copy link
Copy Markdown
Contributor

@samin-z samin-z commented Feb 16, 2026

  • Resolves: #7542
  • Target version: main

Summary

Show more info regarding card like creator and date the card was created

TODO

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Documentation (manuals or wiki) has been updated or is not required
Screenshot 2026-04-14 at 17 04 53

@samin-z
Copy link
Copy Markdown
Contributor Author

samin-z commented Feb 16, 2026

@grnd-alt @elzody
hey, i added these info that user requested, but not sure if we should go over a design first or can just add them. any suggestions are greatly welcomed.

Copy link
Copy Markdown
Member

@grnd-alt grnd-alt left a comment

Choose a reason for hiding this comment

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

I am not sure we want to add this feature tbh. The information is already accessible, the creation date of the card is always displayed in the card details and the creator can be found out through the activity tab. I'd be open to add the created by like this:
image

this uses NcUserBubble from @nextcloud/vue for reference

@pipeman1981
Copy link
Copy Markdown

Hej All, hi grnd-alt,
I'm really looking forward to this feature and would be completely happy if it could be realised like you suggested.
Regards,
Carsten

@samin-z
Copy link
Copy Markdown
Contributor Author

samin-z commented Mar 16, 2026

@grnd-alt, ill also apply ownership point we talked about here too in this task.

@samin-z samin-z force-pushed the feature/7542-show-card-creator branch from 2cac2ef to 7b31377 Compare March 25, 2026 13:51
@github-actions
Copy link
Copy Markdown
Contributor

🐢 Performance warning.
It looks like the query count of the integration tests increased with this PR.
Database query count is now 94753 was 93102 (+1.77%)
Please check your code again. If you added a new test this can be expected and the base value in tests/integration/base-query-count.txt can be increased.

@samin-z samin-z marked this pull request as ready for review March 25, 2026 14:46
@samin-z samin-z requested a review from grnd-alt March 25, 2026 14:46
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Mar 25, 2026
@samin-z samin-z moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Mar 25, 2026
Copy link
Copy Markdown
Member

@grnd-alt grnd-alt left a comment

Choose a reason for hiding this comment

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

works but would be nicer to use the formatting instead of the string concatenation

return t('deck', 'Modified') + ': ' + this.relativeDate(this.currentCard.lastModified * 1000) + ' ⸱ ' + t('deck', 'Created') + ': ' + this.relativeDate(this.currentCard.createdAt * 1000)
let subtitle = t('deck', 'Modified') + ': ' + this.relativeDate(this.currentCard.lastModified * 1000) + ' ⸱ ' + t('deck', 'Created') + ': ' + this.relativeDate(this.currentCard.createdAt * 1000)
if (this.cardOwnerDisplayName) {
subtitle += ' ⸱ ' + t('deck', 'by') + ': ' + this.cardOwnerDisplayName
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should use formatting inside translations here so that translators can change the order like: modified this at

here's an example on how to use the formatting: https://github.com/nextcloud/server/blob/master/apps/dashboard/src/DashboardApp.vue#L229

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

🐢 Performance warning.
It looks like the query count of the integration tests increased with this PR.
Database query count is now 95997 was 93102 (+3.1%)
Please check your code again. If you added a new test this can be expected and the base value in tests/integration/base-query-count.txt can be increased.

@samin-z samin-z requested a review from grnd-alt April 2, 2026 15:42
},
subtitleTooltip() {
return t('deck', 'Modified') + ': ' + this.formatDate(this.currentCard.lastModified) + '\n' + t('deck', 'Created') + ': ' + this.formatDate(this.currentCard.createdAt)
return this.buildSubtitleTooltip()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why have this in an extra method and not just in the computed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

because of the previous comment about using proper translation formatting, i extracted the logic into separate methods for better readability, with the new changes the logic simplified enough to be moved back into the computed properties.

},
methods: {
buildSubtitle() {
const modifiedDate = this.relativeDate(this.currentCard.lastModified * 1000)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we should remove this entire building code and just use the subname as a slot and not as a prop, that way we can use NcUserBubble to display the user with actual profile picture etc.

with <template #subname> you can render components inside the subname

const createdDate = this.formatDate(this.currentCard.createdAt)
const owner = this.cardOwnerDisplayName
const cardMeta = {
generic: t('deck', '{modified}: {modifiedDate}\n{created}: {createdDate}',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

these translation strings don't need to be that modular, only actual variables should be in the {}.
like
t('deck', 'Modified: {modifiedDate}', {modifiedDate: modifiedDate})
same applies for the subtitle itself.

@samin-z samin-z requested a review from grnd-alt April 14, 2026 15:14
@github-actions
Copy link
Copy Markdown
Contributor

🐢 Performance warning.
It looks like the query count of the integration tests increased with this PR.
Database query count is now 96040 was 93102 (+3.15%)
Please check your code again. If you added a new test this can be expected and the base value in tests/integration/base-query-count.txt can be increased.

samin-z added 6 commits April 15, 2026 10:22
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
@samin-z samin-z force-pushed the feature/7542-show-card-creator branch from a125c2f to 4419ca0 Compare April 15, 2026 08:22
@github-actions
Copy link
Copy Markdown
Contributor

🐢 Performance warning.
It looks like the query count of the integration tests increased with this PR.
Database query count is now 96004 was 93102 (+3.11%)
Please check your code again. If you added a new test this can be expected and the base value in tests/integration/base-query-count.txt can be increased.

@samin-z samin-z merged commit 9b2896e into main Apr 15, 2026
43 checks passed
@samin-z samin-z deleted the feature/7542-show-card-creator branch April 15, 2026 08:44
@github-project-automation github-project-automation bot moved this from 👀 In review to ☑️ Done in 📝 Productivity team Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

Show Creator Information in Deck Cards

3 participants