Skip to content

feat(preview): use uploader_display_name for sidebar uploader info#2091

Merged
omgrief merged 2 commits intobox:masterfrom
omgrief:use-uploader-display-name
Apr 23, 2020
Merged

feat(preview): use uploader_display_name for sidebar uploader info#2091
omgrief merged 2 commits intobox:masterfrom
omgrief:use-uploader-display-name

Conversation

@omgrief
Copy link
Contributor

@omgrief omgrief commented Apr 21, 2020

No description provided.

@omgrief omgrief requested review from a team as code owners April 21, 2020 21:18
@omgrief omgrief force-pushed the use-uploader-display-name branch from 59bd08f to 49baa4f Compare April 21, 2020 21:20
@omgrief omgrief force-pushed the use-uploader-display-name branch from 49baa4f to 8041c59 Compare April 21, 2020 21:39
uploader={getProp(file, 'created_by.name')}
// use uploader_display_name if uploaded anonymously
uploader={
getProp(file, 'created_by.id') === 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it string '2' or number 2? Could we reference a constant like

export const PLACEHOLDER_USER = { type: 'user', id: '2', name: '' };
to avoid magic numbers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed @ConradJChan

@omgrief omgrief force-pushed the use-uploader-display-name branch from 8041c59 to c0f3562 Compare April 22, 2020 17:23
@omgrief omgrief merged commit bcc909e into box:master Apr 23, 2020
@omgrief omgrief deleted the use-uploader-display-name branch April 23, 2020 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants