Skip to content
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

Archive projects #236

Merged
merged 11 commits into from
Dec 3, 2023
Merged

Archive projects #236

merged 11 commits into from
Dec 3, 2023

Conversation

j0hannesr0th
Copy link
Collaborator

Hi @julien-nc, I've implemented the functionality for archiving projects and unarchiving them.

You can view the functionality here:

2023-12-01_232014.mp4

To identify which project is archived I've used DateTime. I want to show when the project was archived soon.

In the near future, I plan to add:

  • preventing editing of archived projects
  • searchbar for archived projects (title)

Fixes: #128

@j0hannesr0th
Copy link
Collaborator Author

@julien-nc did some more cosmetic stuff... now you can test it.

Copy link
Owner

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Super nice! Thanks a lot for the PR. 💙
Sorry I have a lot of change requests. I made suggestions for most of them.
Mainly:

  • I think we should use a timestamp to store the archived date
  • The mixin does not work, let's go with an event to trigger a call to the deselectProject method in App

lib/Controller/PageController.php Outdated Show resolved Hide resolved
lib/Db/Project.php Outdated Show resolved Hide resolved
lib/Controller/PageController.php Outdated Show resolved Hide resolved
lib/Db/Project.php Outdated Show resolved Hide resolved
lib/Db/Project.php Outdated Show resolved Hide resolved
src/components/CospendNavigation.vue Outdated Show resolved Hide resolved
src/components/CospendNavigation.vue Outdated Show resolved Hide resolved
src/components/CospendNavigation.vue Outdated Show resolved Hide resolved
src/components/CospendNavigation.vue Outdated Show resolved Hide resolved
src/network.js Outdated Show resolved Hide resolved
@j0hannesr0th
Copy link
Collaborator Author

j0hannesr0th commented Dec 3, 2023

Super nice! Thanks a lot for the PR. 💙 Sorry I have a lot of change requests. I made suggestions for most of them. Mainly:

  • I think we should use a timestamp to store the archived date

Ok

  • The mixin does not work, let's go with an event to trigger a call to the deselectProject method in App

Ah, some comments where hidden...

Do I need to do something? 😅

@julien-nc
Copy link
Owner

Do I need to do something?

What do you mean? 😁

@j0hannesr0th
Copy link
Collaborator Author

Do I need to do something?

What do you mean? 😁

I'm not sure what I have to do now ^^ I accepted all your changes and commited them. Is there something left to do for me?

Copy link
Owner

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

Is there something left to do for me?

Yes:

  • fix lib/Db/Project.php (see suggestion)
  • If you're fine with my opinion on the mixin: get rid of it, bring back the deselectProject method in App, subscribe to the event and call the deselectProject method.

I can also push some commits in your branch, as you wish.

lib/Db/Project.php Outdated Show resolved Hide resolved
@j0hannesr0th
Copy link
Collaborator Author

j0hannesr0th commented Dec 3, 2023

I can also push some commits in your branch, as you wish.

Then you should probably finish it. Next time I'll ask/discuss beforehand how to resolve the problem (like using timestamp instead of datetime) to not play ping pong.

@julien-nc
Copy link
Owner

Alright, thanks for being open to my suggestions.

Copy link
Owner

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

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

🎉

@julien-nc julien-nc merged commit 456ea21 into main Dec 3, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to Archive Projects
2 participants