* Remove terminalXService
This is a prelude to the change I actually want to make, which is to
send the size of the terminal on the web socket URL after we do a fit.
I have found xstate so confusing that it was easier to just rewrite it.
* Fix hanging tests
I am not really sure what ws.connected is doing but it seems to somehow
block updates. Something to do with `act()` maybe?
Basically, the useEffect creating the terminal never updates once the
config query finishes, so the web socket is never created, and the test
hangs forever.
It might have been working before only because the web socket was
created using xstate rather than useEffect and once it connected it
would unblock and React could update again but this is just a guess.
* Ignore other config changes
The terminal only cares about the renderer specifically, no need to
recreate the terminal if something else changes.
* Break out port forward URL open to util
Felt like this could be broken out to reduce the component size. Also
trying to figure out why it is causing the terminal to create multiple
times.
* Prevent handleWebLink change from recreating terminal
Depending on the timing, handleWebLink was causing the terminal to get
recreated. We only need to create the terminal once unless the render
type changes.
Recreating the terminal was also recreating the web socket pointlessly.
* refactor: extract UserRoleCell into separate component
* wip: add placeholder Groups column
* fix: remove redundant css styles
* refactor: update EditRolesButton to use Sets to detect selections
* wip: commit progress for updated roles column
* wip: commit current role pill progress
* fix: update state sync logic
* chore: add groupsByUserId query options factory
* fix: update return value of select function
* chore: drill groups data down to cell component
* wip: commit current cell progress
* fix: remove redundant classes
* wip: commit current styling progress
* fix: update line height for CTA
* fix: update spacing
* chore: add tooltip for Groups column header
* fix: remove tsbuild file
* refactor: consolidate tooltip components
* fix: update font size defaults inside theme
* fix: expand hoverable/clickable area of groups cell
* fix: remove possible undefined cases from HelpTooltip
* chore: add popover functionality to groups
* wip: commit progress on groups tooltip
* fix: remove zero-height group name visual bug
* feat: get basic version of user group tooltips done
* perf: move sort order callback outside loop
* fix: update spacing for tooltip
* feat: make popovers entirely hover-based
* fix: disable scroll locking for popover
* docs: add comments explaining some pitfalls with Popover component
* refactor: simplify userRoleCell implementation
* feat: complete main feature
* fix: prevent scroll lock for role tooltips
* fix: change import to type import
* refactor: simplify how groups are clustered
* refactor: update UserRoleCell to use Popover
* refactor: remove unnecessary fragment
* chore: add id/aria support for Popover
* refactor: update UserGroupsCell to use Popover
* chore: redo visual design for UserGroupsCell
* fix: shrink UserGroupsCell text
* fix: update UsersTable test to include groups info
* added new option table type for experiments
* added tests
* fixed go tests
* added go test for new param
* removing query change
* clearing ExperimentsAll
* dont mutate ExperimentsAll
* added new route for safe experiments
* added new route for safe experiments
* added test for new route
* PR feedback
* altered design
* alias children
* docs: rework our "templates" section
* wikistuff
* fix formatting
* add diagram
* reorganize some things
* docs: improve workspaces and templates doc (#9139)
* Reorg, updated/new screenshots, consistent terminology
* First pass
* Another pass
* Added integration section
* New outline for template pages, small updates
* Revised outline for templates, added tutorial
* First pass at tutorial
* Some feedback from Ben.
* Update docs/workspaces.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/workspaces.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/workspaces.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Fixed typos
* Expanded tutorial
I have read the CLA Document and I hereby sign the CLA
* New screenshots, improved tutorial, revised anatomy
* Improved tutorial. Anatomy is now a guided tour.
* First pass at guided tour
* Updated authentication info
* Reorganized the guided tour
* Edited more template pages
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tutorial.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Update docs/templates/tour.md
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
* Revised devcontainers and docker-in-workspaces
* Edited and added screenshots
* Prepared first draft, except docs/templates/open-in-coder.md
* Fix typo
* remove legacy parameters and migration guide
* Use coder templates create
* Added screenshot for workspace template variables
* Made it prettier
* Fixed minor typos and markdown problems
* edits to repairing workspaces
* fix broken links in product
* Added troubleshooting, minor corrections.
* fix terminal links
* fmt
---------
Co-authored-by: Muhammad Atif Ali <matifali@live.com>
Co-authored-by: Ben Potter <me@bpmct.net>
Co-authored-by: Atif Ali <atif@coder.com>
* make fmt
* fix merge conflict
* make fmt
* make gen
* update
* lint
* Discard changes to coderd/database/queries.sql.go
* Discard changes to cli/templates.go
* Discard changes to cli/templateversionarchive.go
* Discard changes to cli/templateversions.go
* Update docker-in-workspaces.md
* replace ```sh with ```shell
* open-in-coder
* fmt
* mention coder_metadata in icons.md
* resource_metadata
* use shell
* modules.md
* mention coder registry module
* workspace.md
* resource_metadata
* remove duplication
* address comments
* cleanup
* fmt
* fix broken links
* fix numbering
* mention module registry
* add example
* demote heading
* remove top level entry from manifest
* fmt
---------
Co-authored-by: Ben <me@bpmct.net>
Co-authored-by: Marc Paquette <22124737+marcpaq@users.noreply.github.com>