Skip to content

fix(oc-docs): full-height playground editors, uniform tab padding, pagination polish - #149

Merged
bijin-bruno merged 3 commits into
opencollection-dev:mainfrom
sundram-bruno:fix/oc-docs-ui-refinements-2
Jul 23, 2026
Merged

fix(oc-docs): full-height playground editors, uniform tab padding, pagination polish#149
bijin-bruno merged 3 commits into
opencollection-dev:mainfrom
sundram-bruno:fix/oc-docs-ui-refinements-2

Conversation

@sundram-bruno

@sundram-bruno sundram-bruno commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Playground UI refinements in the request/folder/collection panes and the docs pagination.
JIRA : BRU-3753

Changes

  • Full-height editors — Body, Tests and Scripts editors in the playground request pane now fill the available height instead of a fixed 300/400px box. Opt-in via a fillHeight prop, so the folder- and collection-settings usages keep their existing fixed heights. Each editor's border stops 1rem above the pane bottom.
  • Scroll + fixed tabs — the request-pane tab panel scrolls internally (overflow-y: auto), so long content (e.g. a request Overview) no longer overflows past the pane and its bottom padding is honoured at the scroll end. The tab row now stays fixed while content scrolls.
  • Uniform tab padding — a single parent rule in PlaygroundBody gives every playground tab panel a 1rem bottom padding (request/folder/collection), replacing the per-tab padding. Nested tabs (Scripts sub-tabs) are reset so they aren't double-padded.
  • Pagination (PrevNext) — inner padding set to 8px across breakpoints, and the request-name line-height bumped 1.2 → 1.4 so descenders (e.g. the tail of "g") are no longer clipped.

@sundram-bruno
sundram-bruno marked this pull request as draft July 23, 2026 13:49
@sundram-bruno
sundram-bruno force-pushed the fix/oc-docs-ui-refinements-2 branch from 964a42c to a84d730 Compare July 23, 2026 15:11
@sundram-bruno
sundram-bruno marked this pull request as ready for review July 23, 2026 15:12
@sundram-bruno
sundram-bruno force-pushed the fix/oc-docs-ui-refinements-2 branch from a84d730 to f2ac2be Compare July 23, 2026 15:49
Comment thread packages/oc-docs/e2e/tests/playground/editor-fill-height.spec.ts Outdated
…gination polish

- Body/Tests/Scripts editors in the request pane now fill the available
  height (opt-in fillHeight prop; folder/collection settings keep their
  fixed-height editors) and stop 1rem above the pane bottom
- request-pane tab panel scrolls internally so its padding-bottom is
  honoured on long content and the tab row stays fixed
- add uniform 1rem bottom padding to every playground tab panel from a
  single parent rule (request/folder/collection), resetting nested tabs
- pagination (PrevNext): inner padding 8px across breakpoints and bump
  the request-name line-height so descenders are no longer clipped
- Uniform page spacing across all playground pages (request, folder,
  collection, environments, example, and WS/GraphQL/gRPC): 1.25rem left
  padding and 1.25rem top so every page's content starts at the same edge
- All page headings now render through the shared TitleLabel component at
  a single size/weight (theme md, 14px, 600) with a consistent line-height
  so titles look the same and their glyph tops align; the taller
  line-height also stops descenders (y, g, p) being clipped
- Heading-to-tabs spacing lives on the heading; removed the top margin
  previously on the tabs beneath folder and collection headings
- Markdown blockquote (the Note callout) is vertically centred: the last
  paragraph's bottom margin is dropped so top and bottom padding match
- Example page heading no longer shows the "/ Example" suffix
- Removed the now-unused style classes (collection title, env title,
  example name suffix)
@sundram-bruno
sundram-bruno force-pushed the fix/oc-docs-ui-refinements-2 branch from 785032f to d5e26c3 Compare July 23, 2026 16:30
@sundram-bruno
sundram-bruno force-pushed the fix/oc-docs-ui-refinements-2 branch from d5e26c3 to e35659b Compare July 23, 2026 16:42
- Add data-testids to the Body and Tests editors so all three fill-height
  editors are locatable
- Add a Playwright spec asserting the Body, Tests and pre-request Script
  editors stretch to fill the request pane, ending ~1rem above its bottom
@sundram-bruno
sundram-bruno force-pushed the fix/oc-docs-ui-refinements-2 branch from e35659b to 95ad0ed Compare July 23, 2026 17:14
@bijin-bruno
bijin-bruno merged commit 32e25d2 into opencollection-dev:main Jul 23, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants