-
Notifications
You must be signed in to change notification settings - Fork 31
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
ui: add tour to admin and info banner #2838
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0d9067c
ui: add tour to admin
miguelgrc 5757ce8
ui: add initial admin, coll, news page to docs
miguelgrc c6cc9f7
ui: implement intervention/info banner
miguelgrc c43679d
ui: fix tour breaking in notifications tab
miguelgrc 3bfaa89
ui: extract antd's theme to its own file
miguelgrc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Admin panel | ||
|
||
The admin panel lets you access existing schemas for your collaboration to either view or edit them, as well as create new schemas or import them from JSON files. It is only accessible by users with admin privileges in the collaboration. | ||
|
||
If you have such privileges, you can access the admin panel at https://analysispreservation.cern.ch/admin or by clicking on the _Admin_ button at the bottom right of the screen in CAP. | ||
|
||
The tools available in the admin section are listed below. | ||
|
||
## Schema viewer | ||
|
||
The schema viewer displays the JSON schemas and lets you do manual changes to certain parts of them. You can use the diff view to see your changes, and you can easily revert or save them. | ||
|
||
## Form builder | ||
|
||
The form builder is a powerful tool which makes it easy to interactively create and edit forms. It includes a **tour** that we encourage you to follow in order to understand the basics of the tool. The tour is automatically run on your first visit to the admin, and can be run manually whenever you needed by clicking on the _Tour_ button in the bottom right corner of the form builder. | ||
|
||
## Notifications | ||
|
||
The notifications tab allows you to define notifications for a given category. You can add as many notifications as you want, each of them with a different content and addressed to different people. The email notifications can contain information directly extracted from the form, using the provided _context options_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Collections | ||
|
||
The collections page is a centralized place from which you can access all drafts and published records for that collection, being able to **filter** by version. | ||
|
||
It contains a **permissions** table showing all permissions assigned to users, which are applied globally to all records in the collection. | ||
Each entry indicates the type of the user (egroup or user), and its permissions for read, create, review, update and admin, for both drafts (D) and published records (P). | ||
|
||
Admins are also able to define a **readme** for the collection, which can be useful to provide some instructions for other members of the collaboration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# News |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ const SelectFieldType = () => { | |
))} | ||
</Row> | ||
), | ||
className: type.className, | ||
}))} | ||
/> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Button, Card, Col, Row, Typography } from "antd"; | ||
|
||
const TourTooltip = ({ | ||
index, | ||
step, | ||
backProps, | ||
primaryProps, | ||
tooltipProps, | ||
isLastStep, | ||
skipProps, | ||
total, | ||
}) => { | ||
return ( | ||
<Card {...tooltipProps} style={{ maxWidth: "300px", border: 0 }}> | ||
<Row justify="center"> | ||
{step.title && ( | ||
<Typography.Title level={5}>{step.title}</Typography.Title> | ||
)} | ||
<Typography.Text style={{ textAlign: "center" }}> | ||
{step.content} | ||
</Typography.Text> | ||
</Row> | ||
<Row style={{ marginTop: "20px" }} align="middle" gutter={10}> | ||
<Col flex="auto"> | ||
<Button type="text" {...skipProps}> | ||
Skip | ||
</Button> | ||
</Col> | ||
<Col>{index > 0 && <Button {...backProps}>Back</Button>}</Col> | ||
<Col> | ||
<Button type="primary" {...primaryProps}> | ||
{isLastStep ? "Finish" : `Next (${index + 1}/${total})`} | ||
</Button> | ||
</Col> | ||
</Row> | ||
</Card> | ||
); | ||
}; | ||
|
||
export default TourTooltip; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we try this way? react-simple-code-editor/react-simple-code-editor#86 (comment) from vite.config?