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 ability to invite users #171

Draft
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

Slartibartfass2
Copy link
Contributor

@Slartibartfass2 Slartibartfass2 commented Jan 20, 2025

Closes #16
C loses #19 (potentially)
C loses #24 (potentially)

What I have made

Checklist

Either tick or cross out the items that do not apply (using ~~example text~~) and give a reason why the item does not apply.

  • I have updated the documentation accordingly and commented my code
  • I have added tests that prove my fix is effective or that my feature works
    • unit tests
    • integration tests
    • end-to-end tests
  • (for reviewer) I have checked the implementation against the requirements

@Slartibartfass2 Slartibartfass2 self-assigned this Jan 20, 2025
@Slartibartfass2 Slartibartfass2 linked an issue Jan 20, 2025 that may be closed by this pull request
Copy link

github-actions bot commented Jan 20, 2025

LCOV of commit 94fb056 during Code Quality Checks #519

Summary coverage rate:
  lines......: 65.7% (591 of 899 lines)
  functions..: 42.2% (35 of 83 functions)
  branches...: no data found

Files changed coverage rate:
                                                                                                  |Lines       |Functions  |Branches    
  Filename                                                                                        |Rate     Num|Rate    Num|Rate     Num
  ======================================================================================================================================
  src/lib/components/composites/PaperBookmarkButton.svelte                                        |10.3%     29| 0.0%     1|    -      0
  src/lib/components/composites/input/AbstractToggleableInput.svelte                              |33.3%      3|    -     0|    -      0
  src/lib/components/composites/input/ToggleableInput.svelte                                      |11.1%      9|    -     0|    -      0
  src/lib/components/composites/input/abstract-max-height-action.ts                               |16.7%     30| 0.0%     5|    -      0
  src/lib/components/composites/navigation-bar/PaperNavigationBar.svelte                          | 100%      1|    -     0|    -      0
  src/lib/components/composites/navigation-bar/ProjectNavigationBar.svelte                        | 6.2%     16|    -     0|    -      0
  src/lib/components/composites/navigation-bar/SimpleNavigationBar.svelte                         |16.7%      6|    -     0|    -      0
  src/lib/components/composites/paper-components/PaperInfo.svelte                                 |14.3%      7|    -     0|    -      0
  src/lib/components/composites/paper-components/PaperListEntry.svelte                            | 6.7%     30| 0.0%     1|    -      0
  src/lib/components/composites/paper-components/paper-view/PaperDetail.svelte                    |25.0%      4|    -     0|    -      0
  src/lib/components/composites/paper-components/paper-view/PaperView.svelte                      |11.1%      9|    -     0|    -      0
  src/lib/components/composites/paper-components/paper-view/cards/PaperCard.svelte                |20.0%      5|    -     0|    -      0
  src/lib/components/composites/paper-components/paper-view/cards/PaperCardContent.svelte         | 100%      1|    -     0|    -      0
  src/lib/components/composites/paper-components/paper-view/cards/PaperDetailsCard.svelte         | 8.0%     50| 0.0%     3|    -      0
  src/lib/components/composites/paper-components/paper-view/decision-buttons/AcceptButton.svelte  |25.0%      4|    -     0|    -      0
  src/lib/components/composites/paper-components/paper-view/decision-buttons/DecisionButton.svelte|18.2%     11| 0.0%     1|    -      0
  src/lib/components/composites/paper-components/paper-view/decision-buttons/DeclineButton.svelte |25.0%      4|    -     0|    -      0
  src/lib/components/composites/paper-components/paper-view/decision-buttons/MaybeButton.svelte   |25.0%      4|    -     0|    -      0
  src/lib/components/composites/project-components/settings/ProjectMemberListEntry.svelte         |    -      0|    -     0|    -      0
  src/lib/components/composites/project-components/settings/ProjectMemberListEntrySkeleton.svelte |    -      0|    -     0|    -      0
  src/lib/components/composites/project-components/settings/ProjectSettingsLayout.svelte          |    -      0|    -     0|    -      0
  src/lib/components/composites/tabs/UnderlineTabsList.svelte                                     |25.0%      4|    -     0|    -      0
  src/lib/controller/paper-controller.ts                                                          |    -      0|    -     0|    -      0
  src/lib/controller/project-controller.ts                                                        |    -      0|    -     0|    -      0
  src/lib/utils/common-helper.ts                                                                  |26.7%     15| 0.0%     4|    -      0

Slartibartfass2 and others added 5 commits January 21, 2025 09:57
Due to not finding any other solution I decided to write an action that automatically calculates the max height according to the screen height and the position of the text area.
This is updated whenever the screen size changes.
@Slartibartfass2 Slartibartfass2 force-pushed the feat/16-use-case-invite-users branch from fee36d2 to 51eef54 Compare January 21, 2025 17:10
This is a component that displays information about a project member an offers actions to change their role or to remove them from the project
In version 2.46.1, which we previously used, eslint couldn't handle svelte each blocks without 'as'.
We use on of these blocks on the project members settings page (src/routes/project/[projectId]/settings/members/+page.svelte):
```svelte
{#each { length: numberOfSkeletons }, i}
    <ProjectMemberListEntrySkeleton />
    {#if i < numberOfSkeletons - 1}
        <Separator />
    {/if}
{/each}
```
This was reported in sveltejs/eslint-plugin-svelte#953 and fixed in version 3.0.0-next.5.
Now eslint works again with our codebase.
@Slartibartfass2 Slartibartfass2 force-pushed the feat/16-use-case-invite-users branch from 51eef54 to 94fb056 Compare January 22, 2025 09:22
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.

[Use Case]: Invite Users
1 participant