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

Project pinning and browser #436

Merged
merged 28 commits into from
Mar 7, 2024
Merged

Conversation

allanlasser
Copy link
Member

@allanlasser allanlasser commented Feb 7, 2024

This updates the application sidebar to present a list of pinned projects, with a button to "Browse" all projects. When the users chooses to "Browse," it opens a drawer with a searchable list of all their projects, as well as all projects shared with them. From this list, projects can be selected to update the search query in the main list view—they can also be pinned to the sidebar for easy access.

This code also supports, in a commented-out state, the ability to browse and pin all public projects. Since the assumption among users is that their projects are currently unviewable, we omit the ability to view public projects until we've given users a chance to make them private.

To support this, a privacy indicator is displayed on all projects in the browser. It also adds a "Private" checkbox to the project creation/editing dialog.

Screenshot 2024-02-20 at 3 34 16 PM Screenshot 2024-02-21 at 10 59 53 AM

@allanlasser allanlasser changed the title Pinned projects Project pinning and browser Feb 7, 2024
Copy link

netlify bot commented Feb 7, 2024

Deploy Preview for documentcloud-frontend ready!

Name Link
🔨 Latest commit f1f87e1
🔍 Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/65e9017b7255d70008649655
😎 Deploy Preview https://deploy-preview-436.muckcloud.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Feb 7, 2024

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements
2.81% (-0.08% 🔻)
1978/70452
🔴 Branches
3.05% (-0.08% 🔻)
925/30316
🔴 Functions
3.22% (-0.1% 🔻)
503/15604
🔴 Lines
2.85% (-0.08% 🔻)
1796/62976
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / EditButton.svelte
0% 0% 0% 0%
🔴
... / Filter.svelte
0% 0% 0% 0%
🔴 common/Flex.svelte 0% 0% 0% 0%
🔴
... / Filters.svelte
0% 0% 0% 0%
🔴
... / Browser.svelte
0% 0% 0% 0%
🔴
... / ProjectList.svelte
0% 0% 0% 0%
🔴
... / ProjectPin.svelte
0% 0% 0% 0%
🔴
... / ProjectListItem.svelte
0% 0% 0% 0%
🔴
... / orgAndUser.fixtures.ts
0% 100% 100% 0%
🔴
... / projects.fixtures.ts
0% 100% 100% 0%
🔴
... / ProjectDialogContainer.svelte
0% 0% 0% 0%
🔴
... / Filter.stories.svelte
0% 0% 0% 0%
🔴
... / Browser.stories.svelte
0% 0% 0% 0%
🔴
... / ProjectList.stories.svelte
0% 0% 0% 0%
🔴
... / ProjectListItem.stories.svelte
0% 0% 0% 0%
🔴
... / mockData.ts
0% 100% 0% 0%
🔴
... / ProjectDialog.stories.svelte
0% 0% 0% 0%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴 manager/layout.js
27.97% (-0.48% 🔻)
7.41%
33.82% (-1.02% 🔻)
28.71% (-0.58% 🔻)

Test suite run success

84 tests passing in 16 suites.

Report generated by 🧪jest coverage report action from f1f87e1

src/projects/Browser.svelte Outdated Show resolved Hide resolved
src/projects/Browser.svelte Outdated Show resolved Hide resolved
@allanlasser allanlasser linked an issue Feb 13, 2024 that may be closed by this pull request
@allanlasser allanlasser force-pushed the feature/pinned-projects branch 2 times, most recently from 1cf3a80 to a9558df Compare February 14, 2024 15:54
@mitchelljkotler
Copy link
Member

The backend now has project pinning support on staging

@mitchelljkotler
Copy link
Member

Embed/share codes are currently broken

@allanlasser
Copy link
Member Author

Embed/share codes are currently broken

@mitchelljkotler From what I can tell, this is a config issue on all of our staged deploys. It looks like the APP_URL env var is missing a trailing /, producing an embed request URL such as https://muckcloud.comprojects/test-123-/.

@eyeseast I don't have access to the Netlify team, could you confirm this is the case?

@allanlasser allanlasser force-pushed the feature/pinned-projects branch 4 times, most recently from 4a498a4 to e17149d Compare February 20, 2024 20:27
@allanlasser allanlasser marked this pull request as ready for review February 20, 2024 20:32
@mitchelljkotler mitchelljkotler merged commit f1f87e1 into master Mar 7, 2024
12 of 13 checks passed
@allanlasser allanlasser deleted the feature/pinned-projects branch April 24, 2024 23:50
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.

Allow Pinning of Project
3 participants