diff --git a/e2e_tests/integration/play-command.spec.ts b/e2e_tests/integration/play-command.spec.ts index c8d193ad9f7..064621acb0b 100644 --- a/e2e_tests/integration/play-command.spec.ts +++ b/e2e_tests/integration/play-command.spec.ts @@ -61,7 +61,9 @@ describe('Play command', () => { // Go to next again cy.getNextInFrameStackBtn().click() - // Click forward 7 times (to last slide) + // Click forward to the last slide + nextSlideBtn().click() + nextSlideBtn().click() nextSlideBtn().click() nextSlideBtn().click() nextSlideBtn().click() @@ -70,7 +72,7 @@ describe('Play command', () => { frame = cy.getFrames() - frame.should('have.length', 1).should('contain', 'Keep getting started') + frame.should('have.length', 1).should('contain', 'Next steps') // Click new guide frame.contains('Play Cypher').click() @@ -86,9 +88,11 @@ describe('Play command', () => { nextSlideBtn().click() nextSlideBtn().click() nextSlideBtn().click() + nextSlideBtn().click() + nextSlideBtn().click() frame = cy.getFrames() - frame.should('have.length', 1).should('contain', 'Keep getting started') + frame.should('have.length', 1).should('contain', 'Next steps') // Click next in stack cy.getNextInFrameStackBtn().click() diff --git a/src/browser/documentation/guides/intro.tsx b/src/browser/documentation/guides/intro.tsx index 1c42215ea09..b758f62ff8f 100644 --- a/src/browser/documentation/guides/intro.tsx +++ b/src/browser/documentation/guides/intro.tsx @@ -21,13 +21,19 @@ import React from 'react' import Carousel from '../../modules/Carousel/Carousel' import Slide from '../../modules/Carousel/Slide' +import { + FULLSCREEN_SHORTCUT, + FOCUS_SHORTCUT, + printShortcut, + isMac +} from 'browser/modules/App/keyboardShortcuts' const title = 'Intro' const slides = [

Introduction

-

Getting started with Neo4j Browser

+

Neo4j Browser User Interface

@@ -55,26 +61,53 @@ const slides = [

- The editor is the primary interface for entering and running commands. - Enter Cypher queries to work with graph data. Use client-side commands - like - :help for other operations. + Editor pane is used to edit and run for Cypher statements and Browser + commands. Browser commands begin with :, for example{' '} + :help +

+ + + + + + + + + + + + + + + +
Execute current command +
+ {isMac ? '' : ''} +
+
Previous command in history +
+ {isMac ? '' : ''} +
+
Next command in history +
+ {isMac ? '' : ''} +
+
+

+

+ You can view the list of keybinding anytime by running{' '} + :help keys or by pressing F1 in the editor to see + all editor-specific keybindings.

-
- +
,
-

Stream

-

Scrolling series of result frames

+

Result frame

+

Most recently executed command or Cypher query.

@@ -83,76 +116,110 @@ const slides = [ order.

- +
,
-

Frame code view

-

Viewing requests and responses

+

Reusable frame

+

Instead of the stream

- The code tab displays everything sent to and received from the Neo4j - server, including: + You can also iterate in the same frame instead of generating a + scrollable stream of frames.

- +

Adjust your preferences in the Settings sidebar tab.

,
-

Sidebar

-

Convenient clickable access

+

Sidebar: Database information

+

Database metadata

-

- The sidebar expands to reveal different functional panels for common - queries and information. -

- + When Neo4j is installed, it is initiated with two databases - a{' '} + system database and a default neo4j database. + Launching Neo4j Browser will automatically point us to the{' '} + neo4j default database, shown by the + neo4j$ prompt in the editor.
, + -
-

Next steps

-

- Neo4j is like a mashup of a REPL + lightweight IDE + graph - visualization. +

+

Sidebar: Favorites

+

Quick way to save your queries

+
+
+

+ Favorite queries or commands can be saved in the local storage and + displayed in the sidebar.{' '} +

+

+ Favorites are global and independent of project or database which means + that you can access your Favorites from Neo4j Browser with different + databases, hosting platforms, and data sets.

- Play start - Back to getting started
-

Keep getting started

+ +
+ , + + +
+

Sidebar: Project files

+

Save cypher files to share with your colleagues

+
+
+ Queries and commands can also be saved as Project files. Project + folder can be reached through Neo4j Desktop and your hard disk. +
+
+ +
+
, + + +
+
+ {' '} + 🏠 + Play start - Back to getting started +
+
+ +
+

Next steps

  • Help commands - Useful Neo4j Browser diff --git a/src/browser/documentation/help/keys.tsx b/src/browser/documentation/help/keys.tsx index f905d844c90..04a48710164 100644 --- a/src/browser/documentation/help/keys.tsx +++ b/src/browser/documentation/help/keys.tsx @@ -31,80 +31,197 @@ const category = 'browserUiCommands' const content = ( <> - + - - - + + - - - + + + + + + + +
    Editor actionAny modeSingle-line modeGlobal actions +
    Execute current commandChange focus to editor -
    - {isMac ? '' : ''} -
    +
    {printShortcut(FOCUS_SHORTCUT)}
    Toggle fullscreen editor -
    {''}
    +
    {printShortcut(FULLSCREEN_SHORTCUT)}
    +
    + +

    + You can access the list of all available editor keybindings by pressing{' '} + F1 in the editor. +

    +

    Some of them are listed here:

    + + + + + + + + + + + + + + + + - - + + + - - + + + - - + + + - + + - - + + - - + + + - - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Editor action + + Windows / Linux + + Mac +
    Execute current commandCtrl + EnterCmd + Return
    Previous command in history -
    - {isMac ? '' : ''} -
    -
    -
    {''}
    -
    Ctrl + Up ArrowCmd + Up Arrow
    Next command in history -
    - {isMac ? '' : ''} -
    -
    -
    {''}
    -
    Ctrl + Up DownCmd + Up Down
    Switch to multi-line editing - -
    {''}
    -
    SearchCtrl + FCommand + F
    + Increase IndentTabTab
    Global actions - + Decrease IndentShift + TabShift + Tab
    Change focus to editor -
    {printShortcut(FOCUS_SHORTCUT)}
    -
    Comment OutCtrl + /Command + /
    Toggle fullscreen editor -
    {printShortcut(FULLSCREEN_SHORTCUT)}
    -
    Comment InCtrl + /Command + /
    + UndoCtrl + ZCommand + Z
    RedoCtrl + YShift + Command + Z or Command + Y
    Decrease IndentCtrl + [Command + [
    Increase IndentCtrl + ]Command + ]
    Move the line downAlt + DownOption + Down
    Move the line upAlt + UpOption + Up
    ReplaceCtrl + FCommand + Alt + F
    Select allCtrl + ACommand + A
    Select downwardShift + DownShift + Down
    Select rightShift + RightShift + Right
    Select leftShift + LeftShift + Left
    Select upwardShift + UpShift + Up
    Select to the endAlt + Shift + RightCommand + Shift + Right
    Select to the startAlt + Shift + LeftCommand + Shift + Left
    Align text rightCtrl + Shift + RightOption + Right
    Align text leftCtrl + Shift + LeftOption + Left
    Add multi-cursor aboveCtrl + Alt + UpCommand + Alt + Up
    Add multi-cursor belowCtrl + Alt + DownCommand + Alt + Down
    Add multi-cursor aboveCtrl + Alt + Shift + UpCommand + Alt + Shift + Up
    Move multi-cursor from current line to the line belowCtrl + Alt + Shift + DownCommand + Alt + Shift + Down
    -
    +

    Next steps

    • diff --git a/src/browser/images/Favorites2.gif b/src/browser/images/Favorites2.gif new file mode 100644 index 00000000000..f2514b03422 Binary files /dev/null and b/src/browser/images/Favorites2.gif differ diff --git a/src/browser/images/Keystrokes2.gif b/src/browser/images/Keystrokes2.gif new file mode 100644 index 00000000000..726b44e9fa0 Binary files /dev/null and b/src/browser/images/Keystrokes2.gif differ diff --git a/src/browser/images/ProjectFiles2.gif b/src/browser/images/ProjectFiles2.gif new file mode 100644 index 00000000000..4849db7d278 Binary files /dev/null and b/src/browser/images/ProjectFiles2.gif differ diff --git a/src/browser/images/ReusableFrame2.gif b/src/browser/images/ReusableFrame2.gif new file mode 100644 index 00000000000..b54cc5cbe9a Binary files /dev/null and b/src/browser/images/ReusableFrame2.gif differ diff --git a/src/browser/images/SidebarDB_Iinfo.png b/src/browser/images/SidebarDB_Iinfo.png new file mode 100644 index 00000000000..58c11d57d93 Binary files /dev/null and b/src/browser/images/SidebarDB_Iinfo.png differ diff --git a/src/browser/images/Stream.png b/src/browser/images/Stream.png new file mode 100644 index 00000000000..cd883575077 Binary files /dev/null and b/src/browser/images/Stream.png differ diff --git a/src/browser/modules/Carousel/style.less b/src/browser/modules/Carousel/style.less index e8a161ee363..c6e992d9f29 100644 --- a/src/browser/modules/Carousel/style.less +++ b/src/browser/modules/Carousel/style.less @@ -423,5 +423,9 @@ margin: 6px 0 20px 0; overflow: hidden; } + } + .padding5 {padding: 5px;} + .padding30 {padding-top: 30px;} + .table-padding {padding-top: 10px;} }