Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
/ Orion Public archive

Feature/165 improve ux for alerts #139

Merged
merged 5 commits into from
Jun 19, 2018

Conversation

kernelwhisperer
Copy link
Contributor

What changed?

The confirmation dialog for removing files.

message,
detail: `This includes: \n\n${elementsDetails}\n\nYou can't undo this action.`,
type: 'warning',
buttons: ['Cancel', 'Delete'],
Copy link
Member

Choose a reason for hiding this comment

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

I find Cancel and Delete confusing a little.
What do you think about Cancel and Ok?

cancelId: 0
title,
message,
detail: `This includes: \n\n${elementsDetails}\n\nYou can't undo this action.`,
Copy link
Member

Choose a reason for hiding this comment

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

What about Once done, You can't restore the files instead of You can't undo this action. (as if it already happened?)
What do you say?

@koalalorenzo
Copy link
Member

Do we have other places/alerts where we show hashes?
What about the dialog when you add files?

@kernelwhisperer
Copy link
Contributor Author

kernelwhisperer commented Jun 18, 2018

Added to Publish to IPNS and after uploading multiple files as well.

It looks like these are the only places we show a hash in a dialog.

.then(result => {
const message = `IPNS ${result.name} has been successfully updated to ${result.value}!`
const newHash = `${el.hash} - ${el.stat.CumulativeSize.value} ${el.stat.CumulativeSize.unit}`
Copy link
Member

@koalalorenzo koalalorenzo Jun 18, 2018

Choose a reason for hiding this comment

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

I guess that the hash is enough in the IPNS case, but if we can get the file names it would be helping a lot to understand what they have published! (maybe remove the size).

Think what the use would find useful here.

const buttons = ['Close', 'Open in the browser']
const elementsDetails = results
.map(el => {
return `${el.Hash} - ${el.CumulativeSize.value} ${el.CumulativeSize.unit}`
Copy link
Member

Choose a reason for hiding this comment

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

Add file name next to the hash, short the hash to few chars as length

const message = `Are you sure you want to delete the selected ${isOneFile ? 'file?' : `${elements.length} files?`}`
const elementsDetails = elements
.map(el => {
return `${el.hash} - ${el.stat.CumulativeSize.value} ${el.stat.CumulativeSize.unit}`
Copy link
Member

Choose a reason for hiding this comment

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

Same here: show the file names, and a short hash

@kernelwhisperer
Copy link
Contributor Author

Updated to show filenames - hash - size. Let me know what you think

@kernelwhisperer kernelwhisperer merged commit 1db7d7c into master Jun 19, 2018
@kernelwhisperer kernelwhisperer deleted the feature/165-improve-ux-for-alerts branch June 19, 2018 05:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants