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

Unify the existing landing and try now pages #304

Merged
merged 6 commits into from
May 23, 2024

Conversation

lucas-koehler
Copy link
Contributor

  • The new page is based on the old try now page but uses ViteJS instead of the deprecated Create React App
    • Extend configuration options for the new landing page for texts and logo file type
    • Removed terms and conditions
    • Build the common package as ESM and CJS bundles for extended compatibility

See eclipse-theia/theia-cloud-helm#58 for the Helm chart changes for extended configuration options.

Contributed on behalf of STMicroelectronics

@lucas-koehler lucas-koehler requested a review from sgraband May 22, 2024 10:17
Copy link
Contributor

@sgraband sgraband left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup! LGTM 👍

- Remove vue based simple landing page
- Migrate Try Now page from CRA to ViteJS and add as new `landing-page`
- Increase Keycloak dependency from 20.0.3 to 20.0.5
- The new landing-page uses its own tsconfig.json based on the one generated by Vite
- Adapt landing page dockerfile to new vite-based page
- Remove terms and conditions
- misc: Update node VSCode settings

Contributed on behalf of STMicroelectronics
Adapt the base tsconfig to build as module ES2020 instead of commonjs.
The ViteJS landing page does not work properly with the common package built as commonjs.
Furthermore, browser and node now natively support ES modules.

Contributed on behalf of STMictroelectronics
- Reset default tsconfig module setting to commonjs
- Publish common module as commonjs and esm
- Leave legacy `main` and `types` entries in package json pointing to commonjs.
  Node resolution mode `node` does not seem to recognize the new `exports` syntax
- Add `exports` entries for esm and cjs to package.json
- Adapt landing page Dockerfile to changes

Contributed on behalf of STMicroelectronics
- Extend common config with properties for info text/title, loading message,
  and logo file extenion
- Adapt landing page to use config if available. Otherwise, fall back to default texts
- Show info text before and after login. Hide it when an error is shown.

Contributed on behalf STMicroelectronics
- Remove source code
- Remove Dockerfile and CI
- Regenerate package-lock.json to remove try now workspace
- Adapt terraform values to use the landing page image

Contributed on behalf of STMicroelectronics
@lucas-koehler lucas-koehler force-pushed the lk/unify-landing-pages branch from f890135 to 7136198 Compare May 23, 2024 08:59
@lucas-koehler
Copy link
Contributor Author

I rebased the changes to fix the merge conflicts that arose from the Theia.Cloud -> Theia Cloud renamings of the operator library PR. This as straightforward as the conflicts only came from changes in files that are now deleted.

@lucas-koehler lucas-koehler merged commit 402d913 into main May 23, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants