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

Added navigation bar component #74

Conversation

Slartibartfass2
Copy link
Contributor

Closes #73

@Slartibartfass2 Slartibartfass2 self-assigned this Nov 12, 2024
@Slartibartfass2 Slartibartfass2 linked an issue Nov 12, 2024 that may be closed by this pull request
@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch from caf4ce1 to 7903464 Compare November 14, 2024 14:02
@Slartibartfass2 Slartibartfass2 marked this pull request as ready for review November 14, 2024 14:35
@Slartibartfass2 Slartibartfass2 marked this pull request as draft November 14, 2024 14:35
@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch 2 times, most recently from 5fc7159 to 1b950dc Compare November 14, 2024 23:15
Copy link

github-actions bot commented Nov 14, 2024

LCOV of commit 4420f83 during Code Quality Checks #169

Summary coverage rate:
  lines......: 44.3% (222 of 501 lines)
  functions..: 9.1% (6 of 66 functions)
  branches...: no data found

Files changed coverage rate:
                                                                                |Lines       |Functions  |Branches    
  Filename                                                                      |Rate     Num|Rate    Num|Rate     Num
  ====================================================================================================================
  src/lib/components/composites/navigation-bar/NavigationBar.svelte             | 100%     11| 0.0%     1|    -      0
  src/lib/components/composites/navigation-bar/PaperNavigationBar.svelte        | 100%      1| 0.0%     1|    -      0
  src/lib/components/composites/navigation-bar/ProjectNavigationBar.svelte      | 100%     16| 0.0%     1|    -      0
  src/lib/components/composites/navigation-bar/SimpleNavigationBar.svelte       | 100%      2| 0.0%     1|    -      0
  src/lib/components/composites/navigation-bar/UserMenu.svelte                  | 100%     28|50.0%     2|    -      0
  src/lib/components/composites/paper-components/PaperInfo.svelte               | 100%      6| 0.0%     1|    -      0
  src/lib/components/primitives/avatar/avatar-fallback.svelte                   | 100%      5| 0.0%     1|    -      0
  src/lib/components/primitives/avatar/avatar-image.svelte                      | 100%      5| 0.0%     1|    -      0
  src/lib/components/primitives/avatar/avatar.svelte                            | 100%      5| 0.0%     1|    -      0
  src/lib/components/primitives/avatar/index.ts                                 | 100%      1| 0.0%     1|    -      0
  src/lib/components/primitives/card/card-content.svelte                        | 100%      4| 0.0%     1|    -      0
  src/lib/components/primitives/card/card-description.svelte                    | 100%      4| 0.0%     1|    -      0
  src/lib/components/primitives/card/card-footer.svelte                         | 100%      4| 0.0%     1|    -      0
  src/lib/components/primitives/card/card-header.svelte                         | 100%      4| 0.0%     1|    -      0
  src/lib/components/primitives/card/card-title.svelte                          | 100%      8| 0.0%     1|    -      0
  src/lib/components/primitives/card/card.svelte                                | 100%      6| 0.0%     1|    -      0
  src/lib/components/primitives/card/index.ts                                   | 100%      1| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-checkbox-item.svelte| 100%     11| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-content.svelte      | 100%      7| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-group-heading.svelte| 100%      5| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-item.svelte         | 100%      7| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-label.svelte        | 100%      6| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-radio-item.svelte   | 100%      9| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-separator.svelte    | 100%      5| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-shortcut.svelte     | 100%      6| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-sub-content.svelte  | 100%      6| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/dropdown-menu-sub-trigger.svelte  | 100%      7| 0.0%     1|    -      0
  src/lib/components/primitives/dropdown-menu/index.ts                          | 100%      6| 0.0%     1|    -      0
  src/lib/components/primitives/tabs/index.ts                                   | 100%      2| 0.0%     1|    -      0
  src/lib/components/primitives/tabs/tabs-content.svelte                        | 100%      6| 0.0%     1|    -      0
  src/lib/components/primitives/tabs/tabs-list.svelte                           | 100%      6| 0.0%     1|    -      0
  src/lib/components/primitives/tabs/tabs-trigger.svelte                        | 100%      6| 0.0%     1|    -      0
  src/routes/+layout.svelte                                                     | 0.0%      1| 0.0%     1|    -      0
  src/routes/+page.svelte                                                       | 0.0%      4| 0.0%     1|    -      0
  src/routes/archivedprojects/+page.svelte                                      | 0.0%      4| 0.0%     1|    -      0
  src/routes/invitations/+page.svelte                                           | 0.0%      4| 0.0%     1|    -      0
  src/routes/paper/[paperId]/+page.svelte                                       | 0.0%     19| 0.0%     1|    -      0
  src/routes/paper/[paperId]/+page.ts                                           | 0.0%      9| 100%     1|    -      0
  src/routes/project/[projectId]/+layout.ts                                     | 0.0%      9| 100%     1|    -      0
  src/routes/project/[projectId]/dashboard/+page.svelte                         | 0.0%      8| 0.0%     1|    -      0
  src/routes/project/[projectId]/paper/[paperId]/+page.svelte                   | 0.0%     20| 0.0%     1|    -      0
  src/routes/project/[projectId]/paper/[paperId]/+page.ts                       | 0.0%     14| 100%     1|    -      0
  src/routes/project/[projectId]/paper/new/+page.svelte                         | 0.0%     10| 0.0%     1|    -      0
  src/routes/project/[projectId]/papers/+page.svelte                            | 0.0%      8| 0.0%     1|    -      0
  src/routes/project/[projectId]/settings/+layout.svelte                        | 0.0%      8| 0.0%     1|    -      0
  src/routes/project/[projectId]/settings/general/+page.svelte                  | 0.0%      2| 0.0%     1|    -      0
  src/routes/project/[projectId]/settings/members/+page.svelte                  | 0.0%      2| 0.0%     1|    -      0
  src/routes/project/[projectId]/settings/review/+page.svelte                   | 0.0%      2| 0.0%     1|    -      0
  src/routes/project/[projectId]/settings/slr/+page.svelte                      | 0.0%      2| 0.0%     1|    -      0
  src/routes/project/[projectId]/statistics/+page.svelte                        | 0.0%      8| 0.0%     1|    -      0
  src/routes/readinglist/+page.svelte                                           | 0.0%      4| 0.0%     1|    -      0
  src/routes/settings/+layout.svelte                                            | 0.0%      4| 0.0%     1|    -      0

