Skip to content

Add NewOrgModal #62

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add NewOrgModal #62

wants to merge 1 commit into from

Conversation

hojberg
Copy link
Contributor

@hojberg hojberg commented Apr 14, 2025

Add a new app modal, that allows users to create organizations. It supports suggesting handles from the name and checking if handles are taken or not. It also allows the user to pick between public (free) orgs, and commercial (paid) orgs. When picking a commercial org, the backend will create a support ticket (in addition to the org).

Dependencies

This is dependent on 2 backend changes:

  1. Supporting the isCommercial param to create a support ticket
  2. Only allowing public projects on public organizations.

@ChrisPenner I also noticed that in trying to create an org in my local setup I got a 403 that said I didn't have the correct permissions to create the org. Seems like a bug no?

Copy link

netlify bot commented Apr 14, 2025

Deploy Preview for unison-share-ui ready!

Name Link
🔨 Latest commit 6efadee
🔍 Latest deploy log https://app.netlify.com/sites/unison-share-ui/deploys/67fe9c7acb796b000803f94b
😎 Deploy Preview https://deploy-preview-62.staging.share.unison-lang.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 47 (🔴 down 21 from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (🟢 up 8 from production)
SEO: 75 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

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

@hojberg hojberg requested review from Copilot and ChrisPenner April 14, 2025 18:05
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 11 changed files in this pull request and generated no comments.

Files not reviewed (8)
  • elm-git.json: Language not supported
  • src/UnisonShare/Account.elm: Language not supported
  • src/UnisonShare/Api.elm: Language not supported
  • src/UnisonShare/App.elm: Language not supported
  • src/UnisonShare/AppHeader.elm: Language not supported
  • src/UnisonShare/Page/OrgPage.elm: Language not supported
  • src/css/unison-share.css: Language not supported
  • src/css/unison-share/new-org-modal.css: Language not supported
Comments suppressed due to low confidence (1)

webpack.dev.js:224

  • [nitpick] Replacing the 'target' property with a bypass function that always returns an empty array could disable routing for '/website'. Please verify that this behavior is intended, and if so, consider adding a comment for clarity.
bypass: (req, res, _proxyOptions) => {

@@ -221,7 +221,9 @@ module.exports = {
},
{
context: ["/website"],
target: WEBSITE_URL,
bypass: (req, res, _proxyOptions) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is kind of unrelated, but removes an annoying 500 error in dev mode that was polluting the logs.

Add a new app modal, that allows users to create organizations.
It supports suggesting handles from the name and checking if handles are
taken or not. It also allows the user to pick between public (free)
orgs, and commercial (paid) orgs. When picking a commercial org, the
backend will create a support ticket (in addition to the org).
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.

2 participants