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

fix: no banner to restore or delete permanently appears #3646

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Azanul
Copy link

@Azanul Azanul commented Oct 8, 2023

Appflowy-3471.mov

Feature Preview

Fixes #3471

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

@CLAassistant
Copy link

CLAassistant commented Oct 8, 2023

CLA assistant check
All committers have signed the CLA.

@Azanul Azanul changed the title feat: fix: no banner to restore or delete permanently appears Oct 8, 2023
@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Attention: 80 lines in your changes are missing coverage. Please review.

Comparison is base (890f52a) 69.61% compared to head (5882041) 11.14%.
Report is 138 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3646       +/-   ##
===========================================
- Coverage   69.61%   11.14%   -58.48%     
===========================================
  Files         502      600       +98     
  Lines       23253    27715     +4462     
===========================================
- Hits        16187     3088    -13099     
- Misses       7066    24627    +17561     
Flag Coverage Δ
appflowy_flutter_integrateion_test ?
appflowy_flutter_unit_test 11.14% <0.00%> (-1.54%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...wy_flutter/lib/plugins/document/document_page.dart 0.00% <0.00%> (-76.20%) ⬇️
...lugins/database_view/application/tar_bar_bloc.dart 0.00% <0.00%> (-95.13%) ⬇️
frontend/appflowy_flutter/lib/plugins/banner.dart 0.00% <0.00%> (ø)
...ib/plugins/database_view/tar_bar/tab_bar_view.dart 0.00% <0.00%> (-92.86%) ⬇️

... and 535 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LucasXu0
Copy link
Collaborator

LucasXu0 commented Oct 11, 2023

@Azanul I have pushed the code for the 'expanded banner.' Please take a look. However, I noticed that you didn't implement the logic for permanently deleting the database view.

Screenshot 2023-10-11 at 23 09 20

@Azanul
Copy link
Author

Azanul commented Oct 11, 2023

@Azanul I have pushed the code for the 'expanded banner.' Please take a look. However, I noticed that you didn't implement the logic for permanently deleting the database view.

Thanks a lot for the assist! I had difficulty implementing these two things, I asked for help in the discord server but didn't find any

@LucasXu0
Copy link
Collaborator

@Azanul I have pushed the code for the 'expanded banner.' Please take a look. However, I noticed that you didn't implement the logic for permanently deleting the database view.

Thanks a lot for the assist! I had difficulty implementing these two things, I asked for help in the discord server but didn't find any

For the 'delete permanently' issue, you can refer to the logic used in the document page or comment on the PR if you have any questions.

@richardshiue
Copy link
Collaborator

Hey there @Azanul, thanks for contributing! I have some feedback:

  • deleting a view (not the entire database) also makes the banner show even on the remaining view. (1. create a grid 2. add a new board view on the tab bar 3. delete the board view via the tab bar 4. confirm delete view 5. see that the grid view is shown but the banner appears)
  • if it were up to me, I'd move the banner widget out of the documents directory since it is now used by the database as well

@Azanul
Copy link
Author

Azanul commented Oct 14, 2023

For the 'delete permanently' issue, you can refer to the logic used in the document page or comment on the PR if you have any questions.

@LucasXu0 I'm unable to do clean rebuild after pulling

Uploading Screenshot 2023-10-14 at 10.45.33 AM.png…

Signed-off-by: Azanul <azanulhaque@gmail.com>
Signed-off-by: Azanul <azanulhaque@gmail.com>
@Azanul Azanul marked this pull request as draft October 16, 2023 06:03
@Azanul Azanul marked this pull request as ready for review October 16, 2023 06:49
@Azanul Azanul marked this pull request as draft October 16, 2023 06:49
Signed-off-by: Azanul <azanulhaque@gmail.com>
@Azanul Azanul marked this pull request as ready for review October 16, 2023 07:58
@Azanul
Copy link
Author

Azanul commented Oct 16, 2023

I messed up trying to amend git messages which were cause the CI to fail. I've implemented the logic completely this time.
I again had difficulty expanding the banner, @LucasXu0 please do it if you don't mind.

@richardshiue
Copy link
Collaborator

I think the behavior is still weird, referring to the first point in my previous comment

@Azanul
Copy link
Author

Azanul commented Oct 27, 2023

I think the behavior is still weird, referring to the first point in my previous comment

Which would be better?

  1. No banner on deleting from tab bar
  2. Banner opens and the view stays i.e., doesn't force close

@richardshiue
Copy link
Collaborator

I think the first option is better.

Signed-off-by: Azanul <azanulhaque@gmail.com>
@Azanul
Copy link
Author

Azanul commented Nov 4, 2023

I think the first option is better.

Done

@Xazin Xazin self-requested a review February 16, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants