Skip to content
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

TreeView: Use initialOptions prop to save view state #1705

Merged
merged 4 commits into from
Mar 19, 2024

Conversation

markgrahamdawson
Copy link
Contributor

@markgrahamdawson markgrahamdawson commented Mar 11, 2024

These changes build on the work undertaken to save & restore workspace layout on navigation #1664

Which is part of a larger issue #662

There is an equivalent pull request for the logview #1688

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
  • Tests are included (or explain why tests are not needed).
  • CHANGES.md entry included if this is a change that can affect users
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

This is saved along with the Lumino layout for restoring after navigation.

Implemented for the log view only so far.

Log view: don't query files in job log mode when no ID given

use initial options prop to save view state

removed views/initialOptions.js

removed views/initialOptions.spec

added e2e test

review amends

updated mailmap
@markgrahamdawson markgrahamdawson self-assigned this Mar 11, 2024
@markgrahamdawson markgrahamdawson marked this pull request as draft March 11, 2024 16:02
@markgrahamdawson markgrahamdawson changed the title Use initialOptions prop to save view state TreeView: Use initialOptions prop to save view state Mar 11, 2024
@markgrahamdawson markgrahamdawson marked this pull request as ready for review March 11, 2024 17:38
@markgrahamdawson markgrahamdawson added this to the 2.4.0 milestone Mar 11, 2024
CHANGES.md Outdated Show resolved Hide resolved
.mailmap Show resolved Hide resolved
tests/e2e/specs/tree.cy.js Outdated Show resolved Hide resolved
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.

3 participants