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]: Dashboard redesign/rebuild #333

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
7d7aa92
Create draft PR for #304
create-issue-branch[bot] Oct 3, 2024
5085355
Merge branch 'main' into issue-0304
Adammatthiesen Oct 3, 2024
bc6fbd7
Merge branch 'main' into issue-0304
Adammatthiesen Oct 4, 2024
62ea182
Merge branch 'main' into issue-0304
Adammatthiesen Oct 8, 2024
84cb879
Start of dev tools (#353)
Adammatthiesen Oct 9, 2024
1d63cea
Merge branch 'main' into issue-0304
Adammatthiesen Oct 10, 2024
5afff7d
update lockfile
Adammatthiesen Oct 10, 2024
95eb9e9
Merge branch 'main' into issue-0304
Adammatthiesen Oct 14, 2024
27ac5ad
♻️ Chore: Prep docs for new version (#352)
create-issue-branch[bot] Oct 22, 2024
aeb1561
Update dependencies in pnpm-workspace.yaml (#364)
Adammatthiesen Oct 24, 2024
28685c5
Investigate deployment issue with Powerglitch (#365)
Adammatthiesen Oct 25, 2024
3159162
Refactor image handling and remove Unpic (#366)
Adammatthiesen Oct 27, 2024
e1c47be
Update getting-started.mdx
Adammatthiesen Oct 28, 2024
f0d60a7
Improve Page data table schemas (#367)
Adammatthiesen Oct 29, 2024
79032e9
Updated toast outlines for persistent toasts (#371)
louisescher Nov 3, 2024
d0e965c
Auth Overhaul (#369)
Adammatthiesen Nov 13, 2024
7c61211
Add searchable selects, improve selects accessibility (#370)
louisescher Nov 17, 2024
f3c234a
Remove css imports
TheOtterlord Nov 17, 2024
79b0990
Add theme helper, theme toggle component, docs (#377)
louisescher Nov 17, 2024
ee0666c
Add Sentry monitoring (#378)
Adammatthiesen Nov 17, 2024
5692ef3
Start of dashboard i18n logic & implement on new Auth pages (#372)
Adammatthiesen Nov 20, 2024
37b003c
Merge branch 'main' into issue-0304
Adammatthiesen Nov 24, 2024
26fa8b9
Update README.md
Adammatthiesen Nov 24, 2024
b6dee17
more progress moving urls over (#381)
Adammatthiesen Nov 24, 2024
0aae556
fix
Adammatthiesen Nov 24, 2024
f6b1736
move back to EC (#382)
Adammatthiesen Nov 25, 2024
d48ee17
Merge branch 'main' into issue-0304
Adammatthiesen Nov 25, 2024
f45758d
Various workflow updates (#385)
Adammatthiesen Nov 25, 2024
715e159
Merge branch 'main' into issue-0304
Adammatthiesen Nov 25, 2024
486a8ee
ensure pkg-pr-new only runs on package changes (#387)
Adammatthiesen Nov 26, 2024
c96e9cc
Add mergebot workflow (#388)
Adammatthiesen Nov 27, 2024
ce23b08
Update Turso sponsor link and add StudioCMS coupon code (#389)
Adammatthiesen Nov 27, 2024
17757d7
Fix typo in dashboard config reference docs (#390)
dallyh Nov 28, 2024
80482e9
Add i18n to Docs (and Lunaria) (#386)
Adammatthiesen Nov 29, 2024
c8adb01
Update pnpm-lock.yaml
Adammatthiesen Nov 29, 2024
dc89648
Fix spacing issue in PackageCatalog.astro
Adammatthiesen Nov 29, 2024
7828728
(Core i18n): Translations update from StudioCMS i18n (#391)
studiocms-no-reply Nov 29, 2024
044dab9
cleanup workflows (#392)
Adammatthiesen Nov 29, 2024
7be01f6
Update ThemeHelper.ts
louisescher Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
119 changes: 119 additions & 0 deletions .changeset/chatty-kangaroos-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
---
"@studiocms/dashboard": patch
"@studiocms/auth": patch
"@studiocms/core": patch
"@studiocms/ui": patch
"studiocms": patch
---

Auth system overhaul:

## **`studiocms`**

- Updated all Dependencies

## **`@studiocms/auth`**

- Update `astro:env` schema:
- `CMS_ENCRYPTION_KEY`: NEW - Required variable used for auth encryption, can be generated using `openssl rand --base64 16`.
- `CMS_GITHUB_REDIRECT_URI`: NEW - Optional variable for GitHub Redirect URI if using multiple redirect URIs with Github oAuth.
- Removed `Luicia` based auth system and `Lucia-astrodb-adapter`
- Removed old `authHelper`
- Add new OAuthButton components
- `<OAuthButton />`
- `<OAuthButtonStack />`
- `oAuthButtonProviders.ts`
- Add new `<AuthLayout />` component and CSS
- Add new authentication library:
- Auth library is built using the lucia-next resources and will now be maintained under `@studiocms/auth` as its own full module
- Created Virtual module exports available during runtime
- Add new login/signup backgrounds
- Remove Middleware
- Add `studiocms-logo.glb` for usage with New ThreeJS login/signup page
- Update all Auth Routes
- Update schema
- Add new Scripts for ThreeJS
- Update Stubs files and Utils
- Refactor Integration to use new system.

## **`@studiocms/core`**

- Disable interactivity for `<Avatar />` component. (Will always show a empty profile icon until we setup the new system for the front-end)
- Update table schema:
- `StudioCMSUsers`: Removed oAuth ID's from main user table

```diff
export const StudioCMSUsers = defineTable({
columns: {
id: column.text({ primaryKey: true }),
url: column.text({ optional: true }),
name: column.text(),
email: column.text({ unique: true, optional: true }),
avatar: column.text({ optional: true }),
- githubId: column.number({ unique: true, optional: true }),
- githubURL: column.text({ optional: true }),
- discordId: column.text({ unique: true, optional: true }),
- googleId: column.text({ unique: true, optional: true }),
- auth0Id: column.text({ unique: true, optional: true }),
username: column.text(),
password: column.text({ optional: true }),
updatedAt: column.date({ default: NOW, optional: true }),
createdAt: column.date({ default: NOW, optional: true }),
},
});
```

- `StudioCMSOAuthAccounts`: New table to handle all oAuth accounts and linking to Users

```ts
export const StudioCMSOAuthAccounts = defineTable({
columns: {
provider: column.text(), // github, google, discord, auth0
providerUserId: column.text({ primaryKey: true }),
userId: column.text({ references: () => StudioCMSUsers.columns.id }),
},
});
```

- `StudioCMSPermissions`: Updated to use direct reference to users table

```ts
export const StudioCMSPermissions = defineTable({
columns: {
user: column.text({ references: () => StudioCMSUsers.columns.id }),
rank: column.text(),
},
});
```

- `StudioCMSSiteConfig`: Added new options for login page

```ts
export const StudioCMSSiteConfig = defineTable({
columns: {
id: column.number({ primaryKey: true }),
title: column.text(),
description: column.text(),
defaultOgImage: column.text({ optional: true }),
siteIcon: column.text({ optional: true }),
loginPageBackground: column.text({ default: 'studiocms-curves' }),
loginPageCustomImage: column.text({ optional: true }),
},
});
```

- Updated Routemap:
- All Auth api routes are now located at `yourhost.tld/studiocms_api/auth/*`

- Updated Strings:
- Add new Encryption messages for the new `CMS_ENCRYPTION_KEY` variable

- Removed now unused auth types.

## **`@studiocms/dashboard`**

- Refactor to utilize new `@studiocms/auth` lib for user verification

## **`@studiocms/ui`**

- Update `<Input />` component's available types
5 changes: 5 additions & 0 deletions .changeset/clever-books-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@studiocms/core": patch
---

Translation Updated (PR: #391)
6 changes: 6 additions & 0 deletions .changeset/clever-yaks-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@studiocms/devapps": patch
"@studiocms/core": patch
---

Expand PageData table schema and add Catagory and Tags schemas, and extend WP-importer
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@studiocms/betaresources",
"@studiocms/core",
"@studiocms/dashboard",
"@studiocms/devapps",
"@studiocms/frontend",
"@studiocms/imagehandler",
"@studiocms/renderers",
Expand All @@ -21,5 +22,5 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["web", "docs", "node-playground", "ui-playground"]
"ignore": ["docs", "node-playground", "ui-playground"]
}
10 changes: 10 additions & 0 deletions .changeset/curvy-mirrors-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@studiocms/ui": patch
---

Applied various changes and fixes to different parts of the UI libary.

- Fixed a CSS leak caused by importing css files instead of having scoped styles
- Adjusted dropdown helper API for better DX
- Adjusted modal helper API for better DX
- Various CSS fixes for different components
5 changes: 5 additions & 0 deletions .changeset/long-cherries-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@studiocms/core": patch
---

Translation Updated (PR: #376)
5 changes: 5 additions & 0 deletions .changeset/mean-apples-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@studiocms/ui": patch
---

Added a new searchable select component and improved accessibility for normal selects
5 changes: 5 additions & 0 deletions .changeset/metal-steaks-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@studiocms/devapps": patch
---

[Feat]: Add Wordpress importer app
5 changes: 5 additions & 0 deletions .changeset/old-llamas-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@studiocms/devapps": patch
---

[Initial release]: First app, a libSQLViewer viewer for AstroDB powered by libsqlstudio!
17 changes: 17 additions & 0 deletions .changeset/perfect-hornets-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"studiocms": patch
"@studiocms/auth": patch
"@studiocms/core": patch
---

Introduce Dashboard i18n logic

- `studiocms` & `@studiocms/core`:
- Introduce new virtual module `studiocms:i18n`:
This module includes utilities for our new i18n system.
- Add new LanguageSelector component
- Add `en-us` translation file. (`packages/studiocms_core/i18n/translations/`)

- `@studiocms/auth`:
- Update login/signup routes to utilize new i18n translations
- Transition routes to Hybrid type setup, All API routes will remain server rendered, while pages are now prerendered (Server islands when needed).
3 changes: 1 addition & 2 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"@studiocms/ui": "0.1.0-beta.7",
"node-playground": "0.0.1",
"ui-playground": "0.0.1",
"docs": "0.0.1",
"web": "0.0.1"
"docs": "0.0.1"
},
"changesets": [
"breezy-rockets-lie",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/sharp-zoos-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@studiocms/ui": patch
---

Added a theme helper and theme toggle component
7 changes: 7 additions & 0 deletions .changeset/short-islands-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@studiocms/imagehandler": patch
"@studiocms/core": patch
"studiocms": patch
---

Remove Unpic and simplify imageHandler
17 changes: 17 additions & 0 deletions .changeset/spotty-beds-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"@studiocms/betaresources": patch
"@studiocms/imagehandler": patch
"@studiocms/dashboard": patch
"@studiocms/renderers": patch
"@studiocms/robotstxt": patch
"@studiocms/frontend": patch
"@studiocms/devapps": patch
"@studiocms/assets": patch
"@studiocms/auth": patch
"@studiocms/blog": patch
"@studiocms/core": patch
"@studiocms/ui": patch
"studiocms": patch
---

Update URLs
5 changes: 5 additions & 0 deletions .changeset/thick-dryers-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@studiocms/ui": patch
---

Adjusted persistent toasts to include an outline for better visibility
7 changes: 7 additions & 0 deletions .changeset/thin-hounds-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@studiocms/dashboard": patch
"@studiocms/core": patch
"studiocms": patch
---

Adjusted strings to account for Astro Studio sunsetting
18 changes: 18 additions & 0 deletions .github/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Install Tools & Dependencies
description: Installs pnpm, Node.js & package dependencies

runs:
using: composite
steps:
- name: Setup pnpm (corepack enabled)
uses: pnpm/action-setup@v3

- name: Setup Node.js 20.x
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version-file: '.node-version'
cache: 'pnpm'

- name: Install Dependencies
run: pnpm ci:install
shell: bash
5 changes: 5 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# See https://github.com/actions/labeler/tree/main for more information about the labeler action

translations:
- changed-files:
- any-glob-to-any-file: packages/studiocms_core/src/i18n/translations/*
32 changes: 0 additions & 32 deletions .github/renovate.json

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/changeset-release.yml

This file was deleted.

Loading
Loading