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

docs: update grid pro pages + new content - PTL-1517 #1969

Merged
merged 7 commits into from
Dec 3, 2024

Conversation

MrBrunoWolff
Copy link
Collaborator

Do the changes you have made apply to both Current and Previous versions?

No

Have you done a trial build to check all new or changed links?

Yes

Is there anything else you would like us to know?

No

@MrBrunoWolff MrBrunoWolff marked this pull request as ready for review November 28, 2024 02:59
Copy link
Contributor

@matteematt matteematt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great progress. Left a few points and then also we've discussed some bits that need adding you were already aware of. Thanks for the great work so far

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the "Getting Started" section to the bottom of the file please, and replace it with a link to it saying that for projects created with Genesis Create and genx that it's already installed, but for legacy projects follow this link for manual installation

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have the same for other things like forms/charts/entity management?

If not, I'd keep the current standard for now + maybe we can come with a text to highlight the "pre-setup" on Create/Seed scenarios.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, though they're simple so they dont' even require the extra step. I will address this in a follow up PR

import GridProExample from './grid-pro_example.js'
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Grid Pro

The `@genesislcap/grid-pro` package provides a collection of grid-related components and utilities for Genesis applications.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to mention it wraps ag-grid here considering that we externally link to it multiple times?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what you mean by the place/code you're tagging this

at index.md I don't really say "we wrap AG" but just link/mention related features

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that is my point, we link out to ag grid before really explaining that we're wrapping it, I think currently it implies we're compatiable but we're rolling our own implementation of a grid. Happy to leave this though

export class ConnectedGridServerSideExample extends GenesisElement {}
```

## Common Attributes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These attribute tables are good but they don't follow the format of every other API section

I know we're short on time now so happy for this to go in if you think you can't do it, and then you or I can tweak it when we get the chance

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will address in a follow up PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you know but just pointing out for clarity - need to elaborate on this file inluding a full API section and examples for React and Angular

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need examples for all on this one? When it's a standard HTML template that should be common across all of those

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. It's not a standard HTML template, it's using property bindings which are Genesis sytnax specific
  2. It's just to follow the format of every other document. This contains the information but presented differently to everything else, we had agreed a format

I will address this in a subsequent PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really good file. If possible it would be good to get live examples. Again we need the examples conerted to React and Angular too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, do we need the whole page written 3 times? I've updated with specific bits that are framework-agnostic.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I think you've done a good job now of making this file framework agnostic so no need. Thanks!

Copy link
Collaborator Author

@MrBrunoWolff MrBrunoWolff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matteematt please have another look, this should be good for the beta/dec5 release.

@skawian @SzymonZur I've added all the "renderers" but editable and all the editors are not 100%, if you could have a look too, I believe you worked on this.. so it should be a bit easier to spot issues (the renderers I created are looking good)

Also, had issues with the current useEffect approach.. "live grid-pro" doesn't really work with that but could be a silly mistake too, went with a "load grid" approach, which I like for the renderers page but not too much for the index.

--

The above should be ok to be addressed in a follow-up too, PR is already too big as it is.

Copy link
Contributor

@matteematt matteematt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes, looking good now. I am going to merge this as is so we have the pages ready and then I will start on a follow up PR addressing the comments I left, and I will also try look at seeing if we can get the grid to inialise in the live examples without using the button

Thanks for the effort getting this in

export class ConnectedGridServerSideExample extends GenesisElement {}
```

## Common Attributes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will address in a follow up PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, though they're simple so they dont' even require the extra step. I will address this in a follow up PR

import GridProExample from './grid-pro_example.js'
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Grid Pro

The `@genesislcap/grid-pro` package provides a collection of grid-related components and utilities for Genesis applications.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that is my point, we link out to ag grid before really explaining that we're wrapping it, I think currently it implies we're compatiable but we're rolling our own implementation of a grid. Happy to leave this though

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. It's not a standard HTML template, it's using property bindings which are Genesis sytnax specific
  2. It's just to follow the format of every other document. This contains the information but presented differently to everything else, we had agreed a format

I will address this in a subsequent PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I think you've done a good job now of making this file framework agnostic so no need. Thanks!

@matteematt matteematt merged commit c8caf5c into new-doc-structure Dec 3, 2024
@matteematt matteematt deleted the bw/ptl-1517 branch December 3, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants