Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Activity app design #1769

Merged
merged 29 commits into from May 14, 2014
Merged

Activity app design #1769

merged 29 commits into from May 14, 2014

Conversation

jancborchardt
Copy link
Contributor

🚧

@nickvergessen let’s use this for working on the Activity app design. Essentially we should move to an easier to read list view. Here’s a basic mockup of how it should look:
owncloud activity app mockup

  • have text be like a sentence: »shared test with Tom« (including share icon, filename in bold, and avatar left next to friend username)
  • use icons for actions on the left
    • green + added
    • red x deleted
    • blue circular arrows changed
    • black/grey shared icon
    • black/grey renamed icon
    • black/grey moved icon
  • don’t show own username or avatars, only say »You« (missing in the mockup)
  • multiple files not in a list, but in text: »Photo, Document, 9 more …«
    • hover over »9 more…« shows a tipsy tooltip with the other files
  • show only filename, full path only on hover in a tipsy tooltip
  • group by actions and dates (this is done already I believe?)

That’s basically it. What do you think?

Open bugs:

  • .txt previews are generated with a white background, which is now displayed on white background instead of gray background as before see
  • it's too hard to guess which date belongs to which activity when your screen is a bit bigger see
  • when you share something with someone (or receive a share), the avatar should be shown left next to the name of that person. (Do not show the avatar of the current user!) see
  • what is that »$2a$08$ebx4UI…«? see
  • big previews only for images for now, the others don’t work too well
  • layout is borked on long lines (I’ll fix that) see

Fixes #1676

@jancborchardt jancborchardt added this to the ownCloud 7 milestone Apr 23, 2014
@jancborchardt
Copy link
Contributor Author

@nickvergessen can you take over?

The activitysubject needs to be modified according to the tasks above. Probably split into action (change, add, rename, share, delete …), person who did the action (mostly yourself), recipient (for shares), and filename.
I also added the icons, which can simply be used by assigning the class like »icon-change-color« or »icon-shared«.

@MorrisJobke
Copy link
Contributor

Try to merge this until 12th May http://mailman.owncloud.org/pipermail/devel/2014-May/000188.html

@jancborchardt
Copy link
Contributor Author

@nickvergessen you said you already had some of the improvements locally? Can you push them here?

@nickvergessen
Copy link
Contributor

@jancborchardt the local work is based on #1685 will do, as soon as it got merged

@jancborchardt
Copy link
Contributor Author

@nickvergessen #1685 is merged now, can we move on with the design?

@nickvergessen
Copy link
Contributor

Rebased and updated:
Grouped activities show the icon at the bottom of the list:

grouped-activities-icon-bottom

.txt previews are generated with a white background, which is now displayed on white background instead of gray background as before:

txt-preview-no-background

it's too hard to guess which date belongs to which activity when your screen is a bit bigger:

date-action-link

@nickvergessen
Copy link
Contributor

  • Sharing a folder has no icon:

missing-icon-for-shared

@jancborchardt
Copy link
Contributor Author

Grouped activities show the icon at the bottom of the list:

Fixed that one.

.txt previews are generated with a white background, which is now displayed on white background instead of gray background as before:

I’d say that’s only a test-case issue for now as it only happens when you create »test« files with almost nothing in it. Normally I would add a slight border around it, but that would make filetype icons look silly. Let’s leave it.

it's too hard to guess which date belongs to which activity when your screen is a bit bigger

Yeah, true. Then again, the date isn’t that important so it shouldn’t be too prominent. Will look into that later.

@jancborchardt
Copy link
Contributor Author

  • the file names / folder names should be bold for easier readability
  • grouped file actions should be displayed in a row, not in a list (and not repeat the action) so instead of the »You created x, you created y, you created z …«, it should say: »You created x, y, z and 3 more …« in one line
  • when you share something with someone (or receive a share), the avatar should be shown left next to the name of that person. (Do not show the avatar of the current user!)
  • if I scroll down further, there’s no text on the activities

…to activity-design

# By Jan-Christoph Borchardt
# Via Jan-Christoph Borchardt
* 'activity-design' of https://github.com/owncloud/apps:
  align icons to top in activity groups
  change colored change icon to black/grey for less distraction
