diff --git a/.changeset/afraid-spoons-marry.md b/.changeset/afraid-spoons-marry.md deleted file mode 100644 index 9fd616c7..00000000 --- a/.changeset/afraid-spoons-marry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'squareone': minor ---- - -Squareone uses a base stylesheet from the @lsst-sqre/global-css package. This reduces the amount of global CSS managed in Squareone itself, and offloads configuring the Rubin Style Dictionary tokens into base CSS elements. diff --git a/.changeset/bright-sheep-poke.md b/.changeset/bright-sheep-poke.md deleted file mode 100644 index 74ad1482..00000000 --- a/.changeset/bright-sheep-poke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lsst-sqre/squared': minor ---- - -Add a useGafaelfawrUser hook. diff --git a/.changeset/brown-dingos-mix.md b/.changeset/brown-dingos-mix.md deleted file mode 100644 index 14101684..00000000 --- a/.changeset/brown-dingos-mix.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'squareone': minor ---- - -Implement background recomputation for cached Times Square pages. The "Recompute" button submits a request to Times Square's `DELETE /v1/pages/:page/html?{params}` endpoint, which causes a background recomputation of the notebook and re-rendering of the cached HTML. - -The new `TimesSquareHtmlEventsProvider` is a React context provider that provides real-time updates from Times Square about the status of an HTML rendering for a given set of parameters using Times Square's `/v1/pages/:page/html/events/{params}` endpoint. Squareone uses `@microsoft/fetch-event-source` to subscribe to this server-sent events (SSE) endpoint. Using this provider, the UI is able to show new data to the user, including the status of the computation, and once the computation is complete, the date/age of computation and the execution time. diff --git a/.changeset/chatty-bikes-unite.md b/.changeset/chatty-bikes-unite.md deleted file mode 100644 index 070246d0..00000000 --- a/.changeset/chatty-bikes-unite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'squareone': minor ---- - -The Times Square "Update" and "Reset" buttons are now disabled when appropriate. The Update button is disabled when the parameter inputs have not been changed relative to their current state. Likewise, the Reset button is disabled when the parameters are unchanged from the current state. diff --git a/.changeset/cool-experts-sniff.md b/.changeset/cool-experts-sniff.md deleted file mode 100644 index 54ddc00b..00000000 --- a/.changeset/cool-experts-sniff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lsst-sqre/global-css': minor ---- - -Created the global-css package to bundle base CSS stylesheets for Squareone applications. diff --git a/.changeset/four-boats-prove.md b/.changeset/four-boats-prove.md deleted file mode 100644 index 3de0f4c9..00000000 --- a/.changeset/four-boats-prove.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'squareone': minor ---- - -Drop the use of normalize.css and instead rely on the base CSS from the global-css package. diff --git a/.changeset/grumpy-bugs-scream.md b/.changeset/grumpy-bugs-scream.md deleted file mode 100644 index 4e49d8e1..00000000 --- a/.changeset/grumpy-bugs-scream.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lsst-sqre/eslint-config': minor ---- - -This is the first internal release of the eslint-config package. It's inspired by the Turborepo examples: https://github.com/vercel/turbo/tree/main/examples/design-system/packages/eslint-config-acme diff --git a/.changeset/kind-impalas-crash.md b/.changeset/kind-impalas-crash.md deleted file mode 100644 index 8d823f6d..00000000 --- a/.changeset/kind-impalas-crash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lsst-sqre/squared': minor ---- - -This is the first release of the Squared React component library for Squareone. diff --git a/.changeset/olive-avocados-leave.md b/.changeset/olive-avocados-leave.md deleted file mode 100644 index 18c33278..00000000 --- a/.changeset/olive-avocados-leave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lsst-sqre/tsconfig': minor ---- - -This is the first internal release of the tsconfig package for Squareone. It's primarily based on Turborepo example projects, like https://github.com/vercel/turbo/tree/main/examples/design-system/packages/acme-tsconfig. diff --git a/.changeset/seven-maps-drum.md b/.changeset/seven-maps-drum.md deleted file mode 100644 index 3b0e3cbb..00000000 --- a/.changeset/seven-maps-drum.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'squareone': minor ---- - -New `TimesSquareUrlParametersProvider` component. This React context provides the URL-based state to Times Square components, such as the page being viewed, its notebook parameters values, and the display settings. This change simplifies the structure of the React pages by refactoring all of the URL parsing into a common component. As well, this context eliminates "prop drilling" to provide this URL-based state to all components in the Times Square application. diff --git a/.changeset/twelve-actors-dance.md b/.changeset/twelve-actors-dance.md deleted file mode 100644 index 1d4ac7a1..00000000 --- a/.changeset/twelve-actors-dance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lsst-sqre/squared': minor ---- - -Add a GafaelfawrUserMenu component to squared. This is based on the Radix UI dropdown menu and implements a login button if the user is not authenticated or a full user settings menu if the user is authenticated. A logout menu item is always included at the end of the menu, but apps can compose other user menu items in the component. As the name implies, this component is tied into the logic and usage patterns of Gafaelfawr as an auth service. diff --git a/.changeset/young-singers-deliver.md b/.changeset/young-singers-deliver.md deleted file mode 100644 index 169563af..00000000 --- a/.changeset/young-singers-deliver.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@lsst-sqre/squared': minor ---- - -Add a useCurrentUrl hook. This works with `react/router` and a provided base URL to get the absolute URL of the current page view. Next.js is now a peer dependency of squared to support this. diff --git a/apps/squareone/CHANGELOG.md b/apps/squareone/CHANGELOG.md index 5ef873b3..c6d6a649 100644 --- a/apps/squareone/CHANGELOG.md +++ b/apps/squareone/CHANGELOG.md @@ -1,5 +1,27 @@ # squareone +## 0.11.0 + +### Minor Changes + +- [#153](https://github.com/lsst-sqre/squareone/pull/153) [`3561d09`](https://github.com/lsst-sqre/squareone/commit/3561d097d0c5cbe508f140f2bcd9041a540832a0) Thanks [@jonathansick](https://github.com/jonathansick)! - Squareone uses a base stylesheet from the @lsst-sqre/global-css package. This reduces the amount of global CSS managed in Squareone itself, and offloads configuring the Rubin Style Dictionary tokens into base CSS elements. + +- [#163](https://github.com/lsst-sqre/squareone/pull/163) [`72dd989`](https://github.com/lsst-sqre/squareone/commit/72dd989ad963612204fa92a484a56abfbed4df8a) Thanks [@jonathansick](https://github.com/jonathansick)! - Implement background recomputation for cached Times Square pages. The "Recompute" button submits a request to Times Square's `DELETE /v1/pages/:page/html?{params}` endpoint, which causes a background recomputation of the notebook and re-rendering of the cached HTML. + + The new `TimesSquareHtmlEventsProvider` is a React context provider that provides real-time updates from Times Square about the status of an HTML rendering for a given set of parameters using Times Square's `/v1/pages/:page/html/events/{params}` endpoint. Squareone uses `@microsoft/fetch-event-source` to subscribe to this server-sent events (SSE) endpoint. Using this provider, the UI is able to show new data to the user, including the status of the computation, and once the computation is complete, the date/age of computation and the execution time. + +- [#163](https://github.com/lsst-sqre/squareone/pull/163) [`72dd989`](https://github.com/lsst-sqre/squareone/commit/72dd989ad963612204fa92a484a56abfbed4df8a) Thanks [@jonathansick](https://github.com/jonathansick)! - The Times Square "Update" and "Reset" buttons are now disabled when appropriate. The Update button is disabled when the parameter inputs have not been changed relative to their current state. Likewise, the Reset button is disabled when the parameters are unchanged from the current state. + +- [#153](https://github.com/lsst-sqre/squareone/pull/153) [`1240924`](https://github.com/lsst-sqre/squareone/commit/124092414c191eb16866304eafd9b6c4d428e2f6) Thanks [@jonathansick](https://github.com/jonathansick)! - Drop the use of normalize.css and instead rely on the base CSS from the global-css package. + +- [#163](https://github.com/lsst-sqre/squareone/pull/163) [`72dd989`](https://github.com/lsst-sqre/squareone/commit/72dd989ad963612204fa92a484a56abfbed4df8a) Thanks [@jonathansick](https://github.com/jonathansick)! - New `TimesSquareUrlParametersProvider` component. This React context provides the URL-based state to Times Square components, such as the page being viewed, its notebook parameters values, and the display settings. This change simplifies the structure of the React pages by refactoring all of the URL parsing into a common component. As well, this context eliminates "prop drilling" to provide this URL-based state to all components in the Times Square application. + +### Patch Changes + +- Updated dependencies [[`b765732`](https://github.com/lsst-sqre/squareone/commit/b765732db52e354026294fce7b5ef7c32d32e553), [`5ee421b`](https://github.com/lsst-sqre/squareone/commit/5ee421bdd8f1c6f922913028ad48284f941189f1), [`9abbebb`](https://github.com/lsst-sqre/squareone/commit/9abbebba02fc1bc27fe2097fbbdb97110a9c93d9), [`30928a5`](https://github.com/lsst-sqre/squareone/commit/30928a5caa5392d7927fd3a2f017d48d77b68c1a), [`30928a5`](https://github.com/lsst-sqre/squareone/commit/30928a5caa5392d7927fd3a2f017d48d77b68c1a)]: + - @lsst-sqre/squared@0.1.0 + - @lsst-sqre/global-css@0.1.0 + ## 0.10.3 ### Patch Changes diff --git a/apps/squareone/package.json b/apps/squareone/package.json index 822d86d5..4e752ad5 100644 --- a/apps/squareone/package.json +++ b/apps/squareone/package.json @@ -1,6 +1,6 @@ { "name": "squareone", - "version": "0.10.3", + "version": "0.11.0", "private": true, "scripts": { "dev": "next dev -p 3000", diff --git a/packages/eslint-config/CHANGELOG.md b/packages/eslint-config/CHANGELOG.md new file mode 100644 index 00000000..ae08dce0 --- /dev/null +++ b/packages/eslint-config/CHANGELOG.md @@ -0,0 +1,7 @@ +# @lsst-sqre/eslint-config + +## 0.1.0 + +### Minor Changes + +- [#153](https://github.com/lsst-sqre/squareone/pull/153) [`69446f1`](https://github.com/lsst-sqre/squareone/commit/69446f1c3e1cca7c3961439825679f0851826f6f) Thanks [@jonathansick](https://github.com/jonathansick)! - This is the first internal release of the eslint-config package. It's inspired by the Turborepo examples: https://github.com/vercel/turbo/tree/main/examples/design-system/packages/eslint-config-acme diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index f0b59032..655c0479 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@lsst-sqre/eslint-config", - "version": "0.0.0", + "version": "0.1.0", "private": true, "main": "index.js", "license": "MIT", diff --git a/packages/global-css/CHANGELOG.md b/packages/global-css/CHANGELOG.md new file mode 100644 index 00000000..48583e59 --- /dev/null +++ b/packages/global-css/CHANGELOG.md @@ -0,0 +1,7 @@ +# @lsst-sqre/global-css + +## 0.1.0 + +### Minor Changes + +- [#153](https://github.com/lsst-sqre/squareone/pull/153) [`5ee421b`](https://github.com/lsst-sqre/squareone/commit/5ee421bdd8f1c6f922913028ad48284f941189f1) Thanks [@jonathansick](https://github.com/jonathansick)! - Created the global-css package to bundle base CSS stylesheets for Squareone applications. diff --git a/packages/global-css/package.json b/packages/global-css/package.json index 8d02169b..ad811b55 100644 --- a/packages/global-css/package.json +++ b/packages/global-css/package.json @@ -1,7 +1,7 @@ { "name": "@lsst-sqre/global-css", "description": "Global stylesheets for Squareone projects.", - "version": "0.0.0", + "version": "0.1.0", "private": true, "main": "./dist/next.css", "license": "MIT", diff --git a/packages/squared/CHANGELOG.md b/packages/squared/CHANGELOG.md new file mode 100644 index 00000000..61c8ec63 --- /dev/null +++ b/packages/squared/CHANGELOG.md @@ -0,0 +1,18 @@ +# @lsst-sqre/squared + +## 0.1.0 + +### Minor Changes + +- [#155](https://github.com/lsst-sqre/squareone/pull/155) [`b765732`](https://github.com/lsst-sqre/squareone/commit/b765732db52e354026294fce7b5ef7c32d32e553) Thanks [@jonathansick](https://github.com/jonathansick)! - Add a useGafaelfawrUser hook. + +- [#153](https://github.com/lsst-sqre/squareone/pull/153) [`9abbebb`](https://github.com/lsst-sqre/squareone/commit/9abbebba02fc1bc27fe2097fbbdb97110a9c93d9) Thanks [@jonathansick](https://github.com/jonathansick)! - This is the first release of the Squared React component library for Squareone. + +- [#155](https://github.com/lsst-sqre/squareone/pull/155) [`30928a5`](https://github.com/lsst-sqre/squareone/commit/30928a5caa5392d7927fd3a2f017d48d77b68c1a) Thanks [@jonathansick](https://github.com/jonathansick)! - Add a GafaelfawrUserMenu component to squared. This is based on the Radix UI dropdown menu and implements a login button if the user is not authenticated or a full user settings menu if the user is authenticated. A logout menu item is always included at the end of the menu, but apps can compose other user menu items in the component. As the name implies, this component is tied into the logic and usage patterns of Gafaelfawr as an auth service. + +- [#155](https://github.com/lsst-sqre/squareone/pull/155) [`30928a5`](https://github.com/lsst-sqre/squareone/commit/30928a5caa5392d7927fd3a2f017d48d77b68c1a) Thanks [@jonathansick](https://github.com/jonathansick)! - Add a useCurrentUrl hook. This works with `react/router` and a provided base URL to get the absolute URL of the current page view. Next.js is now a peer dependency of squared to support this. + +### Patch Changes + +- Updated dependencies [[`5ee421b`](https://github.com/lsst-sqre/squareone/commit/5ee421bdd8f1c6f922913028ad48284f941189f1)]: + - @lsst-sqre/global-css@0.1.0 diff --git a/packages/squared/package.json b/packages/squared/package.json index e9476bae..1e18a25c 100644 --- a/packages/squared/package.json +++ b/packages/squared/package.json @@ -1,7 +1,7 @@ { "name": "@lsst-sqre/squared", "description": "A React component library for Squareone / Rubin Data Management.", - "version": "0.0.0", + "version": "0.1.0", "private": true, "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/packages/tsconfig/CHANGELOG.md b/packages/tsconfig/CHANGELOG.md new file mode 100644 index 00000000..2d271fae --- /dev/null +++ b/packages/tsconfig/CHANGELOG.md @@ -0,0 +1,7 @@ +# @lsst-sqre/tsconfig + +## 0.1.0 + +### Minor Changes + +- [#153](https://github.com/lsst-sqre/squareone/pull/153) [`c81597a`](https://github.com/lsst-sqre/squareone/commit/c81597a6281193778a25aa8433eb7e4abf17359a) Thanks [@jonathansick](https://github.com/jonathansick)! - This is the first internal release of the tsconfig package for Squareone. It's primarily based on Turborepo example projects, like https://github.com/vercel/turbo/tree/main/examples/design-system/packages/acme-tsconfig. diff --git a/packages/tsconfig/package.json b/packages/tsconfig/package.json index bc747e5a..3b3480cc 100644 --- a/packages/tsconfig/package.json +++ b/packages/tsconfig/package.json @@ -1,6 +1,6 @@ { "name": "@lsst-sqre/tsconfig", - "version": "0.0.0", + "version": "0.1.0", "private": true, "license": "MIT", "publishConfig": {