1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
Commit Graph

59 Commits

Author SHA1 Message Date
Ivar Conradi Østhus
72657a60a0
feat: expose kapi as part of docs (#3996)
Small poc to add ask kapi.ai to our docs. UI not great yet. 


![image](https://github.com/Unleash/unleash/assets/158948/68a5b60f-0262-4fe3-89d8-3fcf30d23029)

And this is the widget in action:

![image](https://github.com/Unleash/unleash/assets/158948/63b0bcdd-b164-46dc-89ea-7f7f80aa364a)

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2023-06-23 13:55:59 +02:00
Thomas Heartman
db2b40543c
docs: remove unleash client from the docs (#3378)
We don't use the client for anything at the moment, so we can remove it.

While there are things we can use it for in the future, we should
instead add it back in when we get there.

This also removes the docs feedback form (which we haven't used since
the client stopped working)
2023-03-23 13:26:42 +01:00
Thomas Heartman
0e3e725a17
docs: add "The Anatomy of Unleash" (#2138)
## What

This PR

1. adds a new topic document, "The Anatomy of Unleash", which explains
how Unleash is built up as a system.
2. It also moves the "topic guides" sidebar entry from position 4 to
position 2.
3. Finally, it introduces a new `Figure` component for the
documentation, to be used with images that should be shown with
captions.

## Why

Referring to the same numbers as mentioned above, here's some background
for these changes:

1. We have gotten requests from enterprise users for a way to help new
Unleash users understand the system. Together with customer success and
customer journey, we agreed that an explanatory guide would be suitable.
It aims to give the reader an introduction into what pieces constitute
the Unleash system.
2. As part of a discussion, it was suggested to move topic guides higher
up to make them more visible. There's a few reasons for this:
1. New users of Unleash should be able to keep reading about Unleash
after the basic introductory material. When left at the bottom, topic
guides are often overlooked
2. As a justification, it was proposed that reference docs are often the
last thing you look for, so it makes sense to put that last.
3. Thinking about a new user's flow, it also makes some sense: first
read introductory material, then dive deeper into what Unleash is and
what you can use it for, then look for how-to guides if you're stuck,
and finally consult the reference material for later.
3. These diagrams aren't necessarily very self-explanatory, so adding a
caption makes a lot of sense. We didn't have a component from this
previously, so I added one.

Co-authored-by: NicolaeUnleash <103567375+NicolaeUnleash@users.noreply.github.com>
Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>

## Commits

* docs: add raw export of anatomy document

* docs: move the topic guides section to near top of sidebar

* docs: add inter-doc links, some reformatting

* docs: fix broken links

* docs: add a Figure element for figures with captions

* docs: add more styling to figures

* docs: align on styles

* Fix: add fuller figure caption

* docs: rephrase heading

* Docs(test): try new way of importing images

* Docs(test): images take 3

* docs: Convert all images to using the figure component

* docs: add projects to list of top-level resources

* docs: add captions for all figures.

* docs: reorder images

* Docs(fix): typo: extra brackets

* Docs(style): remove box shadows and border on fig caption images

* Docs(chore): remove commented-out css

* Docs(refactor): use css variable for small font size.

To facilitate reusability and convey meaning.

* docs: rename anatomy doc

* docs: add note about strategies vs constraints

* Updating the images

* Apply suggestions from code review

Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>

* Update website/docs/topics/the-anatomy-of-unleash.mdx

* Docs(fix): remove redundant comma

* docs: add link to node js sdk

* docs: mention that a toggle must be active in an env to be enabled

* docs: add note about environments and api keys

* Docs(reword): swap dev and prod in example

* docs: fix typo in the image

* docs: make figures in text full-width

* docs: move environments and API keys call-out to after figure

* docs: add borders to figures

* docs: add image float css idea

* Revert "docs: add image float css idea"

This reverts commit 69f27d304b.

Co-authored-by: NicolaeUnleash <103567375+NicolaeUnleash@users.noreply.github.com>
Co-authored-by: Simon Hornby <liquidwicked64@gmail.com>
2022-10-19 13:14:49 +02:00
Thomas Heartman
9448461aaa
docs: prep to add OpenAPI spec to Unleash docs (#1907)
* Docs: start experimenting with OpenAPI and docusaurus

* Docs: add docusaurus-theme-openapi-docs pkg

* Wip: current status

* Docs: Add 'docusaurus-plugin-api-docs'

* Move openapi into own sidebar; generate from localhost

* Chore: Update docusaurus plugin for OpenAPI

* Add website/yarn.lock to git

* Fix: fix CSS warning by using flex-end instead of end

* docs: make openapi generated code work again

* docs: make tags work properly with openapi sidebar

* Docs/chore: update OpenAPI tag scheme.

Add a whole bunch of new tags to make it easier to understand
available tags in OpenAPI.

* docs: point to new openapi docs from old api docs

* docs: typo

* Docs:  link restructure

* docs: add operation indicators to openapi docs

* docs: change badge color for operations

* docs: update openapi-docs package

It now sorts tags the same as the schema

* docs: pluralize APIs in slug

* docs: update links to generated api docs

* docs: update openapi snapshot tests with new tags

* docs: conditionally load spec from localhost or from file

* docs: Remove changes relating to immediate switchover

* refactor: rename types; extract into separate file

* docs: fix api doc links
2022-08-12 11:37:57 +02:00
Thomas Heartman
65da8a845a feat: update ApiRequest to accept POST w/o payloads 2022-04-27 10:55:33 +02:00
Thomas Heartman
ecbae418d4 feat: allow ApiRequest component to create proxy requests 2022-04-13 15:15:08 +02:00
Thomas Heartman
c0228a0ca3 chore: remove unused code 2022-04-02 16:39:16 +02:00
Thomas Heartman
3846ad8252 fix: re-add the groupId prop for the API request tabs component. 2022-04-02 16:27:20 +02:00
Thomas Heartman
cfbe04272a feat: make API request component work without payloads
There's been no previous need for GET or DELETE requests, but now that
we do need them, the payload shouldn't show up as `undefined`
2022-04-01 15:47:00 +02:00
Thomas Heartman
d167de76d8 docs: add stories file for API request component 2022-04-01 15:47:00 +02:00
Thomas Heartman
18c16b3040 fix: make sure customer type is included in the payload.
Because it previously set it via a reducer and submitted the form in
the same step, the customer type wouldn't be set correctly before the
form was submitted, causing it to show up as "undefined".

We're doing double the work now, but I think that's an acceptable
trade-off for now.
2022-03-10 10:12:10 +01:00
Thomas Heartman
027eac47ac feat: add data: "was the form opened manually" and "current page" 2022-03-10 09:48:58 +01:00
Thomas Heartman
22c4752c53 fix: remove empty ruleset 2022-03-10 09:40:28 +01:00
Thomas Heartman
f49fde0923 fix: make buttons visually align in Chrome and Firefox 2022-03-02 15:47:45 +01:00
Thomas Heartman
756204c529 feat: type feedback component. 2022-03-02 12:05:29 +01:00
Thomas Heartman
4871f178a1 chore: convert feedback component to typescript 2022-03-02 10:50:46 +01:00
Thomas Heartman
c520e11892 fix: retranspose transposed words 2022-03-01 17:22:58 +01:00
Thomas Heartman
9c0a5b4c12 fix: use position: fixed to set UI components of feedback. 2022-03-01 17:21:28 +01:00
Thomas Heartman
d0132ef61d docs: integrate unleash to show feedback 2022-03-01 17:21:14 +01:00
Thomas Heartman
553b8020fd docs: fix styling issues on narrow screens 2022-03-01 08:44:57 +01:00
Thomas Heartman
e12aa94695 feat: set completion flag upon submitting form 2022-02-28 23:59:59 +01:00
Thomas Heartman
44cac1e7d2 chore: remove debug logs 2022-02-28 23:50:10 +01:00
Thomas Heartman
98298dc42b feat: implement saving and loading from localStorage 2022-02-28 23:41:42 +01:00
Thomas Heartman
f9561c3661 feat: clear form on manual closing. 2022-02-28 23:33:48 +01:00
Thomas Heartman
74a3c27b06 clear form after submission and re-opening 2022-02-28 23:18:53 +01:00
Thomas Heartman
0e96a39ecf fix: remove pointer events from hidden content. 2022-02-28 23:18:36 +01:00
Thomas Heartman
b2a1628ff5 feat: set up request execution on form submission 2022-02-28 23:13:07 +01:00
Thomas Heartman
0e4d2cf102 step forward after submitting response 2022-02-28 22:29:27 +01:00
Thomas Heartman
5c35ea84b7 fix: don't reset radio group values to undefined 2022-02-28 22:14:53 +01:00
Thomas Heartman
a2a7499e95 chore: minor cleanup and simplification 2022-02-28 22:11:55 +01:00
Thomas Heartman
05d8cfe10c feat: fix keyboard focus between screens 2022-02-28 22:09:18 +01:00
Thomas Heartman
f215980d6c feat: overlay form sections 2022-02-28 15:36:46 +01:00
Thomas Heartman
355b516dae feat: render all steps at the same time, add thank you; first anims 2022-02-28 15:19:15 +01:00
Thomas Heartman
5456b093be feat: style open-feedback-button. 2022-02-28 14:35:02 +01:00
Thomas Heartman
911f65856f feat: further styling and hooking up of open feedback-button 2022-02-28 12:27:10 +01:00
Thomas Heartman
56d9335162 docs: set customer type correctly 2022-02-28 10:25:16 +01:00
Thomas Heartman
6916873ec7 docs: style input text area 2022-02-28 10:19:02 +01:00
Thomas Heartman
9b1f9b764b feat: start hooking up open/close logic 2022-02-27 19:59:30 +01:00
Thomas Heartman
a629c36fe7 feat: hide 'very unsatisfied'/'very satisfied' on smaller sreens 2022-02-27 19:40:14 +01:00
Thomas Heartman
e007123c59 fix: make close button visible again 2022-02-27 16:27:28 +01:00
Thomas Heartman
1534fd1674 feat: style page 3 2022-02-27 16:15:46 +01:00
Thomas Heartman
5bc48076a2 feat: reverse source order of form control buttons.
this makes 'submit' or 'next' the first button you reach when tabbing
out of the control
2022-02-27 16:02:00 +01:00
Thomas Heartman
19e03e94e0 style page 2 2022-02-27 15:57:30 +01:00
Thomas Heartman
da38a419ed feat: create step 1 and set up step 2 2022-02-27 15:16:51 +01:00
Thomas Heartman
5340ca28fc move subcomponent into wrapper 2022-02-27 14:59:33 +01:00
Thomas Heartman
35a939b895 feat: start splitting component up into multiple pieces. 2022-02-27 14:37:44 +01:00
Thomas Heartman
211b18c4a3 feat: start adding state logic to component. 2022-02-26 21:38:07 +01:00
Thomas Heartman
6e2072bca4 chore: first feedback page 2022-02-25 17:10:29 +01:00
Thomas Heartman
a6191f5ab8 feat: rough style first question page of feedback component. 2022-02-25 12:57:13 +01:00
Thomas Heartman
aa3fb6c4e2 chore: rename styles to module, add more focus styles 2022-02-24 18:00:03 +01:00