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

Add "About app" modal #9833

Merged
merged 29 commits into from May 14, 2024
Merged

Add "About app" modal #9833

merged 29 commits into from May 14, 2024

Conversation

somebody1234
Copy link
Collaborator

@somebody1234 somebody1234 commented May 2, 2024

Pull Request Description

Important Notes

None

Screenshots

In browser (both cloud entrypoint, and accessing localhost:8080 when the desktop app is running):

image

On Electron desktop app:

image

On authentication pages:
(NOTE: Chat is present, but currently disabled as intended for users with the isEnabled flag set to false. While it would be easy to change this to use the same chat API as the website, this is a design decision that is out of scope for this PR.)

image

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.

@somebody1234 somebody1234 changed the title Add Add "About" modal May 2, 2024
@somebody1234 somebody1234 changed the title Add "About" modal Add "About app" modal May 2, 2024
@somebody1234 somebody1234 added CI: No changelog needed Do not require a changelog entry for this PR. x-new-feature Type: new feature request g-dashboard labels May 2, 2024
Copy link
Contributor

@MrFlashAccount MrFlashAccount left a comment

Choose a reason for hiding this comment

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

LGTM, except a few issues

}

return (
<Modal centered className="bg-dim">
Copy link
Contributor

Choose a reason for hiding this comment

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

Please stop copypasting between components. We have Dialog component, use it instead

const textContainerRef = React.useRef<HTMLTableSectionElement | null>(null)

const doCopy = () => {
const textContainer = textContainerRef.current
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it'd be easier to understand if we build a string from existing variables(window.versionInfo and so forth), instead of trying to extract the information from html.

@MrFlashAccount
Copy link
Contributor

Also, I think we should be able to open the dialog via this menu as well
CleanShot 2024-05-02 at 12 07 26@2x

@MrFlashAccount
Copy link
Contributor

There's also 1 missing thing: maybe we want to allow users to get the versions dialog on every screen(even on the login screen)? not only on the dashboard

@MrFlashAccount
Copy link
Contributor

MrFlashAccount commented May 14, 2024

QA #1 ✅ Passed with a few moments to fix:

  1. The label should be aligned vertically with the first line:
image
  1. Can we just not show this button on the Login screen?
    CleanShot 2024-05-14 at 10 10 26@2x

@somebody1234
Copy link
Collaborator Author

re 2: yeah. the intention was for chat to eventually work when logged out, but i guess it's not particularly useful as it is currently

@somebody1234 somebody1234 added the CI: Ready to merge This PR is eligible for automatic merge label May 14, 2024
@mergify mergify bot merged commit f041176 into develop May 14, 2024
34 of 35 checks passed
@mergify mergify bot deleted the wip/sb/about-app branch May 14, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge g-dashboard x-new-feature Type: new feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cmd + ? Keybind Does Not Show Enso Version
2 participants