Skip to content

Conversation

steverydz
Copy link
Contributor

@steverydz steverydz commented Oct 3, 2024

Done

Moved the listing page into the publisher app.

The majority of this work is moving and renaming files, whilst also updating routes, renaming variables and probs so the components work as expected. There are no changes to functionality.

How to QA

Testing

  • This PR has tests
  • No testing required (explain why):

Issue / Card

Fixes https://warthogs.atlassian.net/browse/WD-14633

@webteam-app
Copy link

update_metadata_on_release: {% if update_metadata_on_release %}{{ update_metadata_on_release|tojson }}{% else %}false{% endif %},
private: {% if private %}{{ private|tojson }}{% else %}false{% endif %},
unlisted: {% if unlisted %}{{ unlisted|tojson }}{% else %}false{% endif %},
whitelist_countries: {% if whitelist_country_codes %}{{ whitelist_country_codes|tojson }}{% else %}[]{% endif %},
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] whitelist may be insensitive, use allowlist instead

update_metadata_on_release: {% if update_metadata_on_release %}{{ update_metadata_on_release|tojson }}{% else %}false{% endif %},
private: {% if private %}{{ private|tojson }}{% else %}false{% endif %},
unlisted: {% if unlisted %}{{ unlisted|tojson }}{% else %}false{% endif %},
whitelist_countries: {% if whitelist_country_codes %}{{ whitelist_country_codes|tojson }}{% else %}[]{% endif %},
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] whitelist may be insensitive, use allowlist instead

update_metadata_on_release: {% if update_metadata_on_release %}{{ update_metadata_on_release|tojson }}{% else %}false{% endif %},
private: {% if private %}{{ private|tojson }}{% else %}false{% endif %},
unlisted: {% if unlisted %}{{ unlisted|tojson }}{% else %}false{% endif %},
whitelist_countries: {% if whitelist_country_codes %}{{ whitelist_country_codes|tojson }}{% else %}[]{% endif %},
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] whitelist may be insensitive, use allowlist instead

private: {% if private %}{{ private|tojson }}{% else %}false{% endif %},
unlisted: {% if unlisted %}{{ unlisted|tojson }}{% else %}false{% endif %},
whitelist_countries: {% if whitelist_country_codes %}{{ whitelist_country_codes|tojson }}{% else %}[]{% endif %},
blacklist_countries: {% if blacklist_country_codes %}{{ blacklist_country_codes|tojson }}{% else %}[]{% endif %},
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

private: {% if private %}{{ private|tojson }}{% else %}false{% endif %},
unlisted: {% if unlisted %}{{ unlisted|tojson }}{% else %}false{% endif %},
whitelist_countries: {% if whitelist_country_codes %}{{ whitelist_country_codes|tojson }}{% else %}[]{% endif %},
blacklist_countries: {% if blacklist_country_codes %}{{ blacklist_country_codes|tojson }}{% else %}[]{% endif %},
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

};

export type SettingsData = {
blacklist_countries: string[];
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead


export type SettingsData = {
blacklist_countries: string[];
blacklist_country_keys: string;
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

update_metadata_on_release: boolean;
visibility: string;
visibility_locked: boolean;
whitelist_countries: string[];
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] whitelist may be insensitive, use allowlist instead

visibility: string;
visibility_locked: boolean;
whitelist_countries: string[];
whitelist_country_keys: string;
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] whitelist may be insensitive, use allowlist instead

issues: { url: string }[];
primary_website: string;
public_metrics_enabled: boolean;
public_metrics_blacklist: string[];
Copy link

Choose a reason for hiding this comment

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

[Inclusive naming check] reported by reviewdog 🐶
[warning] blacklist may be insensitive, use denylist, blocklist instead

@steverydz steverydz changed the title Wd 14633 move listing page into publisher app chore: Move listing page into publisher app Oct 3, 2024
<Col size={10}>
<p>
<img
src={`https://snapcraft.io/static/images/badges/${selectedLanguage}/snap-store-black.svg`}

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
<Col size={10}>
<p>
<img
src={`https://snapcraft.io/static/images/badges/${selectedLanguage}/snap-store-white.svg`}

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
@steverydz steverydz changed the base branch from main to publisher-react-app October 3, 2024 14:30
Copy link
Contributor

@chillkang chillkang left a comment

Choose a reason for hiding this comment

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

LGTM🚀 Just one question: is copilot integrated in our project?

@steverydz steverydz merged commit 4391acc into publisher-react-app Oct 3, 2024
10 of 11 checks passed
@steverydz steverydz deleted the WD-14633-move-listing-page-into-publisher-app branch October 3, 2024 15:17
steverydz added a commit that referenced this pull request Jan 6, 2025
* feat: Move publicise into publisher app (#4844)

* feat: Move settings into publisher app (#4847)

* Wd 14634 metrics page (#4851)

* feat: migrate metrics page to react

* Wd 15262 improve performance of metric page (#4863)

* feat: added downsampling and pagination

* chore: Move listing page into publisher app (#4865)

* feat: add breadcrumb nav to the metrics page (#4871)

* feat: Create endpoints to get repo data and builds data (#4873)

* feat: update badge sources (#4892)

* feat: Add builds section to publisher pages (#4890)

Simplify step 1

Simplify step 2

Simplify step 3

Simplify step 4

Simplify step 5

* feat: Move releases section into the publisher app (#4902)

* fix: Fix publicise disabled notification (#4911)

* fix: Fix issue with saving settings when navigating from listing (#4913)

* fix: Fix publicise view for private snaps (#4914)

* Rebase

* fix: Fix issues with tour styles (#4916)

* fix: Fix code linting errors in publisher app (#4921)

* fix: Fix a11y errors in builds section (#4922)

* fix: Fix publisher a11y errors in the publicise cards section (#4923)

* fix: Fix publisher a11y errors in publicise badges section (#4924)

* fix: Fix publisher a11y errors in publicise buttons section (#4925)

* fix: Fix publisher a11y errors in settings section (#4926)

* fix: Fix a11y errors in license search (#4928)

* fix: Fix a11y errors in search autocomplete (#4929)

* chore: Remove legacy publisher JS (#4930)

fix: Ignore metrics TS errors for now (#4933)

fix: Fix checkbox values resetting in publisher settings form (#4937)

fix: Fix primary website field clearing on revert (#4938)

fix: Make sure Edit button on preview page closes current tab (#4939)

fix: Fix deleting icon or banner not activating save button (#4940)

fix: render selected language in HTML and markdown snippets (#4942)

fix: remove extra whitespace in embeddable card (#4943)

fix: Fix missing contact links in preview (#4944)

fix: Fix preview card button being squashed (#4945)

fix: Fix display of releases table (#4946)

fix: Add loading state to single build page (#4947)

fix: ensure markdown is rendered correctly (#4948)

fix: build page showing stale data while fetching logs (#4949)

fix: Fix missing banner in listing publisher page (#4950)

fix: Fix form not resetting when making changes to images (#4952)

---------

Co-authored-by: ilayda-cp <ilayda.cavusoglupars@canonical.com>
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.

3 participants