Skip to content

#262 Interaction Panel Implementation #290

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

Open
wants to merge 106 commits into
base: main
Choose a base branch
from
Open

Conversation

SaqAsh
Copy link
Contributor

@SaqAsh SaqAsh commented Jun 9, 2025

Summary

Implementing the rest of the remaining tickets inside of the interaction panel, with the associated stories for appropriate testing

see tickets: #273 and #274 for details on current blocked items

Issues

Description of Changes

Most changes were just porting over the components from stage however there are some components that are incomplete/blocked due to requirements that are not yet possible from the present functionality of lectern.

Readiness Checklist

  • Self Review
    • I have performed a self review of code
    • I have run the application locally and manually tested the feature
    • I have checked all updates to correct typos and misspellings
  • Formatting
    • Code follows the project style guide
    • Autmated code formatters (ie. Prettier) have been run
  • Local Testing
    • Successfully built all packages locally
    • Successfully ran all test suites, all unit and integration tests pass
  • Updated Tests
    • Unit and integration tests have been added that describe the bug that was fixed or the features that were added
  • Documentation
    • All new environment variables added to .env.schema file and documented in the README
    • All changes to server HTTP endpoints have open-api documentation
    • All new functions exported from their module have TSDoc comment documentation

SaqAsh added 30 commits June 4, 2025 11:25
@SaqAsh SaqAsh linked an issue Jun 18, 2025 that may be closed by this pull request
4 tasks
@SaqAsh SaqAsh marked this pull request as ready for review June 25, 2025 14:25
This was linked to issues Jun 25, 2025
This was unlinked from issues Jun 25, 2025
Copy link
Contributor

@ciaranschutte ciaranschutte left a comment

Choose a reason for hiding this comment

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

couple of small changes to start with.

I'll take a look if there's a cleaner way to do the disabled state being passed in as props everywhere. a context provider might make sense, but adds some complexity.

There's also maybe a slightly cleaner way to compose css with emotion that I will verify.
Because emotion serializes to classNames, you basically create css.. fragments and conditionally apply them using https://www.npmjs.com/package/clsx

@SaqAsh SaqAsh requested a review from ciaranschutte June 26, 2025 11:52
Copy link
Contributor

@ciaranschutte ciaranschutte left a comment

Choose a reason for hiding this comment

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

looking good. requesting changes because I'll have to re-approve anyway ;)

Comment on lines 49 to 66
// When we are at multiple versions, then the version switcher is now rendered, this is to test that behavior
export const Default: Story = {
args: {
...mockProps,
dictionaryConfig: {
...mockProps.dictionaryConfig,
dictionaryData: MultipleDictionaryData,
},
},
};

// The reason why this story exists is to test the behavior when the dictionary version switcher button is not rendered
export const WithSingleVersion: Story = {
args: {
...mockProps,
dictionaryConfig: {
...mockProps.dictionaryConfig,
dictionaryData: SingleDictionaryData,
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2025-06-26 at 3 03 53 PM

For the stories, there should be a straightforward way to style the display window, so that an open dropdown is visible. Don't worry about making it full size or anything, just set is as a larger fixed height so we can at least see some of the dropdown items when open

Copy link
Contributor

Choose a reason for hiding this comment

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

it'll be storybook decorator likely

@SaqAsh SaqAsh requested a review from ciaranschutte June 27, 2025 13:07
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.

2C. Attribute Filter (Filter By) 2. Interaction Panel
2 participants