-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Migrate project activity to LFNext #1416
Conversation
Just built this branch locally and ran it, and it didn't find activity from 5 months ago on one of my test projects. Here's what happens when I clicked the "Activity Feed" button on one entry from my test-rmunn-05 project: Note the date: January 3, 2022, quite a bit more than 30 days ago. If I understand the "When viewing a project with activity, ensure clicking "show all" retrieves all activity" bullet point correctly, that should have produced a "See all" button, but it wasn't visible: (I trimmed that screenshot horizontally so as to fit into the GitHub comments UI, but there were no buttons other than the "Work on this project" button). @longrunningprocess, I'll send you the raw Mongo data for this project if you want to use it for testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't yet looked closely at the Svelte / Svelte-Kit stuff — that's next — but I have some comments on the rest of the code. For the Svelte-Kit stuff, I plan to look at the code in context inside VS Code rather than reading only the changes in the GitHub review UI, as I think I'll understand it better that way and therefore be able to review this more fully. But there's no reason to make you wait for my initial reactions.
yes, that is a great find, I did not think that condition through properly. I'll put in a fix for it. |
d603923
to
7ee91b5
Compare
After starting in on the review, I pretty quickly realized I wasn't going to be able to contribute much on the code side. But in testing, I have a couple comments about the UI (since that's what I'm good at), and you can feel free to disregard them or split them out as out-of-scope:
|
ef8e1e8
to
5732a80
Compare
Excellent, thank you!
via the breadcrumbs (the project name link in "My Projects / / Edit" will take you to the project "landing" page which includes the activity...the hope is that page will evolve to include dashboard type info about the project)... it occurs to me as I'm writing this that maybe you tested this in staging already where the old code is still running... the code in this branch won't be in staging until the PR is approved. I initially thought maybe you were testing this locally).
The default activity is for the last 30 days... there is no intelligence to this for now, e.g., give me the last 30 days but no more than 20 rows of activity. That would be nice if it's an issue for projects, I'm not sure what to expect from users yet since I'm not aware of this activity even being used very much today. UPDATE @josephmyers 30 days/max 50 rows implemented in 23118a0
Possibly at a future date. I think I'm inclined to get the first pass of this page in front of users to start getting some of their feedback before we begin building links away. Right now the basic use case is to start on the project landing page -> begin working on it. I'd like to keep talking about other use cases though, thanks for thinking about that.
I find the interactivity of that link a little strange as it is in the legacy app, i.e., when I click it I would expect to go to the home page but it actually puts me in the editor... 🤷🏻 I'd like to talk about it more though. The simpler approach to me is just to leave it as informative/orienting rather than functional. Functional things, like linking away, are currently found in the right-hand menu.
I hear that, let's discuss the design system around those more. I'm going with the defaults at this point but things like that can be changed at an app-wide level: https://daisyui.com/components/link and/or https://daisyui.com/components/button |
Was able to get back to testing this again, and here are a few other issues that I found:
Thanks for all your work so far, and sorry that I took nearly three weeks to look at this again! |
@longrunningprocess See #1430 for a few fixes for some TypeScript errors. There were just enough changes that I didn't really want to put this as a code suggestion in GitHub as that would have involved a bunch of files. I created it as a PR onto your branch, rather than just pushing a commit onto your branch, since I know you rebase often and I didn't want to mess up your rebase workflow by having a commit of mine on your branch that you weren't expecting. |
thank you, I corrected these in 62f498c. My plan was to simply update those as they appear since I can't really tell which of them in |
I'd like to discuss this more. I'm actually doing the sorting client side (https://github.com/sillsdev/web-languageforge/blob/next/project-activity/next-app/src/routes/projects/%5Bproject_code%5D/_components/Activity.svelte#L29) and I thought using epoch was a safe approach, maybe not... I thought I looked into the multi-level sort in mongo and didn't go with it for some reason I can't remember at this point. |
Figured it out during our standup meeting: it's sorting by the locale date string, meaning that the string "6/27/2020" was sorting as "larger" than the string "3/1/2022" because 6 > 3. I agree with the idea of sorting by date first, then user, then time, but we should make sure the date being sorted on is a Javascript date and not a locale-formatted date string. (Unless the locale is YYYY-MM-DD, which would have sorted correctly :-) ). |
Per our discussion standup, some meta project information that we can add to the project dashboard are:
|
I believe I've addressed this in 1f34a60...04d9b23, please let me know what you think @rmunn . |
a7730a1
to
7599607
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an incomplete code-review. I've read through about half of it and made some comments. I've run out of time after the kids are in bed...so will pick this up again tomorrow. Great job so far @longrunningprocess !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have finished going through the code...Now I just need to run it up on my machine :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to actually approve this after we talked in July. From the UI side of things, this is good to go
2d3b4dc
to
ace5034
Compare
1acd598
to
4804863
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go @longrunningprocess !
We should check on package-lock.json after this merges to see if we need to re-create it. I don't have full confidence in git merge to just assume it will be fine.
I've merged it and all tests seem to be good, maybe once we test it a bit in staging we can have confidence in git's merge? |
Description
This PR seeks to migrate the project activity capability to LFNext. While at it, discussion arose about a "Project landing page". That is also included in this work. Refer to #1394 for further discussion
Fixes #1393
Type of Change
Only keep lines below that describe this change, then delete the rest.
Screenshots
This video runs through the look of it, mobile views and all of the links back into this page.
Screen.Recording.2022-06-02.at.3.17.04.PM.mov
forgot to include some of the h-scroll behavior of the activity table on mobile, that demo is here:
Screen.Recording.2022-06-02.at.3.37.44.PM.mov
Testing on your branch
/app/projects
) takes you to the correct project landing pageChecklist
qa.languageforge.org testing
Reviewers: add/replace your name below and check the box to sign-off/attest the feature works as expected on qa.languageforge.org