@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch 3 times, most recently from 7f6b45e to 3795730 Compare November 15, 2024 23:30
@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch 2 times, most recently from 5bfb2b0 to fd5587b Compare November 17, 2024 01:13
@Slartibartfass2 Slartibartfass2 marked this pull request as ready for review November 17, 2024 01:14
@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch from fd5587b to 48e69e0 Compare November 18, 2024 08:39
@luca-schlecker
Copy link
Contributor

The floating bar seems a little large to me. What are your thoughts on this?

image

@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch from 48e69e0 to 9bc1c82 Compare November 18, 2024 14:45
Copy link
Contributor

@Merseleo Merseleo left a comment

Choose a reason for hiding this comment

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

It seems a lot of feedback, but it was also a lot of code, so all in all very good (especially structured ...) and only some suggestions to improve the design.

One thing I noticed in general: I think the semantics of the back button are not correct. I am always redirected to the homepage or project overview and not back to the last page.

Furthermore, I think it would be nice to have some short comments at the beginning of each component, which describes what it is and where it is used.

src/routes/paper/[paperId]/+page.ts Show resolved Hide resolved
src/routes/paper/[paperId]/+page.ts Show resolved Hide resolved
src/routes/project/[projectId]/paper/[paperId]/+page.ts Outdated Show resolved Hide resolved
src/lib/components/primitives/tabs/tabs-list.svelte Outdated Show resolved Hide resolved
src/lib/components/primitives/tabs/tabs-trigger.svelte Outdated Show resolved Hide resolved
@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch from 9bc1c82 to 3fe71af Compare November 18, 2024 21:45
@Slartibartfass2
Copy link
Contributor Author

It seems a lot of feedback, but it was also a lot of code, so all in all very good (especially structured ...) and only some suggestions to improve the design.

One thing I noticed in general: I think the semantics of the back button are not correct. I am always redirected to the homepage or project overview and not back to the last page.

Furthermore, I think it would be nice to have some short comments at the beginning of each component, which describes what it is and where it is used.

Thank you, for taking the time to review this PR!

Let's discuss the navigation again, there are some open questions that have to be answered.

@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch from bb1b087 to abd9e31 Compare November 19, 2024 09:03
Copy link
Contributor

@Merseleo Merseleo left a comment

Choose a reason for hiding this comment

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

There are only a few small things left, but I'd like to hear your opinion again, otherwise I think we're done.
One last question regarding the back navigation: do you create an issue for this problem or should I or would you like to solve it in this PR?

src/app.d.ts Outdated Show resolved Hide resolved
src/app.d.ts Outdated Show resolved Hide resolved
src/routes/paper/[paperId]/+page.ts Show resolved Hide resolved
src/routes/paper/[paperId]/+page.ts Show resolved Hide resolved
src/lib/components/primitives/tabs/tabs-trigger.svelte Outdated Show resolved Hide resolved
Copy link
Contributor Author

@Slartibartfass2 Slartibartfass2 left a comment

Choose a reason for hiding this comment

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

Thanks for your review again!

I'd like to this discuss the back button behavior in person.

src/app.d.ts Outdated Show resolved Hide resolved
src/app.d.ts Outdated Show resolved Hide resolved
src/lib/components/primitives/tabs/tabs-trigger.svelte Outdated Show resolved Hide resolved
@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch from abd9e31 to 1a09784 Compare November 19, 2024 11:00
@Slartibartfass2 Slartibartfass2 force-pushed the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch from 1a09784 to 4420f83 Compare November 19, 2024 11:57
Copy link
Contributor

@Merseleo Merseleo left a comment

Choose a reason for hiding this comment

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

I think we are finally done with it ...

@Slartibartfass2 Slartibartfass2 merged commit 3b80a1c into develop Nov 19, 2024
7 checks passed
@Slartibartfass2 Slartibartfass2 deleted the feat/73-feature-add-tool-dockfloating-navigation-bar-component branch November 19, 2024 12:00
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.

[Feature]: Add Tool Dock/Floating Navigation Bar component
3 participants