@nickvergessen
Copy link
Contributor

grouped file actions should be displayed in a row, not in a list (and not repeat the action) so instead of the »You created x, you created y, you created z …«, it should say: »You created x, y, z and 3 more …« in one line

Moved to new issue owncloud/activity#2

@nickvergessen
Copy link
Contributor

if I scroll down further, there’s no text on the activities

Works for me

@jancborchardt
Copy link
Contributor Author

Some more issues:
activity-issues

  • oftentimes the first letter of the file/folder name is not shown
  • what is that »$2a$08$ebx4UI…«?
  • older events which were lazily loaded miss the »You added file« text entirely
  • layout is borked on long lines (I’ll fix that)

$prepared_params[] = $param;

if ($highlight_params) {
$prepared_params[] = '{{beginparamhighlight}}' . $param . '{{endparamhighlight}}';
Copy link
Contributor

Choose a reason for hiding this comment

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

@LukasReschke Is this okay?
The problem is we want to print <strong> but no other html
I see no otherway then combining it with https://github.com/owncloud/apps/pull/1769/files#diff-dffaf6a7a40b2f1ec0be834c5bf5574bR19

                <?php print_unescaped(str_replace(
                    array('{{beginparamhighlight}}', '{{endparamhighlight}}'),
                    array('<strong>', '</strong>'),
                    OC_Util::sanitizeHTML(\OCA\Activity\Data::translation($_['event']['app'], $_['event']['subject'], $_['event']['subjectparams'], true, true))
                )) ?>

Or is there a way to tell sanitizeHTML() that <strong> is okay?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Can't you handle the string tag in the template?
Is <strong> the right thing to do these days? I'd expect classes to be added to tags

Copy link
Contributor

Choose a reason for hiding this comment

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

whether <strong> or something else does not really matter.
The problem is, we need a tag an only want to allow this one tag. but still sanitize the rest of the string. Is it okay to do it like this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can't you handle the string tag in the template?

What about this ⬆️

Copy link
Contributor

Choose a reason for hiding this comment

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

@DeepDiver1975 okay I think I fixed it better now:
404edc0

This however means that an translator could XSS by adding html to his/her translation

Copy link
Contributor

Choose a reason for hiding this comment

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

This however means that an translator could XSS by adding html to his/her translation

They still can do this a lot of other places in the code ;-)

Copy link
Contributor

Choose a reason for hiding this comment

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

indeed - we currently assume translators to be nice with us 😉

@nickvergessen
Copy link
Contributor

oftentimes the first letter of the file/folder name is not shown

This was due to a bug-fix in owncloud activities that have been created between the bug-fix and the fix in activity apps are broken forever, but this is master-only.

what is that »$2a$08$ebx4UI…«?

Looks like a key, did you share it via link with password or something?

older events which were lazily loaded miss the »You added file« text entirely

is related to the same issue as 1.

@jancborchardt
Copy link
Contributor Author

Folders (when shared) get a »blank page« filetype icon as preview instead of a folder

@jancborchardt
Copy link
Contributor Author

@nickvergessen I would say we should fix the preview stuff (with the folders) and then merge this. Everything else is for follow-up pull requests.

cc @owncloud/designers for review.

@@ -131,16 +129,20 @@ public static function send($app, $subject, $subjectparams = array(), $message =
return true;
}

public static function prepare_files_params($app, $text, $params, $file_position = false)
{
public static function prepare_files_params($app, $text, $params, $file_position = false, $strip_path = false, $highlight_params) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Bääh - we use camel case! Please follow your coding guide lines!

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, will fix in a new PR

Copy link
Contributor

Choose a reason for hiding this comment

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

k

Copy link
Contributor

Choose a reason for hiding this comment

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

Created an issue: owncloud/activity#4

@nickvergessen nickvergessen changed the title [WIP] Activity app design Activity app design May 14, 2014
@nickvergessen
Copy link
Contributor

👍 since the workaround has been approved by DeepDiver

jancborchardt added a commit that referenced this pull request May 14, 2014
@jancborchardt jancborchardt merged commit 8a45820 into master May 14, 2014
@jancborchardt jancborchardt deleted the activity-design branch May 14, 2014 14:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI: Long filenames cause filename to break across rows
5 participants